/* =====================================================================
   CRS Ingeniería & Control — main.css
   Concepto: la página es un plano de ingeniería y un montacargas lleva
   la información a cada nivel (sección). Grilla, rótulos, cotas y tags
   de instrumento. Petróleo (verde Siemens) como color principal.
   Mobile-first · 375 / 768 / 1024 / 1440 · sin scroll horizontal.
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Marca. El petróleo ("verde Siemens") es el color principal, por pedido del cliente.
     El navy del manual queda en el logotipo; el rojo, como acento técnico mínimo. */
  --petrol: #039A9A;          /* color de marca */
  --red: #ED1F24;             /* segundo acento: líneas sobre fondo profundo (3.1:1) */
  --red-btn: #DC1B20;         /* fondo rojo con texto blanco: 4.9:1 */
  --red-ink: #C8171C;         /* rojo para texto sobre claro: 5.4:1 */
  --paper: #F2F8F7;
  /* Derivados: el mismo tono que el verde de marca (180°), más oscuro o más claro. Contraste AA verificado. */
  --deep: #055E5E;            /* fondo principal oscuro: blanco 7.6:1 */
  --deep-2: #043737;          /* fondo profundo: header, pie, guía */
  --deep-3: #054545;          /* panel, más oscuro que el fondo: blanco 10.9:1 */
  --bright: #5EE0E0;          /* acento y botón principal sobre oscuro: 4.9:1 */
  --brand-ink: #046F6F;       /* petróleo para texto sobre claro: 5.6:1 */
  --red-lt: #FFBABB;          /* rojo para texto y líneas sobre oscuro: 4.5:1 */
  --navy: #122B3A;            /* navy del manual: tinta de las secciones claras (texto y estructura), 14:1 */
  --ink: var(--navy);
  --muted: #4B6373;           /* gris azulado que acompaña al navy, sobre claro: 6.3:1 */
  --muted-d: #C4DDDD;         /* sobre oscuro: 5.3:1 */
  --line: rgba(18, 43, 58, .16);
  --line-d: rgba(212, 237, 237, .2);
  --trace: #D4EDED;           /* trazo de plano sobre oscuro */

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --header: 64px;
  --rail: 0px;
  --gut: clamp(20px, 4.4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* El fondo del lienzo iguala al encabezado y al pie: es lo que se ve en el rebote del scroll
   (celulares, trackpads) al pasar del inicio o del final. El blanco de las secciones claras lo pinta body. */
html { background: var(--deep-2); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  padding-left: var(--rail);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"], .nav__list, .mobile-nav__list, .footer-col ul, .hoja__alc, .lift__list { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
::selection { background: var(--petrol); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.i-arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }
.visually-hidden, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; background: #fff; color: var(--navy); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-weight: 800; font-stretch: 112%; line-height: 1.06; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.7vw, 3rem); }
h3 { font-size: 1.2rem; line-height: 1.2; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.word { display: inline-block; }

/* Antes de que main.js prepare las animaciones no se muestra lo que va a animarse.
   Si el script no llega, a los 3,5 s aparece igual (nunca queda contenido oculto). */
@keyframes failsafe { to { opacity: 1; } }
.js:not(.is-ready) :is(.plano, [data-in], h1 .word) { opacity: 0; animation: failsafe .4s 3.5s forwards; }
.will-reveal { opacity: 0; }

/* ------------------------------------------------------------------
   Botones
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--mono); font-size: .86rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 2px;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
  cursor: pointer;
}
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .78rem; }
.btn--main { background: var(--bright); color: var(--deep-2); }
.btn--main:hover { background: #96EEEE; }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: rgba(94, 224, 224, .14); border-color: var(--bright); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------
   Rótulos, tags y etiquetas de plano
   ------------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.eyebrow--ink { color: var(--brand-ink); }
.eyebrow__led { width: 8px; height: 8px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 4px rgba(94, 224, 224, .2); animation: led 2.4s ease-in-out infinite; }
@keyframes led { 50% { opacity: .35; } }

.rotulo { display: inline-flex; flex-wrap: wrap; margin-bottom: 22px; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 1.5px solid currentColor; }
.rotulo > span { padding: 6px 12px; }
.rotulo > span + span { border-left: 1.5px solid currentColor; }
.rotulo__n { background: var(--bright); color: var(--deep-2); font-weight: 700; }
.rotulo__doc { opacity: .72; }
.tag { display: inline-block; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }

.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { max-width: 18ch; color: var(--petrol); }
.sec-head h2.h2--long { max-width: 26ch; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }   /* títulos de más de 60 caracteres */
.section--deep .sec-head h2 { color: #fff; }
.sec-head .lead { margin-top: 20px; }

/* ------------------------------------------------------------------
   Secciones (láminas del plano)
   ------------------------------------------------------------------ */
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section--paper { background-color: var(--paper); }
.section--deep, .hero, .simple { color: #fff; background-color: var(--deep); }
.section--deep .lead, .hero .lead, .simple .lead { color: var(--muted-d); }
.section--deep .tag { color: var(--bright); }
/* grilla de plano: módulo de 32 px, línea mayor cada 160 px */
.section--deep, .hero, .simple {
  background-image:
    linear-gradient(rgba(212, 237, 237, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 237, 237, .075) 1px, transparent 1px),
    linear-gradient(rgba(212, 237, 237, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 237, 237, .035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}
.section--paper {
  background-image: linear-gradient(rgba(18, 43, 58, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 43, 58, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header); background: rgba(4, 55, 55, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-d); color: #fff; transition: transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 18px; height: 100%; padding-inline: var(--gut); }
/* la línea roja de la carta de presentación, usada como progreso de lectura */
.site-header__progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand__logo { height: 40px; width: auto; }
.logo-sigla { fill: #fff; }
.logo-tag { fill: var(--muted-d); }
@media (max-width: 420px) { .site-header__inner { gap: 10px; } .nivel span { display: none; } }
.nivel { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.nivel b { padding: 3px 7px; border: 1.5px solid var(--red); color: #fff; font-weight: 600; }
.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: .92rem; font-weight: 500; text-decoration: none; color: #E2F3F3; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav__link span { font-family: var(--mono); font-size: .68rem; color: var(--bright); }
.nav__link:hover, .nav__link.is-current { color: #fff; border-color: var(--bright); }

/* WhatsApp en el encabezado: botón con texto en escritorio, ícono solo en el celular (el menú queda cerrado) */
.header-wa { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--bright); color: var(--deep-2); border: 1.5px solid var(--bright); border-radius: 2px; transition: background-color .2s; }
.header-wa:hover { background: #E2F3F3; }
.header-wa .icon { width: 24px; height: 24px; }
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1.5px solid var(--line-d); border-radius: 2px; }
.nav-toggle__bars { display: grid; gap: 6px; width: 20px; }
.nav-toggle__bars span { height: 2px; background: #fff; transition: transform .3s var(--ease); }
[data-nav-open] .nav-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
[data-nav-open] .nav-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: var(--header) 0 0 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px var(--gut) 32px; background: var(--deep-2); color: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
[data-nav-open] .mobile-nav { visibility: visible; opacity: 1; }
[data-nav-open] body { overflow: hidden; }
.mobile-nav__list a { display: flex; align-items: baseline; gap: 16px; min-height: 52px; padding: 10px 0; font-size: 1.5rem; font-weight: 800; font-stretch: 112%; text-decoration: none; border-bottom: 1px solid var(--line-d); }
.mobile-nav__list span { font-family: var(--mono); font-size: .74rem; font-weight: 500; color: var(--bright); min-width: 34px; }
.mobile-nav__foot { display: grid; gap: 12px; }

/* ------------------------------------------------------------------
   Guía del montacargas (escritorio): PB abajo, último nivel arriba.
   Al avanzar en la lectura la cabina sube, como en la torre de la portada.
   ------------------------------------------------------------------ */
.lift { display: none; }
@media (min-width: 1180px) {
  :root { --rail: 76px; --header: 76px; }
  .brand__logo { height: 48px; }
  .nivel, .nav-toggle, .mobile-nav, .header-wa { display: none; }
  .nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
  .lift { display: block; position: fixed; left: 0; top: var(--header); bottom: 0; z-index: 90; width: var(--rail); background: var(--deep-2); border-right: 1px solid var(--line-d); color: #fff; }
  .lift__rail { position: absolute; left: 50%; top: 34px; bottom: 34px; width: 12px; margin-left: -6px; border-inline: 1.5px solid rgba(212, 237, 237, .45);
    background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(212, 237, 237, .28) 9px 10px); }
  .lift__list { position: absolute; inset: 34px 0; display: flex; flex-direction: column-reverse; justify-content: space-between; }
  .lift__list a { position: relative; display: grid; place-items: center; height: 0; text-decoration: none; }
  .lift__code { display: grid; place-items: center; width: 44px; height: 26px; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .04em; color: var(--muted-d); background: var(--deep-2); border: 1px solid rgba(212, 237, 237, .3); transition: color .2s, border-color .2s; }
  .lift__list a::before { content: ""; position: absolute; inset: -18px 0; }
  .lift__name { position: absolute; left: calc(100% - 8px); padding: 5px 10px; white-space: nowrap; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--deep); opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .lift__list a:hover .lift__name, .lift__list a:focus-visible .lift__name { opacity: 1; transform: none; }
  .lift__list a:hover .lift__code { color: #fff; border-color: var(--bright); }
  .lift__car { position: absolute; left: 50%; bottom: 34px; z-index: 2; display: grid; place-items: center; width: 52px; height: 34px; margin: 0 0 -17px -26px; font-family: var(--mono); font-size: .78rem; background: var(--red-btn); color: #fff; border: 1.5px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: translateY(calc(-1 * var(--y, 0px))); pointer-events: none; will-change: transform; }
  .lift__car b { font-weight: 700; }
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero { position: relative; padding-top: calc(var(--header) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(28px, 4vw, 48px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(2rem, 9.4vw, 4.5rem); font-weight: 850; font-stretch: 116%; line-height: 1; }
/* título en tres renglones parejos: una palabra del lema por línea */
.h1-line { display: block; white-space: nowrap; }
/* bajada del título: la propuesta de valor */
.hero__sub { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--red-lt); font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 600; line-height: 1.25; color: #fff; }
.hero__lead { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
.hero__scope li { padding: 6px 10px; border: 1px solid var(--line-d); }
.hero__plano { position: relative; }
.hero__plano .plano { width: 100%; }
.hero__hint { margin-top: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: var(--muted-d); }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); }
  .hero h1 { font-size: clamp(2.7rem, 4.2vw, 3.8rem); }
}

.cajetin { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(28px, 4vw, 48px); border: 1.5px solid rgba(212, 237, 237, .5); font-family: var(--mono); }
.cajetin > div { padding: 10px 14px; border-right: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.cajetin dt { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.cajetin dd { font-size: .82rem; }
@media (min-width: 900px) { .cajetin { grid-template-columns: 2.2fr 1fr 1.2fr 1.1fr .9fr .7fr; } .cajetin > div { border-bottom: 0; } }

/* Plano del montacargas */
.plano { height: auto; overflow: visible; }
.plano :is(.pl-line, .pl-thin, .pl-wire, .pl-power, .pl-cota, .pl-cable) { fill: none; }
.pl-line { stroke: var(--trace); stroke-width: 1.6; }
.pl-thin { stroke: rgba(212, 237, 237, .5); stroke-width: 1; }
.pl-cota { stroke: rgba(212, 237, 237, .6); stroke-width: 1; }
.pl-wire { stroke: var(--bright); stroke-width: 1.4; }
.pl-wire--bus { stroke-dasharray: 5 4; }
.pl-power { stroke: var(--red-lt); stroke-width: 2; }
.pl-cable { stroke: var(--trace); stroke-width: 1.4; }
.pl-node { fill: var(--bright); }
.pl-dot { fill: var(--trace); }
.pl-txt { font-family: var(--mono); fill: var(--trace); font-size: 11px; letter-spacing: .06em; }
.pl-txt--xs { font-size: 9.5px; }
.pl-txt--xxs { font-size: 8px; fill: var(--muted-d); }
.pl-txt--dim { fill: var(--muted-d); }
.pl-txt--red { fill: var(--red-lt); }
.pl-txt--m { font-family: var(--sans); font-weight: 800; font-size: 17px; }
.pl-txt--code { font-size: 10px; fill: var(--muted-d); }
.pl-txt--stop { font-size: 12.5px; font-weight: 600; fill: #fff; }

.car { will-change: transform; }
.car__box { fill: var(--petrol); stroke: #fff; stroke-width: 2; }
.car__roof { stroke: #fff; stroke-width: 4; }
.car__load { fill: var(--deep-2); stroke: #fff; stroke-width: 1.4; }
.car__shoe { fill: var(--trace); }
.polea { transform-box: fill-box; transform-origin: center; }

/* Celular: el plano se muestra completo, a ~55 % de escala. Se agrandan las etiquetas de nivel y
   los trazos, y se ocultan los textos técnicos que a ese tamaño no se leen. */
.pl-txt--mob { display: none; }
@media (max-width: 699px) {
  .plano :is(.pl-txt--xs, .pl-txt--xxs, .hmi__lbl, .hmi__state) { display: none; }
  .pl-txt--mob { display: inline; font-size: 15px; font-weight: 600; fill: var(--bright); }
  .pl-txt--stop { font-size: 19px; }
  .pl-txt--code { font-size: 14px; transform: translateY(-9px); }
  .pl-txt--m { font-size: 20px; }
  .pl-line { stroke-width: 2.3; }
  .pl-thin, .pl-cota { stroke-width: 1.4; }
  .pl-wire, .pl-cable { stroke-width: 2; }
  .pl-power { stroke-width: 2.8; }
  .car__box { stroke-width: 3; }
  .car__load { stroke-width: 2; }
  .stop__btn { stroke-width: 2.2; }
  .hmi__num { font-size: 46px; }
}

.stop { cursor: pointer; }
.stop__hit { fill: transparent; stroke: transparent; stroke-width: 1.2; transition: fill .2s, stroke .2s; }
.stop__btn { fill: var(--deep); stroke: var(--trace); stroke-width: 1.5; transition: stroke .2s; }
.stop__dot { fill: var(--trace); transition: fill .2s; }
.stop:hover .stop__hit, .stop:focus-visible .stop__hit { fill: rgba(94, 224, 224, .12); stroke: var(--bright); }
.stop:focus-visible { outline: none; }
.stop.is-on .stop__btn { stroke: var(--bright); }
.stop.is-on .stop__dot { fill: var(--bright); }
.stop.is-on .pl-txt--code { fill: var(--bright); }
.stop.is-called .stop__dot { fill: var(--bright); animation: led .6s linear infinite; }

.fc__led { fill: var(--deep); stroke: var(--trace); stroke-width: 1.2; transition: fill .2s; }
.fc.is-on .fc__led { fill: var(--bright); stroke: #fff; }
.sig { fill: #fff; opacity: 0; }
.plc__led { fill: rgba(212, 237, 237, .2); transition: fill .15s; }
.plc__led.is-on { fill: var(--bright); }
.plc__led--out.is-on { fill: var(--red-lt); }
.plc__led--run { fill: var(--bright); animation: led 1.6s steps(2, jump-none) infinite; }
.hmi__screen { fill: #022626; stroke: rgba(212, 237, 237, .35); }
.hmi__lbl { font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; fill: var(--muted-d); }
.hmi__num { font-family: var(--mono); font-size: 40px; font-weight: 700; fill: var(--bright); }
.hmi__state { font-family: var(--mono); font-size: 7px; font-weight: 600; fill: #fff; }
.hmi__state.is-run { fill: var(--red-lt); }
.hmi__track { fill: none; stroke: rgba(212, 237, 237, .35); }
.hmi__bar { fill: var(--bright); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.04); }
.hmi__key { fill: none; stroke: var(--trace); }
.hmi__key--stop { stroke: var(--red-lt); }

/* ------------------------------------------------------------------
   Ticker de alcance
   ------------------------------------------------------------------ */
.ticker { overflow: hidden; background: var(--petrol); border-top: 3px solid var(--red); color: var(--deep-2); }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; padding: 15px 0; font-family: var(--mono); font-size: 1.17rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 7px; height: 7px; margin-inline: 26px; background: var(--deep-2); transform: rotate(45deg); }
.ticker:hover .ticker__track, .is-off .ticker__track, .is-off.ticker .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
   N01 Nosotros
   ------------------------------------------------------------------ */
.about { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__lit { font-size: clamp(1.3rem, 2.4vw, 1.95rem); font-weight: 500; line-height: 1.32; }
.about__lit .w { color: var(--ink); transition: color .5s; }
.js .about__lit .w:not(.is-lit) { color: #819A9A; }
.about__p { margin-top: 24px; color: var(--muted); max-width: 60ch; }
.ficha { border: 1.5px solid var(--navy); font-family: var(--mono); font-size: .82rem; background: #fff; }
.ficha > div { display: grid; grid-template-columns: 104px 1fr; border-top: 1px solid var(--line); }
.ficha dt { padding: 11px 12px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); }
.ficha dd { padding: 11px 12px; }
.ficha .ficha__head { border-top: 0; background: var(--navy); color: #fff; grid-template-columns: 1fr auto; }
.ficha .ficha__head dt { color: #fff; border-right: 0; }
.ficha .ficha__head dd { color: var(--bright); }
.cifras { display: grid; gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1.5px solid var(--navy); }
.cifra { padding: 26px 0; border-bottom: 1px solid var(--line); }
.cifra__num { display: flex; align-items: baseline; gap: 2px; font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 850; font-stretch: 116%; line-height: 1; color: var(--petrol); font-variant-numeric: tabular-nums; }
.cifra__u { margin-left: 10px; font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }
.cifra__lbl { margin-top: 10px; color: var(--muted); max-width: 34ch; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .cifras { grid-template-columns: repeat(3, 1fr); }
  .cifra { padding: 30px 28px 0 0; border-bottom: 0; }
  .cifra + .cifra { padding-left: 28px; border-left: 1px solid var(--line); }
  .sec-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
  .sec-head--split .lead { margin-top: 0; }
}

/* ------------------------------------------------------------------
   N02 Servicios — hojas de especificación
   ------------------------------------------------------------------ */
.hojas { display: grid; gap: 16px; }
.hoja { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: rgba(5, 69, 69, .9); border: 1px solid var(--line-d); transition: border-color .3s, transform .4s var(--ease); scroll-margin-top: calc(var(--header) + 24px); }
/* marcas de corte en las esquinas */
.hoja::before, .hoja::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--bright); transition: width .3s var(--ease), height .3s var(--ease); }
.hoja::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hoja::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.hoja:hover { border-color: rgba(94, 224, 224, .6); transform: translateY(-4px); }
.hoja:hover::before, .hoja:hover::after { width: 26px; height: 26px; }
.hoja:target { border-color: var(--bright); }
.hoja__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.hoja h3 { font-size: 1.32rem; }
.hoja__sum { font-weight: 600; }
.hoja__txt { color: var(--muted-d); font-size: .98rem; }
.hoja__alc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.hoja__alc li { padding: 4px 9px; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--trace); border: 1px solid var(--line-d); }
.hoja--cta { background: transparent; border-style: dashed; border-color: rgba(212, 237, 237, .45); justify-content: center; align-items: flex-start; }
.hoja--cta .btn { margin-top: 12px; }
.dg { width: 120px; height: 72px; flex: none; fill: none; stroke: var(--trace); stroke-width: 1.5; stroke-linecap: square; }
.dg-accent { stroke: var(--bright); }
.dg-old { stroke-dasharray: 3 3; opacity: .7; }
.dg-grid { opacity: .35; }
.dg .leds circle { fill: var(--bright); stroke: none; animation: led 1.8s steps(2, jump-none) infinite; }
.dg .leds circle:nth-child(2n) { animation-delay: -.6s; }
.dg .leds circle:nth-child(3n) { animation-delay: -1.1s; fill: var(--red-lt); }
.is-off .leds circle { animation-play-state: paused; }
@media (min-width: 640px) { .hojas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hojas { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------
   N03 Método — diagrama ladder: cada etapa habilita la siguiente
   ------------------------------------------------------------------ */
.metodo { display: grid; gap: clamp(24px, 4vw, 64px); }
.metodo__legend { display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.metodo__legend span { display: inline-flex; align-items: center; gap: 8px; }
.metodo__legend .ld { width: 44px; height: 22px; }
.ld { width: 64px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; }
.ld__on { stroke: none; fill: var(--petrol); opacity: 0; transition: opacity .35s; }
.ladder { position: relative; display: grid; padding-left: 14px; border-left: 4px solid var(--navy); }
.rung { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 22px 0; }
/* el cable del peldaño: gris en reposo, petróleo cuando la etapa se energiza */
.rung::before, .rung::after { content: ""; position: absolute; left: -14px; top: 37px; height: 2px; width: 26px; background: #B5C9C9; }
.rung::after { background: var(--petrol); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.rung.is-on::after { transform: scaleX(1); }
.rung__io { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; color: #8AA3A3; background: #fff; transition: color .4s; }
.rung__io .ld { width: 56px; height: 28px; }
.rung__io small { font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; }
.rung__n, .rung__io--out { display: none; }
.rung__body { position: relative; z-index: 1; padding: 16px 18px; background: #fff; border: 1.5px solid var(--line); transition: border-color .4s .2s, box-shadow .4s .2s; }
.rung__body h3 { margin-bottom: 6px; }
.rung__body p { color: var(--muted); font-size: .98rem; }
.rung.is-on .rung__io { color: var(--navy); }
.rung.is-on .ld__on { opacity: 1; }
.rung.is-on .rung__io--out .ld__on { transition-delay: .55s; }
.rung.is-on .rung__body { border-color: var(--navy); box-shadow: 6px 6px 0 rgba(3, 154, 154, .16); }
@media (min-width: 760px) {
  .ladder { padding-inline: 20px; border-right: 4px solid var(--navy); }
  .rung { grid-template-columns: 30px 64px minmax(0, 1fr) 64px; gap: 18px; padding: 24px 0; }
  .rung::before, .rung::after { left: -20px; right: -20px; width: auto; top: 41px; }
  .rung__n { display: block; padding-top: 1px; font-family: var(--mono); font-size: .66rem; line-height: 1; color: var(--muted); }
  .rung__io--out { display: grid; }
  .rung__io .ld { width: 64px; height: 32px; }
}
@media (min-width: 1000px) {
  .metodo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .metodo__head { position: sticky; top: calc(var(--header) + 40px); }
  .metodo .sec-head { margin-bottom: 28px; }
}

/* ------------------------------------------------------------------
   N04 Industrias
   ------------------------------------------------------------------ */

/* ------------------------------------------------------------------
   N05 Proyectos y clientes
   ------------------------------------------------------------------ */
.lams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lam { display: flex; flex-direction: column; min-width: 0; background: rgba(5, 69, 69, .9); border: 1px solid var(--line-d); }
.lam--xl { grid-column: span 2; }
/* Láminas: la foto se ve natural. Las marcas de corte de las esquinas y la etiqueta de hover dan el aire de plano;
   la vista de ingeniería (duotono, cuadrícula, puntos) se activa recién dentro del visor. */
.lam__btn { position: relative; isolation: isolate; display: block; flex: 1; width: 100%; padding: 0; border: 0; background: var(--deep-2); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; }
.lam__btn picture, .lam__btn img { display: block; width: 100%; height: 100%; }
.lam__btn img { object-fit: cover; transition: transform .8s var(--ease); }
.lam__btn::after { content: ""; position: absolute; inset: 10px; z-index: 2; opacity: .9; pointer-events: none; transition: inset .4s var(--ease);
  background:
    linear-gradient(var(--bright), var(--bright)) 0 0 / 16px 2px no-repeat, linear-gradient(var(--bright), var(--bright)) 0 0 / 2px 16px no-repeat,
    linear-gradient(var(--bright), var(--bright)) 100% 0 / 16px 2px no-repeat, linear-gradient(var(--bright), var(--bright)) 100% 0 / 2px 16px no-repeat,
    linear-gradient(var(--bright), var(--bright)) 0 100% / 16px 2px no-repeat, linear-gradient(var(--bright), var(--bright)) 0 100% / 2px 16px no-repeat,
    linear-gradient(var(--bright), var(--bright)) 100% 100% / 16px 2px no-repeat, linear-gradient(var(--bright), var(--bright)) 100% 100% / 2px 16px no-repeat; }
.lam__btn:hover img, .lam__btn:focus-visible img { transform: scale(1.04); }
.lam__btn:hover::after, .lam__btn:focus-visible::after { inset: 6px; }
.lam__btn:focus-visible { outline: 2px solid var(--bright); outline-offset: -2px; }
.lam__ev { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(4, 55, 55, .9); border: 1px solid var(--bright); color: #fff; font: 600 .64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.lam__ev i { width: 8px; height: 8px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 3px rgba(94, 224, 224, .3); }
.lam__ev small { display: none; font: inherit; }
.lam__btn:hover .lam__ev, .lam__btn:focus-visible .lam__ev { opacity: 1; transform: none; }
@media (hover: none) { .lam__ev { opacity: 1; transform: none; } .lam__ev b { display: none; } .lam__ev small { display: inline; } }
.lam__meta { padding: 12px 14px 16px; }
.lam__code { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bright); }
.lam__code span:last-child { color: var(--muted-d); }
.lam h3 { font-size: 1rem; }
.lam__txt { display: none; margin-top: 6px; font-size: .88rem; color: var(--muted-d); }
.lam--cta { justify-content: center; gap: 12px; padding: 20px; border-style: dashed; background: transparent; }
.lam--cta .btn { align-self: flex-start; }
@media (min-width: 700px) { .lams { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lam__txt { display: block; } }
@media (min-width: 1000px) { .lams { grid-template-columns: repeat(4, minmax(0, 1fr)); } .lam--xl { grid-row: span 2; } .lam--xl .lam__btn { aspect-ratio: auto; } }

.clientes { margin-top: clamp(64px, 8vw, 112px); }
.clientes__t { max-width: 26ch; margin-bottom: 28px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.clis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cli { display: grid; place-items: center; height: 104px; padding: 18px; background: #fff; border-bottom: 3px solid var(--petrol); }
.cli img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; transition: filter .6s, opacity .6s; }
.js .cli:not(.is-on) img { filter: grayscale(1); opacity: .55; }
@media (min-width: 760px) { .clis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cli { height: 120px; } }

/* Visor: vista de ingeniería. Foto en monocromo con la paleta, cuadrícula del 10 %, puntos numerados, mira con coordenadas y ficha técnica. */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 41, 41, .98); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox::backdrop { background: rgba(3, 41, 41, .9); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gut); border-bottom: 1px solid var(--line-d); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; }
.lightbox__tools { display: flex; align-items: center; gap: 10px; }
.ev-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: transparent; border: 1.5px solid var(--line-d); color: #fff; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, color .2s; }
.ev-toggle:hover { border-color: var(--bright); }
.ev-toggle__sw { position: relative; flex: none; width: 32px; height: 18px; border: 1.5px solid currentColor; border-radius: 10px; }
.ev-toggle__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; transition: transform .25s var(--ease); }
.ev-toggle[aria-pressed="true"] { border-color: var(--bright); color: var(--bright); }
.ev-toggle[aria-pressed="true"] .ev-toggle__sw::after { transform: translateX(14px); }
.ev-toggle__sm { display: none; }
.lightbox__main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 20px 68px; }
.lightbox__stage > .icon-btn { position: absolute; top: 50%; z-index: 6; margin-top: -24px; background: rgba(4, 55, 55, .85); }
.lightbox__stage > [data-lb-prev] { left: 10px; }
.lightbox__stage > [data-lb-next] { right: 10px; }
.lightbox__fig { position: relative; isolation: isolate; margin: 0; background: var(--deep-2); line-height: 0; }
.lightbox__img, .lightbox__img picture { display: block; width: 100%; height: 100%; }
.lightbox__img img { display: block; width: 100%; height: 100%; transition: filter .5s var(--ease); }
.is-ev .lightbox__img img { filter: grayscale(1) contrast(1.2) brightness(1.3); }
.lightbox__fig:not(.is-ev) { cursor: pointer; }
.ev-hint { position: absolute; left: 12px; bottom: 12px; z-index: 3; max-width: calc(100% - 24px); padding: 7px 11px; background: rgba(4, 55, 55, .88); border: 1px solid var(--bright); color: #fff; font: 500 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; transition: opacity .3s; }
.is-ev .ev-hint { opacity: 0; visibility: hidden; }
/* .ev no lleva z-index: si creara un contexto de apilamiento, el velo (multiply) no se mezclaría con la foto */
.ev { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.is-ev .ev { visibility: visible; }
.ev__tint { position: absolute; inset: 0; background: var(--petrol); mix-blend-mode: multiply; }
.ev__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(94, 224, 224, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 224, 224, .2) 1px, transparent 1px); background-size: 10% 10%; }
.ev__c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--bright); }
.ev__c--tl { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.ev__c--tr { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.ev__c--bl { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; }
.ev__c--br { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.ev__cx, .ev__cy { position: absolute; left: 0; top: 0; opacity: 0; background: rgba(94, 224, 224, .85); transition: opacity .2s; }
.ev__cx { bottom: 0; width: 1px; }
.ev__cy { right: 0; height: 1px; }
.is-aim .ev__cx, .is-aim .ev__cy { opacity: 1; }
.ev__scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; background: var(--bright); box-shadow: 0 0 18px 4px rgba(94, 224, 224, .6); }
.ev__pts { position: absolute; inset: 0; z-index: 3; }
.ev__read { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: rgba(4, 55, 55, .85); border: 1px solid var(--line-d); font: 500 .68rem/1 var(--mono); letter-spacing: .08em; color: var(--bright); opacity: 0; transition: opacity .2s; }
.is-aim .ev__read { opacity: 1; }
.hot { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; background: rgba(4, 55, 55, .85); border: 2px solid var(--bright); border-radius: 50%; color: #fff; cursor: pointer; pointer-events: auto; transition: background-color .2s, color .2s, scale .25s var(--ease); }
.hot b { font: 600 .72rem/1 var(--mono); }
.hot::after { content: ""; position: absolute; inset: -7px; border: 1.5px solid var(--bright); border-radius: 50%; opacity: 0; animation: ping-hot 2.8s ease-out infinite; }
@keyframes ping-hot { 0% { transform: scale(.55); opacity: .8; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.hot:hover, .hot:focus-visible, .hot.is-on { z-index: 3; scale: 1.18; background: var(--bright); color: var(--deep-2); }
.hot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hot__tip { position: absolute; left: calc(100% + 12px); top: 50%; z-index: 4; width: max-content; max-width: 220px; padding: 7px 10px; transform: translateY(-50%); background: var(--deep-2); border: 1px solid var(--bright); color: #fff; font: 500 .8rem/1.25 var(--sans); text-align: left; pointer-events: none; opacity: 0; transition: opacity .2s; }
.hot--l .hot__tip { left: auto; right: calc(100% + 12px); }
.hot:hover .hot__tip, .hot:focus-visible .hot__tip, .hot.is-on .hot__tip { opacity: 1; }
.lightbox__info { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 22px 22px 28px; overflow-y: auto; background: rgba(4, 55, 55, .6); border-left: 1px solid var(--line-d); }
.fx__code { font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.fx__title { font-size: 1.4rem; line-height: 1.15; }
.fx__desc { font-size: .95rem; color: var(--muted-d); }
.fx__meta { border: 1.5px solid rgba(212, 237, 237, .5); font-family: var(--mono); font-size: .78rem; }
.fx__meta > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); border-top: 1px solid var(--line-d); }
.fx__meta > div:first-child { border-top: 0; }
.fx__meta dt { padding: 8px 10px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); border-right: 1px solid var(--line-d); }
.fx__meta dd { padding: 8px 10px; margin: 0; }
.fx__lbl { margin-top: 6px; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.fx__list { display: grid; gap: 6px; list-style: none; }
.fx__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); color: #fff; font: 500 .9rem/1.25 var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s; }
.fx__item b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--bright); border-radius: 50%; font: 600 .68rem/1 var(--mono); color: var(--bright); transition: background-color .2s, color .2s; }
.fx__item:hover, .fx__item:focus-visible, .fx__item.is-on { border-color: var(--bright); background: rgba(94, 224, 224, .12); }
.fx__item:hover b, .fx__item:focus-visible b, .fx__item.is-on b { background: var(--bright); color: var(--deep-2); }
@media (max-width: 899px) {
  .lightbox__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; align-content: start; overflow-y: auto; }
  .lightbox__stage { height: min(56svh, 520px); padding: 12px 0; }
  .lightbox__stage > .icon-btn { width: 40px; height: 40px; margin-top: -20px; }
  .lightbox__stage > [data-lb-prev] { left: 6px; }
  .lightbox__stage > [data-lb-next] { right: 6px; }
  .lightbox__info { overflow: visible; border-left: 0; border-top: 1px solid var(--line-d); }
}
@media (max-width: 480px) { .ev-toggle { padding: 0 10px; } .ev-toggle__lg { display: none; } .ev-toggle__sm { display: inline; } }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; background: transparent; border: 1.5px solid var(--line-d); color: #fff; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--bright); background: rgba(94, 224, 224, .14); }

/* ------------------------------------------------------------------
   N06 Por qué CRS + marcos de referencia
   ------------------------------------------------------------------ */
.difs { display: grid; border-top: 1.5px solid var(--navy); }
.dif { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.dif__n { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--red-ink); padding-top: 4px; }
.dif h3 { margin-bottom: 8px; font-size: 1.35rem; }
.dif p { color: var(--muted); }
@media (min-width: 800px) { .difs { grid-template-columns: repeat(2, 1fr); column-gap: 56px; } }
.normas { display: grid; gap: 28px; margin-top: clamp(48px, 6vw, 88px); padding: clamp(24px, 4vw, 48px); background-color: var(--paper); border: 1.5px solid var(--navy);
  background-image: linear-gradient(rgba(18, 43, 58, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 43, 58, .05) 1px, transparent 1px); background-size: 32px 32px; }
.normas__q { margin-top: 16px; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.3; }
.normas__note { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.normas__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.norma { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--petrol); }
.norma b { display: block; font-family: var(--mono); font-size: .86rem; }
.norma span { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 1000px) { .normas { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }

/* ------------------------------------------------------------------
   N07 Contacto
   ------------------------------------------------------------------ */
.contact { display: grid; gap: clamp(32px, 5vw, 64px); }
.form { display: grid; gap: 20px; padding: clamp(20px, 3vw, 36px); background: rgba(5, 69, 69, .9); border: 1px solid var(--line-d); }
.form__row { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label, .field legend { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--trace); }
.field legend { margin-bottom: 9px; }
.opt { text-transform: none; letter-spacing: 0; color: var(--muted-d); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: #fff;
  background: rgba(3, 41, 41, .55); border: 1.5px solid rgba(212, 237, 237, .38); border-radius: 2px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: var(--navy); background: #fff; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px rgba(94, 224, 224, .3); }
.field__hint { font-size: .86rem; color: var(--muted-d); }
.field__error { font-size: .86rem; font-weight: 600; color: #FFA0A2; }
.field__error:empty { display: none; }
.has-error :is(input, select, textarea) { border-color: var(--red-lt); }
.form__foot { display: grid; gap: 18px; padding-top: 4px; }
.form__legal { font-size: .86rem; color: var(--muted-d); }
.form__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.form__btns .btn { flex: 1 1 220px; }
.datos { display: grid; gap: 8px; }
.dato { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 16px; text-decoration: none; border: 1px solid var(--line-d); background: rgba(5, 69, 69, .6); transition: border-color .2s, background-color .2s; }
a.dato:hover { border-color: var(--bright); background: rgba(94, 224, 224, .12); }
.dato .icon { width: 22px; height: 22px; color: var(--bright); }
.dato small { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }
.dato strong { font-weight: 600; overflow-wrap: anywhere; }
.zona { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.zona figcaption { font-size: .92rem; color: var(--muted-d); }
.zona figcaption b { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.cobertura { width: 100%; height: auto; overflow: visible; }
.cb-axis { stroke: rgba(212, 237, 237, .25); stroke-width: 1; stroke-dasharray: 2 5; }
.cb-ring { fill: none; stroke: rgba(212, 237, 237, .55); stroke-width: 1.4; }
.cb-ring--ext { stroke-dasharray: 5 6; stroke: rgba(212, 237, 237, .35); }
.cb-ring--amba { fill: rgba(94, 224, 224, .12); stroke: var(--bright); }
.cb-core { fill: var(--petrol); }
.cb-ping { fill: none; stroke: var(--bright); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; }
.is-off .cb-ping { animation-play-state: paused; }
@keyframes ping { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(3.6); opacity: 0; } }
.cb-txt { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; fill: #fff; }
.cb-txt--core { font-size: 12px; }
.cb-txt--dim { fill: var(--muted-d); }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.faq-wrap { margin-top: clamp(56px, 7vw, 96px); }
.faq { margin-top: 18px; border-top: 1.5px solid rgba(212, 237, 237, .5); }
.faq details { border-bottom: 1px solid var(--line-d); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; font-size: 1.1rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--bright); }
.pm { position: relative; flex: none; width: 18px; height: 18px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0); }
.faq__a { padding: 0 0 22px; max-width: 70ch; color: var(--muted-d); }

/* ------------------------------------------------------------------
   Footer + WhatsApp
   ------------------------------------------------------------------ */
.site-footer { padding: clamp(48px, 6vw, 80px) 0 28px; background: var(--deep-2); color: #fff; border-top: 3px solid var(--red); border-bottom: 12px solid var(--petrol); }
.footer-grid { display: grid; gap: 36px; }
.footer-logo { height: 62px; width: auto; }
.footer-brand p { margin-top: 18px; font-weight: 600; max-width: 28ch; }
.footer-brand .footer-brand__meta { margin-top: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); max-width: 36ch; }
.footer-col h2 { margin-bottom: 14px; font-family: var(--mono); font-size: .72rem; font-weight: 500; font-stretch: 100%; letter-spacing: .12em; text-transform: uppercase; color: var(--bright); }
.footer-col ul { display: grid; gap: 4px; }
.footer-col li { color: var(--muted-d); font-size: .95rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; color: #E2F3F3; text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--bright); text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; padding-right: 72px; border-top: 1px solid var(--line-d); font-size: .86rem; color: var(--muted-d); }
.footer-bottom a { color: #E2F3F3; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.4fr 1.3fr; } }


/* ------------------------------------------------------------------
   Páginas simples (gracias, 404) y legales
   ------------------------------------------------------------------ */
.page-simple { padding-left: 0; }
.simple { position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--header) + 48px) 0 72px; overflow: hidden; }
.simple__inner { position: relative; }
.simple h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; }
.simple .lead { margin-top: 22px; }
.simple__code { position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: clamp(7rem, 26vw, 20rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(212, 237, 237, .16); pointer-events: none; user-select: none; }
.legal-page { padding-top: calc(var(--header) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(64px, 8vw, 112px); }
.legal-page h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.legal-page__head .lead { margin-top: 16px; font-family: var(--mono); font-size: .86rem; }
.legal { max-width: 860px; margin-top: 36px; }
.legal h2 { margin: 36px 0 10px; font-size: 1.3rem; }
.legal p { color: #33495A; }
.legal p + p { margin-top: 28px; }
.legal a:not(.btn) { color: var(--brand-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
}
@media print {
  .site-header, .lift, .ticker, .mobile-nav { display: none; }
  body { padding-left: 0; }
}
