/* ==========================================================================
   Forestal Los Muermos — el cuaderno de obra del sur
   Papel crema, retícula técnica, cotas anotadas y un solo lápiz rojo.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Azul de plano para la estructura, verde para la acción y lo incluido,
     blanco de papel para el fondo. */
  --paper:       #FFFFFF;
  --paper-sunk:  #F6F4F0;
  --paper-edge:  #E2DED5;
  --ink:         #101830;
  --ink-soft:    #4A566F;
  --ink-faint:   #5A6478;

  --mark:        #06713B;
  --mark-deep:   #04512A;
  --mark-wash:   #E6F2EB;

  --azul:        #263A73;
  --azul-deep:   #1A2951;
  --azul-wash:   #E8EAF2;

  --nativo:      #06713B;
  --timber:      #18244A;
  --on-dark:     #C6D0E2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tech:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-card:  20px;
  --r-tight: 8px;
  --r-pill:  999px;

  --shadow-raise: 0 1px 2px rgba(14, 27, 51, .05), 0 12px 28px -14px rgba(14, 27, 51, .16);
  --shadow-lift:  0 2px 4px rgba(14, 27, 51, .06), 0 26px 50px -22px rgba(14, 27, 51, .22);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 68ch;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* El navegador pinta un destello gris sobre todo lo que se toca. Es la
     señal más audible de «esto es una página web» y pelea con el estado
     :active que sí diseñamos. */
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* El papel: retícula de 32px que se regenera a cualquier ancho sin costura. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  rgba(38,58,115,.055) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(to bottom, rgba(38,58,115,.055) 0 1px, transparent 1px 32px);
}

/* El grano del papel impreso. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .022;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-radius: inherit; }

/* --- Superficies del navegador ------------------------------------------- */

::selection { background: var(--mark); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 3px;
}

* { scrollbar-color: var(--paper-edge) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--paper-edge);
  border-radius: var(--r-pill);
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

a { color: inherit; text-decoration-color: var(--paper-edge); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--mark); }

/* --- Tipografía ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 120, "SOFT" 0, "WONK" 1;
  line-height: 1.03;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0 0 .5em;
}

.display {
  font-size: clamp(2.9rem, 7.6vw, 6rem);
  line-height: .97;
  letter-spacing: -.03em;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); letter-spacing: -.015em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* Todo dato medible se escribe en monoespaciada. Es la firma del mundo. */
