/* =========================================================================
   Valencia Fontaneros y Electricistas
   Sistema visual propio: pizarra técnica, ámbar eléctrico, cian hidráulico.
   Dos especialidades, una sola identidad.
   ========================================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Pizarra: ni negro puro ni azul marino. Es el gris de una instalación. */
  --slate:    #0b1118;
  --slate-2:  #111a24;
  --slate-3:  #18242f;
  --slate-4:  #22323f;

  --paper:    #eef3f7;
  --paper-2:  #c3d0da;
  --muted:    rgba(238, 243, 247, .62);
  --line:     rgba(238, 243, 247, .12);
  --line-2:   rgba(238, 243, 247, .22);

  /* Las dos especialidades. Nunca se mezclan en el mismo elemento. */
  --volt:     #ffa726;   /* eléctrico: ámbar, no amarillo de rayo */
  --volt-hot: #ffcf7a;
  --volt-ink: #b26b00;   /* ámbar como fondo con texto oscuro */
  --volt-soft: rgba(255, 167, 38, .12);

  --flow:     #22c3dd;   /* fontanería: cian frío, no azul corporativo */
  --flow-hot: #74e6f4;
  --flow-ink: #0d7f94;
  --flow-soft: rgba(34, 195, 221, .12);

  --warn:     #ff5d4a;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-ui:    200ms;
  --dur-panel: 280ms;

  --fd: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --fb: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --pad: clamp(1.15rem, 5.5vw, 4rem);
  --bar: 64px;
  --svh: 1svh;
  --head: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--slate);
  color: var(--paper);
  font-family: var(--fb);
  font-size: 16px; line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .num, .eyebrow, .btn { font-family: var(--fd); }
h1, h2, h3, h4 { margin: 0; line-height: 1.04; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--paper); color: var(--slate); padding: .7rem 1rem;
}
.skip:focus { left: 0; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 2px;
}

/* Rejilla de plano técnico: el fondo de toda la web. */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 20%, transparent 78%);
}

/* ============================== Tipos base ============================= */
.eyebrow {
  font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-2);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--volt), var(--flow));
}
.num {
  font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  color: var(--paper-2); font-variant-numeric: tabular-nums;
}

/* ================================ Botones ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .92rem 1.25rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--line-2); border-radius: 2px;
  background: transparent; color: var(--paper);
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.btn:active { transform: scale(.97); }
.btn--call { background: var(--paper); color: var(--slate); border-color: var(--paper); font-weight: 700; }
.btn--volt { background: var(--volt); color: #2a1800; border-color: var(--volt); font-weight: 700; }
.btn--flow { background: var(--flow); color: #04222a; border-color: var(--flow); font-weight: 700; }
.btn--wa   { border-color: #25d366; color: #6ff0a0; }
.btn--ghost { border-color: var(--line-2); }
.btn__i { width: 16px; height: 16px; flex: none; }

/* ============================== Cabecera =============================== */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--head);
  display: flex; align-items: center; gap: .6rem;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(11,17,24,.96), rgba(11,17,24,.72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hud__brand { display: grid; line-height: 1.12; margin-right: auto; min-width: 0; }
.hud__brand b {
  font-family: var(--fd); font-size: .74rem; font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
}
.hud__brand i {
  font-style: normal; font-size: .54rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--paper-2); white-space: nowrap;
}
.hud__brand em { font-style: normal; color: var(--volt); }
.hud__brand s  { text-decoration: none; color: var(--flow); }
.hud__tel {
  font-family: var(--fd); font-weight: 700; font-size: .84rem;
  text-decoration: none; white-space: nowrap;
  padding: .45rem .7rem; border: 1px solid var(--line-2); border-radius: 2px;
}
.hud__burger {
  width: 42px; height: 38px; flex: none;
  background: transparent; border: 1px solid var(--line-2); border-radius: 2px;
  display: grid; place-items: center; gap: 4px; padding: 0;
}
.hud__burger i { display: block; width: 16px; height: 1.5px; background: var(--paper); }

/* ================================ Menú ================================= */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--slate-2);
  padding: calc(var(--head) + 1.5rem) var(--pad) 2rem;
  transform: translateY(-100%);
  transition: transform var(--dur-panel) var(--ease-drawer);
  overflow-y: auto;
}
.menu.is-open { transform: none; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.menu__list button {
  width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0; display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--fd); font-size: 1.35rem; font-weight: 500;
}
.menu__list .num { flex: none; }
.menu__x {
  position: absolute; top: 11px; right: var(--pad);
  width: 42px; height: 38px; background: none; border: 1px solid var(--line-2);
  border-radius: 2px; font-size: 1rem;
}
.menu__foot { margin-top: 1.6rem; display: grid; gap: .5rem; }

