/* ============================================================
   ficha-piedra.css — estilos específicos de la FICHA de placa.
   Complementa a piedra.css (variables, nav, footer, btn, kicker,
   reveal, servicio-band). Solo define lo propio de la ficha.
   Sistema nuevo: hueso/grafito/terracota · Archivo/Cinzel/JetBrains.
   ============================================================ */

/* — Página interior (ficha): no hay hero full-bleed tras la nav, así que la
   nav va SÓLIDA desde el inicio y el contenido se empuja para no quedar tapado. — */
body { padding-top: 74px; }
.nav { background: color-mix(in srgb, var(--bone) 92%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav .mark { color: var(--ink); }
.nav .tag { color: var(--stone); }
.nav .nav-links a:not(.btn) { color: var(--ink); }
.nav .nav-links a:not(.btn):hover { color: var(--accent); }
.menu-toggle span { background: var(--ink); }

/* — Breadcrumb — */
.crumbs {
  max-width: 1280px; margin: 0 auto; padding: 26px 5vw 0;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--stone);
}
.crumbs a { color: var(--stone); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink); }

/* — Hero de ficha: placa real + info — */
.ficha {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border-bottom: 1px solid var(--line); margin-top: 18px;
}
.ficha-slab { overflow: hidden; min-height: 72vh; position: relative; background: var(--sand); }
.ficha-slab img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.1s cubic-bezier(.2,.6,.2,1);
}
.ficha-slab:hover img { transform: scale(1.04); }
.ficha-info { padding: 72px 5vw; display: flex; flex-direction: column; justify-content: center; }
.ficha-info h1 {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.04;
  margin: 10px 0 18px; color: var(--ink);
}
.ficha-info .lede { font-size: 17px; line-height: 1.55; color: var(--stone); margin: 0; max-width: 46ch; }

/* — Specs rápidas (en el hero) — */
.specs { margin-top: 42px; border-top: 1px solid var(--line); }
.spec {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.spec dt {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--stone); align-self: center; margin: 0;
}
.spec dd { font-weight: 500; margin: 0; color: var(--ink); }

/* — Propiedades técnicas (grid de 4) — */
.propiedades { background: var(--paper); border-bottom: 1px solid var(--line); }
.prop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.prop-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.prop-lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.prop-val { font-family: 'Cinzel', serif; font-size: 21px; font-weight: 600; color: var(--ink); margin: 0 0 9px; line-height: 1.15; }
.prop-desc { font-size: 13.5px; color: var(--stone); margin: 0; line-height: 1.5; }
.prop-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.prop-app { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); }

/* — Ambientes (así se ve instalada) — */
.ambientes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.amb { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; position: relative; background: var(--sand); }
.amb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s cubic-bezier(.2,.6,.2,1);
}
.amb:hover img { transform: scale(1.05); }
.amb span {
  position: absolute; bottom: 12px; left: 14px; color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

/* — FAQs — */
.faq-ficha { max-width: 860px; }
.faq-list { margin-top: 42px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink);
  padding: 22px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 22px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; font-family: 'JetBrains Mono', monospace; color: var(--accent);
  font-size: 22px; line-height: 1; flex-shrink: 0; transition: transform .2s;
}
.faq-item[open] .faq-q::after { content: '\2212'; }
.faq-a { font-size: 15.5px; color: var(--stone); line-height: 1.65; padding: 0 0 26px; margin: 0; max-width: 72ch; }

/* — CTA band oscuro (cierre de la ficha) — */
.cta-band { background: var(--ink); color: var(--bone); text-align: center; padding: 92px 5vw; }
.cta-band h2 { font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 44px); margin: 0 0 16px; color: #fff; }
.cta-band p { font-size: 17px; color: rgba(245,242,236,.72); margin: 0 auto 34px; max-width: 540px; }

/* — Responsive — */
@media (max-width: 900px) {
  .ficha { grid-template-columns: 1fr; }
  .ficha-slab { min-height: 54vh; }
  .ficha-info { padding: 50px 6vw; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .ambientes { grid-template-columns: 1fr; }
}

/* ── Secciones educativas de material: 2 columnas (título izq · texto der) ── */
section > .wrap:has(> .mat-prose) {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
section > .wrap:has(> .mat-prose) .seccion-head { margin-bottom: 0; }
section > .wrap:has(> .mat-prose) .seccion-head h2 { max-width: none; font-size: clamp(28px, 3.2vw, 42px); }
section > .wrap:has(> .mat-prose) .mat-prose { max-width: none; }
@media (max-width: 860px) {
  section > .wrap:has(> .mat-prose) { grid-template-columns: 1fr; gap: 18px; }
}

/* ── Centrar el h2 en bandas de texto centrado (su max-width lo dejaba a la izquierda) ── */
.cierre-band .wrap h2, .cta-band .wrap h2, .geo-band .wrap h2,
section .wrap[style*="text-align:center"] h2,
section .wrap[style*="text-align: center"] h2 {
  margin-left: auto; margin-right: auto;
}

/* ── Cross-links de ficha: "más del material" + "¿dónde se usa?" ── */
.fx { border-top: 1px solid var(--line); background: var(--paper); }
.fx .wrap { padding-top: 56px; padding-bottom: 56px; }
.fx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fx-head h2 { font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(22px, 3vw, 30px); color: var(--ink); margin: 0; }
.fx-head a { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 3px; white-space: nowrap; }
.fx-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fx-card { background: var(--bone); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-decoration: none; display: block; transition: border-color .25s, transform .25s, box-shadow .25s; }
.fx-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.fxc-img { aspect-ratio: 1/1; overflow: hidden; background: var(--sand); }
.fxc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.fx-card:hover .fxc-img img { transform: scale(1.05); }
.fxc-name { padding: 9px 11px; font-size: 12.5px; color: var(--ink); line-height: 1.25; }
.fx-sub { margin-top: 48px; }
.fx-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-app { display: inline-flex; align-items: center; padding: 13px 22px; border: 1px solid var(--line); border-radius: 100px; background: var(--bone); color: var(--ink); text-decoration: none; font-size: 14.5px; transition: border-color .2s, color .2s, background .2s; }
.fx-app:hover { border-color: var(--accent); color: var(--accent); background: var(--paper); }
@media (max-width: 900px) { .fx-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .fx-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── "Otras superficies que trabajamos": fila uniforme de 5 aplicaciones ── */
.apps-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .apps-grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* ── grids de aplicaciones de 3 y 4 (cross-links de páginas de material) ── */
.apps-grid-3 { grid-template-columns: repeat(3, 1fr); }
.apps-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .apps-grid-3, .apps-grid-4 { grid-template-columns: repeat(2, 1fr); } }