.tech {
  font-family: var(--font-tech);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.num { font-family: var(--font-tech); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* --- Estructura ----------------------------------------------------------- */

.wrap { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section + .section { border-top: 1px solid var(--paper-edge); }
.section--sunk { background: var(--paper-sunk); }
.section--dark { background: var(--timber); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .lede { color: var(--on-dark); }

.section__head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); max-width: 60ch; }
.section__head .lede { margin-top: .8rem; }

/* --- Botones -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out),
              color .25s var(--ease-out), box-shadow .25s var(--ease-out),
              transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }

.btn--mark { background: var(--mark); color: var(--paper); box-shadow: var(--shadow-raise); }
.btn--mark:hover { background: var(--mark-deep); box-shadow: var(--shadow-lift); }

.btn--ink { background: var(--azul); color: var(--paper); }
.btn--ink:hover { background: var(--azul-deep); }

.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.section--dark .btn--mark { box-shadow: none; }
.section--dark .btn--mark:hover { box-shadow: none; }
.section--dark .btn--line { border-color: rgba(255,255,255,.5); color: var(--paper); }
.section--dark .btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn[aria-disabled="true"], .btn:disabled {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}

.btn .icon { flex: none; }

/* --- Comportamiento táctil ------------------------------------------------ */

/* touch-action evita la espera de 300ms con que el navegador comprueba si
   viene un segundo toque para hacer zoom. user-select impide que mantener
   el dedo sobre un botón seleccione su texto, que es algo que un control
   nativo nunca hace. El texto de lectura queda seleccionable. */
.btn,
.nav-toggle,
.zona__btn,
.wa-float,
.social a,
.sucursal-op,
button,
[role="button"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

a { touch-action: manipulation; }

/* --- La cota: línea de extensión con topes y el valor encima --------------- */

.cota { display: grid; gap: .25rem; min-width: 0; }
.cota__valor {
  font-family: var(--font-tech);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.cota__linea { width: 100%; height: 8px; overflow: visible; }
.cota__linea line { stroke: var(--paper-edge); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.cota__label {
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.section--dark .cota__linea line { stroke: rgba(255,255,255,.34); }
.section--dark .cota__label { color: var(--on-dark); }

.cotas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }

/* --- La etiqueta de kit: ningún precio aparece sin su base ----------------- */

.kit-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-family: var(--font-tech);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.kit-tag--mark { background: var(--azul-wash); border-color: #C8D0E4; color: var(--azul); }
.kit-tag--nativo { background: var(--mark-wash); border-color: #BEDCCB; color: var(--mark-deep); }

.precio {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .7rem;
}
.precio__valor {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.025em;
}
.precio__lista {
  font-family: var(--font-tech);
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.precio__nota {
  font-size: .82rem;
  color: var(--ink-faint);
  line-height: 1.4;
  margin: .5rem 0 0;
  max-width: 40ch;
}

/* --- Header --------------------------------------------------------------- */

.topbar {
  background: var(--timber);
  color: var(--paper);
  font-size: .8rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  min-height: 52px;
  padding-block: .5rem;
  flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; min-height: 32px; color: var(--paper); font-weight: 600; text-decoration-color: rgba(255,255,255,.55); }
.topbar a:hover { text-decoration-color: var(--paper); }

.topbar__zona { display: inline-flex; align-items: center; gap: .6rem; }
.topbar__zona > .tech { color: #9DAAC6; white-space: nowrap; font-size: .74rem; }

/* Sobre el azul de la barra, el selector invierte sus colores. */
.topbar .zona { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.topbar .zona__btn { color: var(--on-dark); }
.topbar .zona__btn[aria-pressed="true"] { background: var(--paper); color: var(--azul); }
.topbar .zona__btn:hover:not([aria-pressed="true"]) { color: var(--paper); background: rgba(255,255,255,.1); }

@media (max-width: 720px) {
  .topbar__inner { justify-content: center; }
  .topbar__claim { display: none; }
}

@media (max-width: 480px) {
  .topbar__zona { gap: .45rem; }
  .topbar__zona > .tech { font-size: .72rem; letter-spacing: .05em; }
  .topbar .zona__btn { padding: .4rem .65rem; font-size: .72rem; letter-spacing: .04em; }
  .topbar .zona__btn small { font-size: .7rem; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--paper-edge);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; flex: none; }

/* El logo oficial ya trae el nombre y el lema: no se le pone texto al lado. */
.brand__logo { width: auto; height: 44px; }
.brand--footer .brand__logo { height: 38px; }

/* WordPress envuelve el logo subido desde el Personalizador en su propio
   contenedor; se le aplica la misma medida. */
.brand .custom-logo-link { display: inline-flex; align-items: center; }
.brand .custom-logo { width: auto; height: 44px; }
.brand--footer .custom-logo { height: 38px; }

/* Sobre el azul del pie, el logotipo azul se perdería. Va sobre una placa
   del mismo crema que las secciones, que lo devuelve a su fondo claro. */
.brand-placa {
  display: inline-flex;
  padding: .85rem 1.2rem;
  border-radius: var(--r-card);
  background: var(--paper-sunk);
}
.brand-placa .brand { min-height: 0; }
.brand__mark { flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.brand__name small {
  display: block;
  font-family: var(--font-tech);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: .15rem;
}

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: .35rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--mark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav .current-menu-item > a::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
}

.header__cta { display: inline-flex; gap: .6rem; align-items: center; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-tight);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header__cta .btn--line { display: none; }
  .site-header__inner { gap: .6rem; }
  .nav {
    position: fixed;
    inset: 112px 0 auto;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-edge);
    box-shadow: var(--shadow-lift);
    padding: 1rem var(--gutter) 1.75rem;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid var(--paper-edge); }
  .nav a { display: block; padding: .95rem 0; font-size: 1.05rem; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem); }
.hero--sunk { background: var(--paper-sunk); border-bottom: 1px solid var(--paper-edge); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title .mark { color: var(--azul); font-style: italic; }
.hero__lede { margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__cotas { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--paper-edge); }

.hero__figure {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3.35;
  background: var(--paper-sunk);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

.hero__stamp {
  position: absolute;
  left: 1rem; bottom: 1rem; right: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}
.hero__stamp-name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  /* El sello se aplana en una franja de una sola línea: en pantalla chica
     la foto del modelo vale más que el rótulo sobre ella. */
  .hero__stamp {
    left: 0; right: 0; bottom: 0;
    border-radius: 0;
    flex-wrap: nowrap;
    padding: .65rem .9rem;
    gap: .75rem;
  }
  .hero__stamp-name { font-size: 1rem; min-width: 0; }
  /* El botón del sello sobra en teléfono: el hero ya ofrece "Ver los 9
     modelos" a dos dedos de distancia, y el nombre completo cabe entero. */
  .hero__stamp .btn { display: none; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* --- Los tres niveles, en la ficha del modelo ----------------------------- */

.niveles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--paper-edge);
}
.nivel {
  display: grid;
  gap: .3rem;
  align-content: start;
  padding: .9rem .85rem 1rem;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-tight);
  background: var(--paper);
}
.nivel--destaca { border-color: var(--azul); background: var(--azul-wash); }
.nivel__nombre { color: var(--ink-faint); font-size: .72rem; }
.nivel--destaca .nivel__nombre { color: var(--azul); }
.nivel__valor {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.1;
}
@media (max-width: 560px) {
  .niveles { grid-template-columns: 1fr; gap: .4rem; }
  .nivel { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
}

/* --- Tarjeta de modelo ---------------------------------------------------- */

.grid-modelos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.modelo {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .35s var(--ease-out);
}

.modelo__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-sunk);
  overflow: hidden;
  border-radius: 0;
}
.modelo__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease-out);
}

.modelo__tag { position: absolute; top: .8rem; left: .8rem; }

.modelo__body { display: flex; flex-direction: column; gap: 1.15rem; padding: 1.35rem 1.4rem 1.5rem; flex: 1; }
.modelo__name { font-size: 1.32rem; margin: 0; }
.modelo__name a { text-decoration: none; }
.modelo__name a:hover { color: var(--mark-deep); }

.modelo__cotas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  padding-block: 1rem;
  border-block: 1px solid var(--paper-edge);
}

.modelo__precio { margin-top: auto; display: grid; gap: .5rem; justify-items: start; }
.modelo__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.modelo__actions .btn { flex: 1 1 auto; justify-content: center; }

/* Los efectos que desplazan o amplían sólo existen donde hay un cursor
   real. En pantalla táctil el hover se dispara al tocar y no se limpia
   hasta tocar otra cosa, dejando tarjetas levantadas sin motivo. */
@media (hover: hover) and (pointer: fine) {
  .modelo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: #CFC9BC;
  }
  .modelo:hover .modelo__media img { transform: scale(1.035); }
  .wa-float:hover { transform: translateY(-2px); }
}

/* --- Tablero comparador: columnas fijas, filas vivas ----------------------- */

.tablero-wrap {
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-card);
  background: var(--paper);
  overflow: hidden;
}
.tablero-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Sin esto, al llegar al extremo de la tabla el gesto continúa hacia el
     navegador y dispara el «volver atrás» de iOS. */
  overscroll-behavior-x: contain;
}

.tablero { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }

.tablero th, .tablero td {
  padding: .95rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--paper-edge);
}