/* ========================= Barra inferior móvil ======================== */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--slate-2);
  border-top: 1px solid var(--line-2);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  padding: .72rem .3rem; text-decoration: none; text-align: center;
  font-family: var(--fd); font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  display: grid; gap: .22rem; justify-items: center;
  border-right: 1px solid var(--line);
}
.callbar a:last-child { border-right: 0; }
.callbar svg { width: 18px; height: 18px; }
.callbar .is-call { background: var(--paper); color: var(--slate); }
.callbar .is-volt { color: var(--volt); }
.callbar .is-flow { color: var(--flow); }
@media (min-width: 820px) { .callbar { display: none; } :root { --bar: 0px; } }

/* =============================== Escenas =============================== */
.scene { position: relative; z-index: 1; }
.stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--head) var(--pad) calc(var(--bar) + 1rem);
  overflow: hidden;
}
.sec { padding: 4.5rem var(--pad); position: relative; z-index: 1; }
.sec__h { font-size: clamp(1.9rem, 8vw, 3.4rem); margin-top: .7rem; }
.sec__p { margin-top: 1rem; color: var(--muted); max-width: 46ch; font-size: .95rem; }

/* ================================ HERO ================================= */
.scene--hero { height: auto; }
.hero {
  position: relative; height: 100svh; min-height: 580px;
  overflow: hidden; isolation: isolate;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.hero__scene {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1200px; transform-style: preserve-3d;
  will-change: transform; pointer-events: none;
}
.hl { position: absolute; inset: -12%; transform-style: preserve-3d; backface-visibility: hidden; }

/* Plano 1 · sección de vivienda en alzado, dibujada a línea */
.hl--plan { transform: translateZ(-260px) scale(1.28); opacity: .5; }
.hl--plan svg { width: 100%; height: 100%; }

/* Plano 2 · trazado eléctrico */
.hl--volt { transform: translateZ(-80px) scale(1.08); }
/* Plano 3 · trazado hidráulico */
.hl--flow { transform: translateZ(40px) scale(1.02); }
.hl--volt svg, .hl--flow svg { width: 100%; height: 100%; }

.trace { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trace--v { stroke: var(--volt); stroke-width: 2; opacity: .85; }
.trace--f { stroke: var(--flow); stroke-width: 2.4; opacity: .85; }
.trace--ghost { stroke: var(--line-2); stroke-width: 1; }

/* Pulsos que recorren los trazados: la instalación está viva */
.pulse { fill: none; stroke-linecap: round; stroke-width: 3.4; }
.pulse--v { stroke: var(--volt-hot); filter: drop-shadow(0 0 6px var(--volt)); }
.pulse--f { stroke: var(--flow-hot); filter: drop-shadow(0 0 6px var(--flow)); }

.node { stroke-width: 1.6; }
.node--v { fill: var(--slate-2); stroke: var(--volt); }
.node--f { fill: var(--slate-2); stroke: var(--flow); }

/* Plano 4 · partículas */
.hl--dust { transform: translateZ(150px); }
.hl--dust i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(238,243,247,.7);
  animation: dust 12s ease-in-out infinite;
  animation-play-state: paused;
}
.is-vis .hl--dust i { animation-play-state: running; }
@keyframes dust {
  0%, 100% { transform: translateY(8px); opacity: 0; }
  25%, 75% { opacity: .7; }
  50%      { transform: translateY(-40px); opacity: .35; }
}

.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top,
    rgba(11,17,24,.98) 0 28%, rgba(11,17,24,.78) 46%,
    rgba(11,17,24,.26) 70%, rgba(11,17,24,.6) 100%);
}

.hero__type {
  position: absolute; z-index: 3; left: 0; right: 0;
  bottom: calc(var(--bar) + 1.6rem);
  padding: 0 var(--pad);
}
.hero__h1 {
  font-size: clamp(2rem, 8.6vw, 3.8rem);
  font-weight: 600; letter-spacing: -.03em; margin-top: .9rem;
  text-wrap: balance;
}
.hero__h1 em { font-style: normal; color: var(--volt); }
.hero__h1 s  { text-decoration: none; color: var(--flow); }
.hero__lead {
  margin-top: .9rem; font-size: .94rem; color: var(--muted); max-width: 34ch;
}
.hero__cta { display: grid; gap: .5rem; margin-top: 1.4rem; }
.hero__cta .row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 560px) { .hero__cta { grid-template-columns: auto auto; justify-content: start; } }

