/* =====================================================================
   MAVO ACCESS — estilos propios de la página de producto (/mavoaccess)
   =====================================================================
   Se carga DESPUÉS de ../styles.css y no redeclara ninguno de sus tokens:
   la paleta, la tipografía, el nav, los botones, .hero, .stats, .why-card,
   .hw-card, .mini-card, .feature, .reveal y el tilt 3D vienen de allí.
   Aquí solo va lo que existe únicamente en esta página.

   Los tokens del hardware (cian/ámbar y los grises de la botonera) sí se
   declaran aquí porque el sitio no los tiene. Están documentados en
   designs/myDesing.md y valen la misma regla: VIVEN SOLO DENTRO DEL RENDER
   SVG DE LA BOTONERA Y EN SU LEYENDA. Nunca en el chrome de la página —
   ni bordes, ni botones, ni texto de interfaz.
   ===================================================================== */

:root {
  /* Lecturas de sistema y etiquetas técnicas (viene de designs/) */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* LEDs del dispositivo físico */
  --led-idle: #29abe2;   /* lector en espera / leyendo credencial */
  --led-floor: #f5b01a;  /* piso marcado, halo del botón encendido */

  /* Grises de la botonera física (aluminio de cabina: fríos a propósito) */
  --m-wall-l: #c2c2c4; --m-wall-d: #a7a7aa; --m-seam: #d8d8da; --m-line: #8a8a8d;
  --m-face: #ededee;   --m-bezel: #d9d9db;  --m-plate: #3b3b3d; --m-plate-in: #57575b;
}

/* Utilidad para texto solo de lectores de pantalla (leyendas de tabla, marcas) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================== NAV: sub-etiqueta "Access" ===================== */
.nav__lockup { display: block; }
/* El menú móvil de esta página tiene un enlace más que el de la landing
   (5 secciones + "Volver al inicio" + el botón), y los 420px de styles.css
   se quedan justos: el último elemento quedaría recortado. */
.nav__mobile.is-open { max-height: 520px; }
.nav__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 3px;
}

/* ===================== HERO: video de la ilustración ===================== */
/* Reusa .hero__video-card y .hero__video (borde, radio, sombra, object-fit)
   de styles.css, y solo corrige el aspecto: la tarjeta del hero de la landing
   es 4/5, pero `video-access-hero.mp4` es 768×1152, o sea 2/3. Con 4/5 el
   `object-fit: cover` se comía la fila de botones de piso, que es justo el
   contexto que da a entender que esto es la botonera de un ascensor.
   Si algún día se cambia el video, ajusta esto a su proporción real. */