.tablero thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--paper-edge);
  font-family: var(--font-text);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  min-width: 190px;
}
.tablero thead th small {
  display: block;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: none;
  color: var(--ink-faint);
  margin-top: .35rem;
  line-height: 1.45;
}

/* La columna de componente no se mueve; los niveles de kit hacen scroll. */
.tablero th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  font-weight: 500;
  min-width: 250px;
  max-width: 320px;
  box-shadow: 1px 0 0 var(--paper-edge);
}
.tablero th[scope="row"] small {
  display: block;
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1.45;
  margin-top: .2rem;
  text-transform: none;
  letter-spacing: 0;
}

.tablero tbody tr:hover th[scope="row"],
.tablero tbody tr:hover td { background: var(--paper-sunk); }

.tablero__grupo th {
  background: var(--timber);
  color: var(--paper);
  font-family: var(--font-tech);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding-block: .6rem;
  position: static;
  box-shadow: none;
}

.tablero td { text-align: center; }

.tablero__elegido {
  display: inline-block;
  margin-left: .4rem;
  padding: .12rem .5rem;
  border-radius: var(--r-pill);
  background: var(--azul);
  color: var(--paper);
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.btn--compacto {
  min-height: 38px;
  padding: .45rem .9rem;
  font-size: .82rem;
  margin-top: .6rem;
}
.tablero tfoot td { text-align: center; }
.tablero tfoot .precio__lista { display: block; margin-top: .15rem; }
.tablero .si { color: var(--nativo); }
.tablero .no { color: #98A4BC; display: inline-flex; }

.tablero .col-promo { background: var(--azul-wash); }
.tablero thead .col-promo { background: #DCE2F0; }
.tablero tbody tr:hover td.col-promo { background: #E4E8F3; }

.tablero tfoot td, .tablero tfoot th {
  background: var(--paper-sunk);
  border-bottom: 0;
  padding-block: 1.3rem;
}

.tablero__precio {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  display: block;
  margin-bottom: .5rem;
}

.tablero-hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--paper-edge);
  background: var(--paper-sunk);
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (min-width: 860px) { .tablero-hint { display: none; } }

/* --- El despiece: capas numeradas ----------------------------------------- */

.despiece { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-card); overflow: hidden; }
.capa { padding: 1.6rem 1.5rem 1.75rem; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.capa__n {
  font-family: var(--font-tech);
  font-size: .78rem;
  letter-spacing: .14em;
  color: #97A4C8;
  display: block;
  margin-bottom: .9rem;
}
.capa__t { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; margin: 0 0 .5rem; }
.capa__d { font-size: .88rem; line-height: 1.55; color: var(--on-dark); margin: 0; max-width: none; }
.capa__spec {
  display: inline-block;
  margin-top: .85rem;
  padding: .25rem .6rem;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: var(--r-pill);
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .07em;
  color: var(--paper);
}

/* --- Selector de zona ----------------------------------------------------- */

.zona {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-pill);
  background: var(--paper-sunk);
  gap: 2px;
}
.zona__btn {
  display: grid;
  gap: .1rem;
  justify-items: center;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  padding: .45rem 1.05rem;
  min-height: 44px;
  font-family: var(--font-tech);
  font-size: .74rem;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.zona__btn > span, .zona__btn { white-space: nowrap; }
.zona__btn small {
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  opacity: .8;
}
.zona__btn[aria-pressed="true"] { background: var(--azul); color: var(--paper); }
.zona__btn:hover:not([aria-pressed="true"]) { color: var(--ink); background: rgba(38,58,115,.07); }

.section--dark .zona { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); }
.section--dark .zona__btn { color: var(--on-dark); }
.section--dark .zona__btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* --- Testimonios ---------------------------------------------------------- */

.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem); }
.testimonio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-card);
}
.testimonio__quote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.35; letter-spacing: -.015em; margin: 0; }
.testimonio__body { font-size: .93rem; color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: none; }
.testimonio__autor { margin-top: auto; padding-top: .5rem; color: var(--ink-faint); }
.estrellas { display: inline-flex; gap: 2px; color: var(--azul); }