.hero__hint {
  position: absolute; z-index: 3; left: var(--pad); bottom: calc(var(--bar) + .45rem);
  font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(238,243,247,.38); pointer-events: none;
}

/* ====================== ESCENA 3D DE LA INSTALACIÓN ==================== */
.scene--inst { height: 300vh; }
#inst3d {
  position: fixed; inset: auto 0 auto 0;
  top: calc(var(--svh) * 7); height: calc(var(--svh) * 80);
  z-index: 2; opacity: 0; pointer-events: none;
  transition: opacity 280ms var(--ease-out);
  touch-action: pan-y;
}
.inst__intro { padding-top: calc(var(--head) + 1.4rem); }
.inst__rail {
  position: sticky; top: 42vh; z-index: 4;
  margin: 0; padding: 0 calc(var(--pad) - .5rem) 0 0;
  display: grid; gap: .34rem; justify-items: end; list-style: none;
  pointer-events: none;
}
.inst__rail li { font-size: 0; }
.inst__rail li i {
  display: block; width: 26px; height: 2px; background: var(--line-2);
  transform: scaleX(.4); transform-origin: right center;
  transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease;
}
.inst__rail li.is-on i { transform: scaleX(1); background: var(--paper); }
.inst__rail li.is-on[data-sys="v"] i { background: var(--volt); }
.inst__rail li.is-on[data-sys="f"] i { background: var(--flow); }
.inst__rail li.is-done i { background: var(--line-2); }

.i3d {
  position: fixed; inset: auto 0 0 0; z-index: 5;
  padding: 0 var(--pad) calc(var(--bar) + 1rem);
  pointer-events: none; opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.i3d.is-on { opacity: 1; }
.i3d__phase {
  display: inline-block;
  font-family: var(--fd); font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line-2); background: rgba(11,17,24,.7);
  padding: .34rem .7rem; border-radius: 2px; backdrop-filter: blur(6px);
}
.i3d__phase[data-sys="v"] { border-color: var(--volt); color: var(--volt); }
.i3d__phase[data-sys="f"] { border-color: var(--flow); color: var(--flow); }

.i3d__switches { display: flex; gap: .5rem; margin-top: .6rem; pointer-events: auto; }
.sw {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .72rem; border-radius: 2px;
  border: 1px solid var(--line-2); background: rgba(11,17,24,.78);
  font-family: var(--fd); font-size: .58rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: border-color var(--dur-ui) ease, color var(--dur-ui) ease,
              transform var(--dur-press) var(--ease-out);
}
.sw:active { transform: scale(.96); }
.sw i {
  width: 26px; height: 14px; border-radius: 8px; flex: none;
  border: 1px solid var(--line-2); position: relative;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
.sw i::after {
  content: ''; position: absolute; top: 1px; left: 1px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2);
  transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease;
}
.sw.is-on i::after { transform: translateX(12px); }
.sw--v.is-on { border-color: var(--volt); color: var(--volt); }
.sw--v.is-on i { background: var(--volt-soft); border-color: var(--volt); }
.sw--v.is-on i::after { background: var(--volt); }
.sw--f.is-on { border-color: var(--flow); color: var(--flow); }
.sw--f.is-on i { background: var(--flow-soft); border-color: var(--flow); }
.sw--f.is-on i::after { background: var(--flow); }

.i3d__info {
  position: relative; margin-top: .65rem; max-width: 36ch;
  background: rgba(13,20,28,.9); backdrop-filter: blur(8px);
  border-left: 2px solid var(--paper);
  padding: .8rem 2.4rem .85rem .9rem;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97);
  transform-origin: left bottom; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out),
              visibility 0s linear var(--dur-ui);
}
.i3d__info.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s; pointer-events: auto;
}
.i3d__info[data-sys="v"] { border-left-color: var(--volt); }
.i3d__info[data-sys="f"] { border-left-color: var(--flow); }
.i3d__info h3 { font-size: .9rem; margin-bottom: .3rem; }
.i3d__info p { font-size: .82rem; color: var(--muted); }
.i3d__x {
  position: absolute; top: .25rem; right: .25rem;
  width: 34px; height: 34px; background: none; border: 0; color: var(--muted);
}
.i3d__hint {
  margin-top: .6rem; font-size: .56rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(238,243,247,.42);
  display: flex; align-items: center; gap: .5rem;
}
.i3d__hint::before {
  content: ''; width: 20px; height: 1px; background: var(--line-2);
  animation: swipe 2.4s ease-in-out infinite; animation-play-state: paused;
}
.i3d.is-on .i3d__hint::before { animation-play-state: running; }
@keyframes swipe { 0%,100% { transform: translateX(-5px) scaleX(.6); } 50% { transform: translateX(5px) scaleX(1); } }