.hero__video-card { aspect-ratio: 2 / 3; }
.fig-chip {
  position: absolute; left: 16px; bottom: 16px;
  max-width: calc(100% - 32px);
  background: rgba(var(--ink-rgb), 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.fig-chip .k {
  display: block; font-family: var(--mono);
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 3px;
}
.fig-chip .v { font-family: var(--display); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

/* ===================== SUB-CABECERA DE BLOQUE ===================== */
/* Separador dentro de una sección que ya tiene su .section__head centrado. */
.sub-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px;
  margin: 72px 0 28px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sub-head h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.sec-note {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
}

/* ===================== SECUENCIA: barra de control ===================== */
.seq-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px; margin-top: 26px;
}
.readout {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2);
}
.readout b { color: var(--text); font-weight: 600; }

/* ===================== SECUENCIA: 4 bloques ===================== */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.step { min-width: 0; display: flex; flex-direction: column; }

.rail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rail__code {
  flex: none; font-family: var(--display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--red-soft); background: rgba(var(--red-rgb), 0.1);
  padding: 6px 11px; border-radius: 6px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.rail__line { flex: 1; height: 1px; background: var(--line); position: relative; }
.rail__line::after {
  content: ""; position: absolute; right: 0; top: -3.5px;
  border-left: 7px solid var(--line-strong);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.step:last-child .rail__line { opacity: 0.35; }
.step:last-child .rail__line::after { display: none; }

/* Tarjeta del paso: hereda .hw-card de styles.css (borde, radio, hover,
   spotlight ::after y tilt 3D vía script.js) y solo ajusta lo que cambia. */
.hw-card--step {
  flex: 1; display: flex; flex-direction: column;
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  cursor: pointer;
}
/* El spotlight ::after se pinta encima del contenido: hay que elevarlo. */
.hw-card--step > * { position: relative; z-index: 1; }
.hw-card--step:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.figure {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line-strong);
  /* Marco oscuro: presenta el panel claro como render de producto y no como
     un hueco blanco en la página. */
  background: radial-gradient(120% 90% at 50% 0%, #2a2320, #14100e 70%);
  padding: 14px 0; display: flex; justify-content: center;
}
.figure svg { width: 100%; max-width: 186px; height: auto; display: block; }

.step__title { font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.25; margin: 18px 0 8px; }
.step__text { color: var(--muted); font-size: 0.9rem; }

/* Paso activo durante la reproducción de la secuencia */
.step.is-active .hw-card { border-color: var(--red); box-shadow: 0 0 40px -14px var(--red-glow); }
.step.is-active .rail__code { background: var(--red); color: #fff; box-shadow: 0 0 18px -4px var(--red-glow); }

/* ===================== BENEFICIOS: dos audiencias ===================== */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud {
  padding: 36px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
}
.aud__head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.aud__ic {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  color: var(--red);                      /* misma regla que .feature__ic */
  background: rgba(var(--red-rgb), 0.1); border: 1px solid rgba(var(--red-rgb), 0.28);
}
.aud__head h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.aud__tag {
  color: var(--muted-2); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.aud .feature-list { margin-top: 26px; }

/* ===================== VENTAJAS: tabla comparativa ===================== */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2);
  -webkit-overflow-scrolling: touch;
}
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th {
  font-family: var(--display); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted);
  background: var(--ink); white-space: nowrap;
}
.cmp tbody th { font-family: var(--font); font-size: 0.94rem; font-weight: 500; color: var(--text); }
.cmp td { text-align: center; width: 1%; white-space: nowrap; }
.cmp thead th:not(:first-child) { text-align: center; }
.cmp tbody tr:hover th, .cmp tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* La columna propia va destacada en rojo de marca, no en un color nuevo. */
.cmp .cmp__own { background: rgba(var(--red-rgb), 0.07); }
.cmp thead .cmp__own {
  color: var(--white);
  background: rgba(var(--red-rgb), 0.16);
  box-shadow: inset 0 -2px 0 var(--red);
}
.cmp tbody tr:hover .cmp__own { background: rgba(var(--red-rgb), 0.11); }

.mark { display: inline-flex; align-items: center; justify-content: center; }
.mark--yes, .mark--no {
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.95rem;
}
.mark--yes { color: var(--red-soft); background: rgba(var(--red-rgb), 0.15); }
.mark--yes .icon { stroke-width: 2.5; }
.mark--no { color: var(--muted-2); background: rgba(255, 255, 255, 0.05); }
.mark--part {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.cmp__note {
  margin-top: 18px; color: var(--muted-2); font-size: 0.88rem; max-width: 70ch;
}

/* ===================== HARDWARE: notas de instalación ===================== */
.install {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line);
}
.install .feature { align-items: flex-start; }

/* ===================== CTA DE WHATSAPP ===================== */
.wa-cta { max-width: 720px; text-align: center; }
.wa-cta .cta__mark { margin: 0 auto 22px; }
.wa-cta h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px;
}
.wa-cta > div > p { color: var(--muted); font-size: 1.05rem; }
.wa-cta__btn { margin-top: 30px; }
.wa-cta__num {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.1em; color: var(--muted-2); margin-top: 14px;
}
.wa-cta .cta__contacts {
  justify-content: center; margin-top: 34px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.wa-cta .cta__contacts li { justify-content: center; }
.wa-cta__alt { margin-top: 26px; color: var(--muted-2); font-size: 0.92rem; }

/* El botón de WhatsApp (`.btn--whatsapp`, con su hover verde) vive en
   ../styles.css: lo usan las dos páginas desde que el nav de la landing lo
   lleva también. Aquí ya no queda nada propio de WhatsApp. */

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; gap: 22px; }
  /* El video es vertical: aquí NO se apaisa la tarjeta (styles.css ya limita
     .hero__visual a 440px de ancho, que es lo que la mantiene a raya). */
  .sub-head { margin-top: 56px; }
}
@media (max-width: 720px) {
  .nav__sub { display: none; }
  .figure svg { max-width: 212px; }
  .aud { padding: 26px; }
  .seq-bar { flex-direction: column; align-items: stretch; }
  .wa-cta .cta__contacts li { justify-content: flex-start; text-align: left; }
}
@media (max-width: 480px) {
  .flow-grid { grid-template-columns: 1fr; }
}