/* --- Pasos ---------------------------------------------------------------- */

.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); counter-reset: paso; }
.paso { padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.paso__n { font-family: var(--font-tech); font-size: .76rem; letter-spacing: .14em; color: var(--mark); display: block; margin-bottom: .7rem; }
.paso h3 { font-size: 1.28rem; margin-bottom: .45rem; }
.paso p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* --- Formulario ----------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-tech); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field .req {
  color: var(--ink-faint);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: none;
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-tight);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mark);
  box-shadow: 0 0 0 3px var(--mark-wash);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.field__error {
  font-size: .85rem;
  line-height: 1.45;
  color: #8C1D18;
  margin: 0;
  max-width: none;
}
.field__error[hidden] { display: none; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A566F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.6rem;
}

.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: .15rem; accent-color: var(--mark); }

/* --- Avisos del formulario ------------------------------------------------ */

.aviso {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.75rem;
  border: 1px solid;
  border-radius: var(--r-card);
}
.aviso strong { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.aviso p { font-size: .93rem; margin: 0 0 .9rem; max-width: 52ch; }
.aviso p:last-child { margin-bottom: 0; }
.aviso .icon { flex: none; margin-top: .2rem; }

.aviso--ok { background: var(--mark-wash); border-color: #BEDCCB; color: var(--mark-deep); }
.aviso--ok .btn { margin-top: .2rem; }
.aviso--error { background: #FCEDEC; border-color: #F0C9C6; color: #8C1D18; }
.aviso[hidden] { display: none; }
.aviso:focus-visible { outline: 2px solid #8C1D18; outline-offset: 3px; }

.aviso__lista { margin: .2rem 0 0; padding-left: 1.15rem; display: grid; gap: .35rem; }
.aviso__lista li { font-size: .9rem; line-height: 1.45; }
.aviso__lista a { color: inherit; text-decoration-color: currentColor; font-weight: 500; }
.aviso__lista a:hover { text-decoration-thickness: 2px; }

/* El botón anuncia que está trabajando sin cambiar de tamaño. */
.btn[data-enviando][aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[data-enviando][aria-busy="true"] .btn__label { visibility: hidden; }
.btn[data-enviando][aria-busy="true"]::after {
  content: attr(data-enviando);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.btn[data-enviando] { position: relative; }

/* --- Contacto ------------------------------------------------------------- */

.sucursales { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem); }
.sucursal { padding: 1.7rem 1.6rem; border: 1px solid var(--paper-edge); border-radius: var(--r-card); background: var(--paper); }
.sucursal h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.sucursal__zona { margin-bottom: 1.2rem; color: var(--azul); }
.dato { display: flex; align-items: flex-start; gap: .7rem; padding-block: .75rem; font-size: .93rem; }
.dato + .dato { border-top: 1px solid var(--paper-edge); }
.dato .icon { flex: none; margin-top: .15rem; color: var(--ink-faint); }
.dato a { text-decoration: none; font-weight: 500; }
.dato a:hover { color: var(--mark-deep); }

/* --- Footer --------------------------------------------------------------- */

.site-footer { background: var(--timber); color: var(--on-dark); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-footer .footer__title { font-family: var(--font-tech); font-size: .74rem; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; color: var(--paper); margin: 0 0 1rem; font-weight: 500; font-variation-settings: normal; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.site-footer .dato { color: var(--on-dark); font-size: .88rem; }
.site-footer .dato + .dato { border-top-color: rgba(255,255,255,.14); }
.site-footer .dato .icon { color: #93A2C0; }
.site-footer .brand__name small { color: #93A2C0; }
.site-footer .brand-placa .brand__name { color: var(--ink); }
.site-footer .brand-placa .brand__name small { color: var(--ink-faint); }
.site-footer .dato a { font-weight: 400; }
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.social { display: flex; gap: .5rem; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--r-pill);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.social a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* --- WhatsApp flotante ---------------------------------------------------- */

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--mark);
  color: var(--paper);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.wa-float:hover { background: var(--mark-deep); }
@media (max-width: 560px) {
  .header__cta .btn--mark {
    width: 48px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .brand__name { font-size: .95rem; }
  .brand__name small { font-size: .62rem; letter-spacing: .12em; }
  .brand__logo, .brand .custom-logo { height: 32px; }
}

@media (max-width: 380px) {
  .brand__name small { display: none; }
  .brand__logo, .brand .custom-logo { height: 28px; }
}

@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: .9rem; } }

/* --- Recorrido 3D --------------------------------------------------------- */

.visor {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--timber);
  box-shadow: var(--shadow-lift);
  transition: background-color .4s var(--ease-out);
}
.visor.is-cargando,
.visor.is-abierto {
  background: #FFFFFF;
  border: 1px solid var(--paper-edge);
}

.visor__portada { position: relative; display: grid; }
.visor__foto {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  /* La foto es el telón de fondo, no el contenido: se atenúa para que el
     texto encima se lea sin depender de qué haya en la imagen. */
  filter: brightness(.52) saturate(.85);
}

.visor__invita {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  gap: .75rem;
  justify-items: start;
  align-content: end;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--paper);
  background: linear-gradient(to top, rgba(14,21,40,.82) 0%, rgba(14,21,40,.35) 55%, transparent 100%);
}
.visor__titulo {
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  color: var(--paper);
  margin: 0;
  max-width: 20ch;
}
.visor__nota {
  font-size: .95rem;
  line-height: 1.55;
  color: #DDE4F0;
  margin: 0;
  max-width: 48ch;
}
.visor__abrir { margin-top: .35rem; }
.visor__peso { color: #AEBBD4; margin: 0; }

.visor.is-cargando::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #FFFFFF;
}

.visor__marco {
  display: block;
  width: 100%;
  height: clamp(420px, 62vh, 680px);
  border: 0;
  background: #FFFFFF;
}

.visor__aparte {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .85rem 1.2rem;
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-top: 1px solid var(--paper-edge);
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.visor__aparte:hover { background: var(--azul-wash); color: var(--azul); }

@media (max-width: 560px) {
  .visor__foto { min-height: 300px; }
  .visor__abrir { width: 100%; justify-content: center; }
}

/* --- Utilidades ----------------------------------------------------------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter); top: .75rem; z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-tight);
}

.empty {
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px dashed var(--paper-edge);
  border-radius: var(--r-card);
  text-align: center;
  color: var(--ink-soft);
}
.empty h3 { margin-bottom: .5rem; }

/* --- Movimiento: un solo momento autorizado ------------------------------- */
/* El default ya es visible; la animación solo mejora la entrada. */

/* El default es visible. La clase .js la pone el propio script en el head,
   así que si el JS no carga o falla, la página se lee entera igual. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); filter: blur(2px); }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), filter .4s var(--ease-out);
  }
  .js .reveal:nth-child(2).is-in { transition-delay: .05s; }
  .js .reveal:nth-child(3).is-in { transition-delay: .1s; }
  .js .reveal:nth-child(4).is-in { transition-delay: .15s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- Contenido editorial (blog y páginas sueltas) ------------------------- */

.entry-content > * { max-width: var(--measure); }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content img, .entry-content figure { max-width: 100%; border-radius: var(--r-card); }
.entry-content blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--azul);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}