.inst__fb { padding: 2rem var(--pad); border: 1px solid var(--line); }

/* ============================== SERVICIOS ============================== */
.vert { padding: 3.2rem var(--pad); border-top: 1px solid var(--line); }
.vert__head { display: flex; align-items: baseline; gap: .7rem; }
.vert__tag {
  font-family: var(--fd); font-size: .6rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 2px;
}
.vert--v .vert__tag { background: var(--volt-soft); color: var(--volt); border: 1px solid var(--volt); }
.vert--f .vert__tag { background: var(--flow-soft); color: var(--flow); border: 1px solid var(--flow); }
.vert__h { font-size: clamp(1.7rem, 7.5vw, 3rem); margin-top: .8rem; }
.vert__p { margin-top: .8rem; color: var(--muted); max-width: 44ch; font-size: .92rem; }

.cards { display: grid; gap: .55rem; margin-top: 1.5rem; }
.card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--slate-2);
  padding: 0;
}
.card__btn {
  width: 100%; background: none; border: 0; text-align: left;
  padding: 1rem 2.6rem 1rem 1rem;
  display: grid; gap: .25rem;
  font-family: var(--fd);
}
.card__t { font-size: 1rem; font-weight: 600; }
.card__s { font-size: .78rem; color: var(--muted); font-family: var(--fb); }
.card__chev {
  position: absolute; right: 1rem; top: 1.15rem;
  width: 10px; height: 10px; border-right: 2px solid var(--paper-2);
  border-bottom: 2px solid var(--paper-2); transform: rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
  pointer-events: none;
}
.card.is-open .card__chev { transform: rotate(225deg); }
.card__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-panel) var(--ease-in-out);
}
.card.is-open .card__body { grid-template-rows: 1fr; }
.card__inner { overflow: hidden; }
.card__inner > div { padding: 0 1rem 1.1rem; }
.card__inner p { font-size: .86rem; color: var(--muted); }
.card__inner ul { margin: .7rem 0 0; padding-left: 1.1rem; font-size: .84rem; color: var(--muted); }
.card__inner li { margin-bottom: .3rem; }
.vert--v .card.is-open { border-color: var(--volt); }
.vert--f .card.is-open { border-color: var(--flow); }

.card__beta {
  display: inline-block; margin-top: .8rem;
  font-family: var(--fd); font-size: .54rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--warn); border: 1px dashed var(--warn);
  padding: .22rem .45rem; border-radius: 2px;
}

/* ============================= ASISTENTE =============================== */
.ask { padding: 4rem var(--pad); border-top: 1px solid var(--line); }
.ask__box {
  margin-top: 1.6rem; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--slate-2); padding: 1.2rem 1rem 1.3rem;
}
.ask__step { display: none; }
.ask__step.is-on { display: block; }
.ask__q { font-family: var(--fd); font-size: 1.15rem; font-weight: 600; }
.ask__opts { display: grid; gap: .45rem; margin-top: 1rem; }
.ask__opt {
  text-align: left; background: var(--slate-3); border: 1px solid var(--line);
  border-radius: 2px; padding: .85rem .9rem; font-size: .9rem;
  display: flex; align-items: center; gap: .6rem;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease,
              transform var(--dur-press) var(--ease-out);
}
.ask__opt:active { transform: scale(.985); }
.ask__opt b { font-family: var(--fd); font-weight: 600; }
.ask__opt[data-sys="v"]:hover, .ask__opt[data-sys="v"].is-on { border-color: var(--volt); }
.ask__opt[data-sys="f"]:hover, .ask__opt[data-sys="f"].is-on { border-color: var(--flow); }
.ask__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line-2); }
.ask__opt[data-sys="v"] .ask__dot { background: var(--volt); }
.ask__opt[data-sys="f"] .ask__dot { background: var(--flow); }

.ask__bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.ask__prog { flex: 1; height: 2px; background: var(--line); position: relative; }
.ask__prog i {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: var(--paper); transition: width var(--dur-panel) var(--ease-out);
}
.ask--v .ask__prog i { background: var(--volt); }
.ask--f .ask__prog i { background: var(--flow); }
.ask__back {
  background: none; border: 1px solid var(--line); border-radius: 2px;
  padding: .3rem .55rem; font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; font-family: var(--fd);
}
.ask__out { display: grid; gap: .6rem; margin-top: 1.1rem; }
.ask__sum {
  font-size: .84rem; color: var(--muted);
  border-left: 2px solid var(--line-2); padding-left: .8rem;
}
.ask__sum b { color: var(--paper); font-weight: 600; }
.ask__note { margin-top: .9rem; font-size: .72rem; color: rgba(238,243,247,.45); }