/* ===================== MOVIMIENTO REDUCIDO ===================== */
/* styles.css ya apaga animaciones y transiciones globalmente; aquí solo hay
   que dejar los estados luminosos del SVG en su valor final visible. */
@media (prefers-reduced-motion: reduce) {
  .a-breathe, .a-emit, .a-halo { opacity: 1; }
  .a-halo { display: none; }   /* el halo pulsante solo existe como animación */
}

/* =====================================================================
   SISTEMA SVG DE LA BOTONERA
   =====================================================================
   Geometría y clases documentadas en designs/myDesing.md. Los 4 pasos
   comparten el mismo dibujo (viewBox 0 0 300 420) y solo cambia el estado
   luminoso. Si añades un paso, copia la geometría en lugar de recolocar.
   ===================================================================== */
.wall { stroke: var(--m-line); stroke-width: 1; }
.seam { fill: var(--m-seam); }
.seamline { stroke: var(--m-line); stroke-width: 0.7; opacity: 0.55; }
.bezel { fill: var(--m-bezel); stroke: var(--m-line); stroke-width: 1.2; }
.face { fill: var(--m-face); stroke: #b7b7ba; stroke-width: 1; }
.blabel { font-family: var(--display); font-size: 25px; font-weight: 700; fill: #17181a; text-anchor: middle; }
.braille { fill: #3a3a3c; }
.dim { opacity: 0.4; }
.plate { fill: var(--m-plate); stroke: #2b2b2d; stroke-width: 1; }
.plate-in { fill: none; stroke: var(--m-plate-in); stroke-width: 1.4; }
.glyph { fill: none; stroke: var(--led-idle); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.glyph--live { stroke: var(--red-soft); }
.strip--idle { fill: var(--led-idle); }
.strip--live { fill: var(--red-soft); }
.lockg { fill: none; stroke: var(--led-idle); stroke-width: 1.6; stroke-linecap: round; }
.okg { fill: none; stroke: var(--red-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tog { fill: #2a2a2c; stroke: #151516; stroke-width: 1; }
.doorg { fill: none; stroke: #5a5a5e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fant { font-family: var(--font); font-size: 11px; font-weight: 600; fill: #17181a; text-anchor: middle; }
.card-w { fill: #fcfcfc; stroke: #6e6e71; stroke-width: 1.4; }
.card-t { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 1.5px; fill: #141416; text-anchor: middle; }
.wave { fill: none; stroke: var(--led-idle); stroke-width: 2.4; stroke-linecap: round; }
.halo { fill: none; stroke: var(--led-floor); stroke-width: 2; }
.selface { fill: #f7d68f; stroke: var(--led-floor); stroke-width: 1.8; }
.selring { fill: none; stroke: var(--led-floor); stroke-width: 3; }

@keyframes breathe { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes emit { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulseout { 0% { opacity: 0.9; transform: scale(0.74); } 100% { opacity: 0; transform: scale(1.12); } }
.a-breathe { animation: breathe 2.8s ease-in-out infinite; }
.a-emit { animation: emit 1.9s ease-out infinite; }
.a-emit.d1 { animation-delay: 0.24s; }
.a-emit.d2 { animation-delay: 0.48s; }
.a-halo { transform-box: fill-box; transform-origin: center; animation: pulseout 1.9s ease-out infinite; }
.a-halo.d2 { animation-delay: 0.55s; }