/* ============================== COBERTURA ============================== */
.zones { padding: 4rem var(--pad); border-top: 1px solid var(--line); }
.zones__list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.3rem; list-style: none; padding: 0; }
.zones__list button {
  font-family: var(--fd); font-size: .64rem; letter-spacing: .08em;
  padding: .4rem .66rem; border-radius: 2px;
  background: transparent; color: var(--paper-2); border: 1px solid var(--line);
  transition: border-color var(--dur-ui) ease, color var(--dur-ui) ease,
              transform var(--dur-press) var(--ease-out);
}
.zones__list button:active { transform: scale(.96); }
.zones__list button.is-on { color: var(--paper); border-color: var(--paper); }
.zones__info {
  margin-top: 1.1rem; font-size: .88rem; color: var(--muted); min-height: 3.4em;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.is-swap { opacity: 0; transform: translateY(6px); }

/* ================================ FAQ ================================== */
.faq { padding: 4rem var(--pad); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative;
  font-family: var(--fd); font-size: .96rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .3rem; top: 1.35rem;
  width: 9px; height: 9px; border-right: 2px solid var(--paper-2);
  border-bottom: 2px solid var(--paper-2); transform: rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq p { padding-bottom: 1.1rem; color: var(--muted); font-size: .88rem; }

/* =============================== Cierre ================================ */
.end { padding: 4.5rem var(--pad) 3rem; border-top: 1px solid var(--line); text-align: center; }
.end__h { font-size: clamp(1.8rem, 8vw, 3.2rem); }
.end__cta { display: grid; gap: .5rem; margin-top: 1.6rem; }
@media (min-width: 560px) { .end__cta { grid-template-columns: repeat(2, auto); justify-content: center; } }

.ft { padding: 2.2rem var(--pad) calc(var(--bar) + 2rem); border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.ft__nap { margin-bottom: 1rem; line-height: 1.7; }
.ft__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .9rem; }
.ft__links a { text-decoration: none; }
.ft__beta {
  margin-top: 1.2rem; padding: .7rem .8rem; border: 1px dashed var(--warn);
  color: var(--warn); font-size: .7rem; border-radius: 2px;
}

/* ============================== Escritorio ============================= */
@media (min-width: 820px) {
  .hero__type { max-width: 44rem; bottom: 4rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sec, .vert, .ask, .zones, .faq { padding-left: max(var(--pad), 8vw); padding-right: max(var(--pad), 8vw); }
  .inst__rail { top: 46vh; }
}

/* =========================== Movimiento reducido ======================= */
@media (prefers-reduced-motion: reduce) {
  .hero__scene { transform: none !important; }
  .hl--dust i, .pulse, .i3d__hint::before { animation: none !important; }
  .scene--inst { height: 170vh; }
  .card__body { transition: none; }
  .i3d__info { transform: none; }
}


/* ---- Correcciones de composición del hero ----------------------------- */
/* El dibujo ocupa la mitad superior y se ve entero; el texto, la inferior. */
.hl { inset: 0; }
.hl svg {
  position: absolute; left: 0; right: 0; top: 5%;
  width: 100%; height: 54%;
}
.hl--plan { transform: translateZ(-240px) scale(1.2); opacity: .45; }
.hl--volt { transform: translateZ(-70px) scale(1.05); }
.hl--flow { transform: translateZ(40px); }

.hero__h1 { font-size: clamp(1.85rem, 7.8vw, 3.6rem); }
.hero__lead { font-size: .9rem; }
.hero__cta { gap: .45rem; margin-top: 1.1rem; }
.hero__cta .btn { padding: .82rem 1rem; font-size: .72rem; }

/* La marca nunca empuja al teléfono fuera de la cabecera. */
.hud__brand b { font-size: .7rem; }
.hud__brand i { font-size: .5rem; }
@media (max-width: 379px) {
  .hud__brand i { display: none; }
  .hud__tel { font-size: .76rem; padding: .4rem .55rem; }
}

/* La marca se lee apilada: Valencia arriba, el oficio debajo. */
.hud__brand i { order: -1; letter-spacing: .26em; color: var(--paper-2); }


/* `hidden` tiene que ganar a cualquier display declarado después. */
[hidden] { display: none !important; }
