/* FARO OHS — sistema visual
   Paleta: verde profundo + ámbar cobrizo + vino tinto + blanco perlado.
   Concepto: "ver antes". El verde es la base, el cobre es la luz (lo que FARO hace visible)
   y el vino tinto aporta profundidad, urgencia y calidez en los degradados. */

:root {
  /* Base */
  --ink: #052B1F;          /* verde profundo: fondos oscuros y texto sobre claro (13.6:1 sobre perla) */
  --deep: #07402E;         /* verde oscuro: superficies */
  --green: #0B6E4F;        /* verde FARO */
  /* Luz */
  --beacon: #C8862E;       /* ámbar cobrizo (5.0:1 sobre verde profundo) */
  --beacon-soft: #E2A867;  /* cobre claro: texto cobrizo sobre fondos oscuros */
  --copper-dark: #8A5A1C;  /* cobre legible sobre perla (5.2:1) */
  /* Profundidad */
  --wine: #6B1F2E;         /* vino tinto (10:1 sobre perla) */
  --wine-deep: #3F111B;    /* vino oscuro: degradados y cielo nocturno */
  --wine-bright: #8C2C3E;  /* vino vivo: alertas en datos */
  --beacon-ink: var(--wine); /* acento legible sobre claro */
  --signal: var(--wine-bright);
  /* Neutros */
  --steel: #8FB3A3;        /* gris verdoso sobre oscuro (6.7:1 verde, 7:1 vino) */
  --steel-ink: #51625C;    /* gris sobre perla (5.7:1) */
  --paper: #F4F1EA;        /* blanco perlado */
  --fog: #EAE5DA;          /* perla sombreado */
  --white: #FFFFFF;
  /* Degradados de marca */
  --grad-brand: linear-gradient(125deg, #052B1F 0%, #07402E 48%, #3F111B 100%);
  --grad-copper: linear-gradient(135deg, #DDA552 0%, #C8862E 100%);
  --grad-line: linear-gradient(90deg, #C8862E 0%, #8C2C3E 60%, rgba(140, 44, 62, 0) 100%);
  --grad-pearl: linear-gradient(180deg, #F4F1EA 0%, #EFEBE2 100%);

  --rule-dark: rgba(143, 179, 163, .28);
  --rule-light: rgba(5, 43, 31, .14);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(2.6rem, 0.9rem + 6.4vw, 7.25rem);
  --fs-display: clamp(2.25rem, 1.1rem + 4.4vw, 5.5rem);
  --fs-xl: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.3rem, 1.05rem + .8vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, .98rem + .4vw, 1.3125rem);
  --fs-body: 1rem;
  --fs-small: .875rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --sec-pad: clamp(5rem, 2.5rem + 8vw, 10rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--beacon); color: var(--ink); }

:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; border-radius: var(--radius); }
.sec-light :focus-visible, .sec-fog :focus-visible { outline-color: var(--beacon-ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--beacon); color: var(--ink); padding: .75rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .85em; letter-spacing: 0; font-stretch: normal; }

mark.todo {
  background: transparent;
  color: var(--beacon);
  border: 1px dashed currentColor;
  font-family: var(--mono);
  font-size: .7rem;
  padding: 0 .35em;
  margin-left: .25em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- Tipografía ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 600;
  font-stretch: 116%;
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 60ch; color: var(--steel); }
.sec-light .lead, .sec-fog .lead { color: var(--steel-ink); }
.kicker { color: var(--beacon); font-weight: 600; font-size: var(--fs-small); margin-bottom: 1.25rem; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  font-weight: 600;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.link:hover { text-decoration-color: currentColor; color: var(--beacon); }
.sec-light .link:hover, .sec-fog .link:hover { color: var(--beacon-ink); }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-stretch: 106%;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-copper); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(200, 134, 46, .55); }
.btn-primary:hover { box-shadow: 0 14px 36px -12px rgba(200, 134, 46, .7); }
.btn-primary::after {
  /* el haz cruza el botón */
  content: "";
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg) translateX(0);
  z-index: -1;
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: skewX(-18deg) translateX(420%); }
.btn-ghost { color: var(--paper); border-color: rgba(246, 249, 247, .4); background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(5, 43, 31, .94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule-dark);
}
.header-inner { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--paper); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .beam { fill: var(--beacon); opacity: .9; }
.brand-mark .tower { fill: var(--paper); }
.brand-mark .lamp { fill: var(--beacon); }
.brand-mark .base { stroke: var(--paper); stroke-width: 2; }
.brand-word { font-weight: 700; font-stretch: 122%; letter-spacing: .02em; font-size: 1.15rem; }
.brand-word span { font-weight: 400; color: var(--steel); margin-left: .35em; font-stretch: 100%; letter-spacing: .08em; font-size: .8em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-size: .9375rem; color: rgba(246, 249, 247, .78); position: relative; padding: .5rem 0; transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--paper); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--beacon); transform: translateX(-50%); }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.menu-lines, .menu-lines::before { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--paper); transition: transform .3s var(--ease); }
.menu-lines { top: 18px; }
.menu-lines::before { content: ""; left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-lines { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(-7px) rotate(-90deg); }

.mobile-menu { border-top: 1px solid var(--rule-dark); height: calc(100svh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul { width: min(100% - 2 * var(--gutter), 1320px); margin: 0 auto; padding: 1.5rem 0 6rem; }
.mobile-menu a { display: block; text-decoration: none; font-size: 2rem; font-weight: 600; font-stretch: 114%; letter-spacing: -.02em; padding: .7rem 0; border-bottom: 1px solid var(--rule-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(42% 46% at 84% 44%, rgba(200, 134, 46, .16), transparent 70%),
    radial-gradient(80% 70% at 70% 100%, rgba(11, 110, 79, .9), transparent 70%),
    var(--ink);
}
.hero::before {
  /* horizonte técnico, visible mientras no hay video */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 134, 46, .45) 70%, rgba(200, 134, 46, .8) 84%, transparent);
}
.hero-media { position: absolute; inset: 0; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster, .hero-video { object-position: 70% center; }
@media (max-width: 700px) { .hero-poster { object-position: 74% center; } .hero-video { object-position: center; } }
.hero-video { opacity: 0; transition: opacity .9s var(--ease); }
.hero-video.is-playing { opacity: 1; }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 43, 31, .95) 0%, rgba(5, 43, 31, .86) 38%, rgba(5, 43, 31, .38) 64%, rgba(63, 17, 27, .2) 100%),
    linear-gradient(0deg, rgba(5, 43, 31, .96) 0%, rgba(5, 43, 31, 0) 36%),
    linear-gradient(180deg, rgba(5, 43, 31, .55) 0%, rgba(5, 43, 31, 0) 22%);
}
.hero-content { position: relative; align-self: end; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.hero-kicker { color: var(--beacon); font-weight: 600; margin-bottom: 1.5rem; font-size: var(--fs-small); }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 650;
  font-stretch: 118%;
  line-height: .94;
  letter-spacing: -.035em;
  max-width: 14ch;
}
.hero-title .line { display: block; }
.hero-title .line + .line { color: rgba(246, 249, 247, .62); }
.hero-lede { margin-top: 1.75rem; font-size: var(--fs-lead); max-width: 46ch; color: rgba(246, 249, 247, .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* encendido: una sola vez, la luz recorre el titular */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line {
    background: linear-gradient(100deg, currentColor 0 40%, var(--beacon) 48%, rgba(246, 249, 247, .08) 56% 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ignite 1.6s var(--ease) .15s forwards;
  }
  .js .hero-title .line + .line { animation-delay: .45s; }
}
@keyframes ignite { to { background-position: 0 0; } }

.hero-index {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.75rem;
  padding-top: 1rem;
}
.hero-index::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad-line); opacity: .8; }
.scene-list { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; counter-reset: s; }
.scene-list li { position: relative; font-size: var(--fs-small); color: var(--steel); padding-top: .6rem; transition: color .4s var(--ease); }
.scene-list li::before { content: ""; position: absolute; left: 0; top: -1rem; height: 2px; width: 0; background: var(--beacon); }
.scene-list li.is-active { color: var(--paper); }
.scene-list li.is-active::before { animation: scene var(--scene-dur, 2s) linear forwards; }
@keyframes scene { from { width: 0; } to { width: 100%; } }
.hero-place { font-size: var(--fs-small); color: var(--steel); white-space: nowrap; }
.hero-place .mono { color: var(--paper); margin-right: .5rem; }

/* ---------- Secciones ---------- */
.sec { padding-block: var(--sec-pad); position: relative; }
.sec-light { background: var(--grad-pearl); color: var(--ink); }
.sec-fog { background: var(--fog); color: var(--ink); }
.sec-deep { background: var(--grad-brand); }
.sec-ink { background: var(--ink); }
.sec-head { max-width: 62rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.sec-head .lead { margin-top: 1.5rem; }

/* ---------- Medios (con placa técnica mientras falta el asset) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(55% 65% at var(--gx, 72%) var(--gy, 35%), rgba(200, 134, 46, .24), transparent 62%),
    radial-gradient(90% 90% at 15% 100%, rgba(11, 110, 79, .75), transparent 62%),
    #042419;
}
.media::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(143, 179, 163, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 179, 163, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.media::after {
  content: attr(data-asset);
  position: absolute; left: 1rem; bottom: .85rem;
  font: 400 .6875rem/1 var(--mono);
  color: rgba(246, 249, 247, .45);
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media picture { position: absolute; inset: 0; z-index: 1; }
.js .media img { opacity: 0; transition: opacity .8s var(--ease); }
.js .media img.is-loaded { opacity: 1; }

/* ---------- Sectores ---------- */
.sector-explorer { position: relative; }
.sector h3 { margin: 0; }
.sector-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule-light);
  padding: 1.15rem 0;
  cursor: pointer;
  font-size: var(--fs-xl);
  font-weight: 600;
  font-stretch: 114%;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: rgba(5, 43, 31, .38);
  transition: color .3s var(--ease);
}
.sector-btn::before { content: ""; width: 0; height: 2px; margin-right: 0; background: var(--beacon-ink); transition: width .4s var(--ease), margin-right .4s var(--ease); flex: none; }
.sector:last-child .sector-btn { border-bottom: 1px solid var(--rule-light); }
.sector-btn:hover, .sector.is-active .sector-btn { color: var(--ink); }
.sector.is-active .sector-btn::before { width: 2rem; margin-right: 1rem; }
.sector-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.sector-panel .media { aspect-ratio: 16 / 10; }
.sector-info { display: grid; gap: .75rem; max-width: 56ch; color: var(--steel-ink); }
.sector-risks { color: var(--ink); font-size: 1.0625rem; }
.sector-risks strong { display: block; font-size: var(--fs-small); color: var(--beacon-ink); margin-bottom: .25rem; }

@media (min-width: 900px) {
  .sector-explorer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 5vw, 5rem); min-height: 40rem; align-content: start; }
  .sector { grid-column: 1; }
  .sector-panel {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: calc((100% - clamp(2rem, 5vw, 5rem)) * 7 / 12);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s linear .5s;
  }
  .sector-panel .media { aspect-ratio: auto; flex: 1; min-height: 0; transform: scale(1.02); transition: transform 1.2s var(--ease); }
  .sector.is-active .sector-panel { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
  .sector.is-active .sector-panel .media { transform: none; }
}
@media (max-width: 899px) {
  .js .sector-panel { display: none; }
  .js .sector.is-active .sector-panel { display: flex; padding-bottom: 1.75rem; }
  .sector-btn::after { content: "+"; margin-left: auto; font-weight: 300; color: var(--steel-ink); font-stretch: 100%; }
  .sector.is-active .sector-btn::after { content: "–"; }
}

/* ---------- Servicios ---------- */
.service { position: relative; border-top: 1px solid var(--rule-light); padding: 2.5rem 0 3rem; display: grid; gap: 1rem; }
.service:last-child { border-bottom: 1px solid var(--rule-light); }
.service-num { color: var(--beacon-ink); font-size: .875rem; }
.service h3 { font-size: var(--fs-xl); font-weight: 600; font-stretch: 114%; letter-spacing: -.025em; line-height: 1.05; }
.service p { max-width: 58ch; color: var(--steel-ink); }
.service .service-gain { color: var(--ink); }
.service-gain strong { font-weight: 600; }
.service .link { justify-self: start; margin-top: .25rem; }
.service-facts div { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; font-size: var(--fs-small); color: var(--steel-ink); }
.service-facts dt { font-weight: 600; color: var(--ink); }
.service-facts .mono { display: inline-block; border: 1px solid var(--rule-light); padding: .1rem .45rem; color: var(--ink); margin-right: .15rem; }
.service-inline { aspect-ratio: 4 / 3; margin: .5rem 0; }
.services-stage { display: none; }

@media (min-width: 1024px) {
  .services-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .services-stage { display: block; }
  .stage-frame { position: sticky; top: calc(var(--header-h) + 2rem); height: min(calc(100vh - var(--header-h) - 4rem), 46rem); }
  .stage-media { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
  .stage-media.is-active { opacity: 1; transform: none; }
  .stage-counter { position: absolute; right: 1rem; top: 1rem; z-index: 2; color: var(--paper); font-size: .875rem; }
  .stage-counter [data-stage-num] { color: var(--beacon); }
  .service-inline { display: none; }
  .service { min-height: 62vh; align-content: center; padding: 4rem 0; }
  .service h3 { transition: color .4s var(--ease); }
  .js .service:not(.is-active) h3 { color: rgba(5, 43, 31, .4); }
}

/* ---------- Metodología ---------- */
.method-steps { display: grid; gap: 0; position: relative; counter-reset: step; }
.step { position: relative; padding: 0 0 2.5rem 2.25rem; }
.step::before { content: ""; position: absolute; left: 0; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--deep); border: 1.5px solid var(--beacon); z-index: 1; }
.step::after { content: ""; position: absolute; left: 4px; top: .9rem; bottom: -.4rem; width: 1px; background: var(--rule-dark); }
.step:last-child::after { display: none; }
.step-num { color: var(--beacon-soft); }
.step h3 { font-size: clamp(1.5rem, .55rem + 1.55vw, 2.4rem); font-weight: 600; font-stretch: 108%; letter-spacing: -.02em; margin: .5rem 0 1rem; line-height: 1.02; overflow-wrap: anywhere; }
.step p { color: var(--steel); max-width: 40ch; }
.step .step-out { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule-dark); color: var(--paper); font-size: var(--fs-small); }
.step-out span { display: block; color: var(--steel); margin-bottom: .2rem; }

@media (min-width: 900px) {
  .method-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); padding-top: 2.5rem; }
  .method-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--rule-dark); }
  .method-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--beacon); transform-origin: left; transform: scaleX(var(--rail, 1)); }
  .js .method-steps::after { --rail: 0; transition: transform 1.6s var(--ease); }
  .js .method-steps.is-in::after { --rail: 1; }
  .step { padding: 0; }
  .step::before { top: -2.5rem; }
  .step::after { display: none; }
  .js .step::before { background: var(--deep); transition: background-color .3s var(--ease) calc(var(--i, 0) * .35s + .2s); }
  .js .method-steps.is-in .step::before { background: var(--beacon); }
}

/* ---------- Datos ---------- */
.dash { border: 1px solid var(--rule-light); background: var(--white); border-radius: 4px; }
.dash-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule-light); align-items: center; }
.dash-title { font-weight: 600; }
.demo-tag { font-size: .8125rem; color: var(--beacon-ink); border: 1px dashed currentColor; padding: .2rem .6rem; }
.dash-grid { display: grid; gap: 1px; background: var(--rule-light); grid-template-columns: 1fr; }
.panel { background: var(--white); padding: 1.25rem 1.25rem 1.5rem; min-width: 0; }
.panel figcaption { font-size: var(--fs-small); color: var(--steel-ink); margin-bottom: 1rem; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--steel-ink); }
.gauge-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .75rem; color: var(--steel-ink); margin-top: .5rem; }
.gauge-legend i { display: inline-block; width: 8px; height: 8px; margin-right: .35rem; vertical-align: 0; }
.c-crit { background: var(--signal); }
.c-mod { background: var(--beacon-soft); }
.c-ok { background: var(--green); }
@media (min-width: 700px) { .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-wide { grid-column: span 2; } }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .panel-wide { grid-column: span 2; } }

.js [data-chart] .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .is-drawn [data-chart] .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.js [data-chart] .grow { transform: scaleX(0); transform-box: fill-box; transform-origin: left; }
.js [data-chart] .grow-y { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
.js .is-drawn [data-chart] .grow, .js .is-drawn [data-chart] .grow-y { transform: none; transition: transform 1.1s var(--ease) calc(var(--i, 0) * 90ms); }

.indicators { margin-top: clamp(3rem, 6vw, 5rem); }
.indicators h3 { font-size: var(--fs-h3); font-weight: 600; font-stretch: 110%; margin-bottom: 1.25rem; }
.indicators ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); border-top: 1px solid var(--rule-light); }
.indicators li { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule-light); color: var(--steel-ink); }

/* ---------- Marítimo ---------- */
.maritime { background: var(--ink); overflow: hidden; min-height: 100svh; }
.maritime-bg { position: absolute; inset: 0; border-radius: 0; background:
    radial-gradient(35% 45% at 78% 34%, rgba(200, 134, 46, .2), transparent 70%),
    radial-gradient(90% 70% at 70% 100%, rgba(11, 110, 79, .85), transparent 70%),
    var(--ink); }
.maritime-bg::after { left: auto; right: var(--gutter); bottom: 1.25rem; }
.maritime-bg img, .maritime-bg video.loop { object-position: 72% center; }
/* imágenes horizontales dentro de marcos verticales: encuadre en el sujeto */
.media img.focus-right { object-position: 74% center; }
.maritime::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 43, 31, .95) 0%, rgba(5, 43, 31, .82) 42%, rgba(5, 43, 31, .3) 72%, rgba(63, 17, 27, .2) 100%),
    linear-gradient(0deg, rgba(5, 43, 31, .94) 0%, rgba(5, 43, 31, .55) 48%, rgba(5, 43, 31, 0) 78%);
  pointer-events: none;
}
.maritime-inner { position: relative; z-index: 3; }
.maritime .lead { color: rgba(246, 249, 247, .78); }
.capabilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); border-top: 1px solid var(--rule-dark); }
.capabilities li { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--rule-dark); }
.capabilities h3 { font-size: 1.1875rem; font-weight: 600; font-stretch: 110%; margin-bottom: .4rem; }
.capabilities p { color: var(--steel); font-size: .9375rem; }
.frameworks { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin-top: 3rem; font-size: var(--fs-small); color: var(--steel); }
.frameworks .mono { color: var(--beacon); margin-right: .45rem; }

/* ---------- Matriz de riesgos ---------- */
.matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.matrix caption { caption-side: bottom; text-align: left; color: var(--steel-ink); padding-top: 1.25rem; font-size: .8125rem; }
.matrix th, .matrix td { padding: 1rem .5rem; border-bottom: 1px solid var(--rule-light); text-align: center; }
.matrix thead th { font-weight: 500; color: var(--steel-ink); vertical-align: bottom; font-size: .8125rem; }
.matrix th[scope="row"], .matrix thead th:first-child { text-align: left; }
.matrix th[scope="row"] { font-size: 1.125rem; font-weight: 600; font-stretch: 110%; color: var(--ink); white-space: nowrap; padding-right: 1.5rem; }
.matrix td { position: relative; transition: background-color .2s var(--ease); }
.matrix td::before { content: ""; display: inline-block; width: 6px; height: 1px; background: rgba(5, 43, 31, .25); vertical-align: middle; }
.matrix td[data-on] { font-size: 0; color: transparent; }
.matrix td[data-on]::before { width: 12px; height: 12px; border-radius: 50%; background: var(--steel-ink); transition: transform .25s var(--ease), background-color .25s var(--ease); }
.matrix .row-accent td[data-on]::before { background: var(--beacon-ink); }
.matrix tbody tr:hover, .matrix td.col-hover, .matrix th.col-hover { background: rgba(5, 43, 31, .045); }
.matrix tbody tr:hover td[data-on]::before, .matrix td.col-hover[data-on]::before { transform: scale(1.3); }

@media (max-width: 899px) {
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix caption { display: block; width: 100%; padding: 0 0 1rem; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; }
  .matrix tr { display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule-light); }
  .matrix th[scope="row"] { width: 100%; padding: 0 0 .4rem; border: 0; text-align: left; }
  .matrix td { border: 0; padding: 0; }
  .matrix td:not([data-on]) { display: none; }
  .matrix td[data-on] { font-size: .8125rem; color: var(--ink); border: 1px solid var(--rule-light); padding: .2rem .55rem; border-radius: var(--radius); }
  .matrix td[data-on]::before { display: none; }
  .matrix .row-accent td[data-on] { border-color: var(--beacon-ink); color: var(--beacon-ink); }
}

/* ---------- Por qué FARO ---------- */
.why-grid { display: grid; gap: 3rem; }
.reasons { border-top: 1px solid var(--rule-light); }
.reasons li { display: grid; gap: .4rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule-light); }
.reasons h3 { font-size: var(--fs-h3); font-weight: 600; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.15; }
.reasons p { color: var(--steel-ink); max-width: 52ch; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .why-grid .sec-head { position: sticky; top: calc(var(--header-h) + 3rem); margin-bottom: 0; }
  .reasons li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; padding: 1.75rem 0; }
}

.norms { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-light); }
.norms summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: 1.25rem 0; font-weight: 600; font-size: var(--fs-h3); font-stretch: 112%; list-style: none; }
.norms summary::-webkit-details-marker { display: none; }
.norms summary::after { content: "+"; font-weight: 300; font-size: 1.75rem; line-height: 1; color: var(--steel-ink); margin-left: 1rem; }
.norms[open] summary::after { content: "–"; }
.norms-count { margin-left: auto; color: var(--steel-ink); font-weight: 400; font-size: .875rem; }
.norms ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 2rem; }
.norms li { padding: .85rem 0; border-top: 1px solid var(--rule-light); color: var(--steel-ink); font-size: .9375rem; }
.norms li .mono { display: block; color: var(--ink); margin-bottom: .1rem; }
.norms-note { padding: 1.5rem 0; color: var(--steel-ink); font-size: var(--fs-small); max-width: 70ch; }

/* ---------- El concepto del faro ---------- */
.beacon {
  position: relative;
  background: linear-gradient(180deg, #1A080E 0%, #2E0E17 30%, #0B2A20 62%, var(--ink) 66%);
  /* la lámpara del faro es el origen del haz */
  --lamp-x: 72%;
  --lamp-y: 52%;
  --lh-h: min(46vh, 30rem);          /* alto del faro */
}
.js .beacon { height: 260vh; }
.beacon-sticky { background: inherit; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.beacon-sky { position: absolute; inset: 0; }
.beam-clip { position: absolute; inset: 0 0 34% 0; overflow: hidden; }
.beam {
  --a: -20deg;
  position: absolute;
  left: var(--lamp-x); top: var(--lamp-y);
  width: 260vmax; height: 260vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from calc(var(--a) - 11deg),
    rgba(200, 134, 46, 0) 0deg,
    rgba(200, 134, 46, .16) 5deg,
    rgba(255, 226, 160, .5) 11deg,
    rgba(200, 134, 46, .16) 17deg,
    rgba(200, 134, 46, 0) 22deg,
    rgba(200, 134, 46, 0) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .7) 8%, transparent 32%);
  mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .7) 8%, transparent 32%);
  clip-path: inset(0 0 50% 0);
}
.horizon { position: absolute; left: 0; right: 0; top: 66%; height: 1px; background: linear-gradient(90deg, transparent, rgba(143, 179, 163, .5) 30%, rgba(200, 134, 46, .7) 72%, rgba(143, 179, 163, .5) 88%, transparent); }
.horizon::after { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 34vh; background: linear-gradient(180deg, rgba(7, 64, 46, .9), var(--ink)); }
.lighthouse {
  /* imagen 2:3; lámpara en x 50 %, y 17,2 % de la imagen */
  position: absolute;
  height: var(--lh-h);
  width: auto;
  max-width: none;
  left: calc(var(--lamp-x) - var(--lh-h) / 3);
  top: calc(var(--lamp-y) - var(--lh-h) * .172);
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(5, 43, 31, .9));
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 88%, transparent 99%);
}
.lamp-point { position: absolute; left: var(--lamp-x); top: var(--lamp-y); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #F3CF9C; box-shadow: 0 0 12px 4px rgba(200, 134, 46, .8), 0 0 60px 18px rgba(200, 134, 46, .25); z-index: 2; }
.beacon-content { position: relative; z-index: 3; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--header-h) + 6vh); padding-bottom: 5vh; }
.beacon-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .35em; font-size: clamp(2.4rem, .5rem + 7.4vw, 8rem); font-weight: 650; font-stretch: 120%; letter-spacing: -.04em; line-height: .95; }
.beacon-words [data-word] { color: var(--paper); transition: color .5s var(--ease), text-shadow .5s var(--ease); }
.js .beacon-words [data-word] { color: rgba(246, 249, 247, .1); }
.js .beacon-words [data-word].is-seen { color: var(--paper); }
.js .beacon-words [data-word].is-lit { color: #F3CF9C; text-shadow: 0 0 40px rgba(200, 134, 46, .45); }
.beacon-words .plus { color: var(--beacon-soft); font-weight: 300; font-stretch: 100%; }
.beacon-promise { align-self: end; max-width: 34ch; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); line-height: 1.35; font-stretch: 106%; color: rgba(246, 249, 247, .88); grid-row: 3; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .beacon-promise { opacity: 0; transform: translateY(12px); }
.js .beacon-promise.is-on { opacity: 1; transform: none; }
.beacon-coords { position: absolute; right: 0; bottom: 5vh; color: var(--steel); font-size: .8125rem; }
@media (max-width: 899px) {
  .js .beacon { height: 200vh; }
  .beacon-words { flex-direction: column; align-items: flex-start; }
  .beacon-words .plus { font-size: .5em; }
  .beacon-coords { top: calc(var(--header-h) + 1rem); bottom: auto; }
  .beacon { --lamp-x: 76%; --lamp-y: 48%; --lh-h: 28vh; }
  .beacon-promise { position: relative; z-index: 2; font-size: 1.125rem; }
}

/* ---------- Cierre y formulario ---------- */
.closing { background:
  radial-gradient(45% 55% at 0% 0%, rgba(200, 134, 46, .16), transparent 62%),
  radial-gradient(60% 70% at 100% 100%, rgba(140, 44, 62, .45), transparent 65%),
  var(--grad-brand); }
.closing-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.closing-copy .display { max-width: 12ch; }
.closing-copy .lead { margin-top: 1.5rem; }
.offer { margin: 2.5rem 0 2rem; padding-left: 1.25rem; border-left: 2px solid; border-image: linear-gradient(180deg, var(--beacon), var(--wine-bright)) 1; max-width: 46ch; }
.offer-title { font-weight: 600; font-size: 1.125rem; margin-bottom: .35rem; }
.offer p:not(.offer-title) { color: var(--steel); }
.contact-data { margin-top: 3rem; display: grid; gap: 1.1rem; font-size: .9375rem; }
.contact-data dt { color: var(--steel); font-size: .8125rem; }
@media (min-width: 1024px) { .closing-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.lead-form { background: rgba(7, 64, 46, .6); border: 1px solid var(--rule-dark); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 4px; display: grid; gap: 1.1rem; align-self: start; }
.form-title { font-size: var(--fs-h3); font-weight: 600; font-stretch: 112%; margin-bottom: .25rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .875rem; color: rgba(246, 249, 247, .85); }
.field .opt { color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  background: rgba(5, 43, 31, .55);
  border: 1px solid rgba(143, 179, 163, .45);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
.field select option { background: var(--deep); color: var(--paper); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(143, 179, 163, .8); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--beacon); background: rgba(5, 43, 31, .85); }
.field [aria-invalid="true"] { border-color: var(--signal); }
.field .error { color: #E08A6E; font-size: .8125rem; }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field.check input { width: 20px; min-height: 20px; height: 20px; margin-top: .15rem; accent-color: var(--beacon); }
.field.check label { font-size: .8125rem; color: var(--steel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9375rem; min-height: 1.5em; }
.form-status.is-ok { color: var(--beacon); }
.form-status.is-error { color: #E08A6E; }
.form-note { font-size: .8125rem; color: var(--steel); margin-top: -.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-line); }
.footer-brand p { margin-top: 1rem; color: var(--steel); max-width: 24ch; }
.footer-h { font-size: .8125rem; font-weight: 500; color: var(--steel); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: rgba(246, 249, 247, .82); transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--beacon); }
.social a { margin-right: .9rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-dark); color: var(--steel); font-size: .8125rem; }

/* ---------- Barra móvil ---------- */
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav ul { gap: 1.4rem; }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-cta {
    position: fixed; z-index: 40;
    left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(5, 43, 31, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule-dark);
    transition: transform .35s var(--ease);
  }
  .mobile-cta .btn { min-height: 46px; }
  .beacon-content { padding-bottom: calc(5vh + 66px + env(safe-area-inset-bottom)); }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .hero { min-height: calc(100svh - 66px - env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  /* en pantallas estrechas el texto ocupa todo el ancho: velo uniforme */
  .hero-veil { background: linear-gradient(180deg, rgba(5, 43, 31, .78) 0%, rgba(5, 43, 31, .62) 40%, rgba(5, 43, 31, .9) 75%, rgba(5, 43, 31, .97) 100%); }
  .maritime::before { background: linear-gradient(180deg, rgba(5, 43, 31, .55) 0%, rgba(5, 43, 31, .86) 30%, rgba(5, 43, 31, .94) 100%); }
  .hero-index { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .scene-list { gap: .2rem 1.1rem; }
  .scene-list li::before { top: -1rem; }
  .hero-title { letter-spacing: -.03em; font-stretch: 112%; }
  .hero-actions .btn { flex: 1 1 auto; }
}


/* ---------- Luz y movimiento (v4) ---------- */
/* Progreso de lectura en el header */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad-line); transform-origin: left center; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* Linterna: luz cobriza que sigue el cursor en secciones oscuras (la metáfora del faro) */
[data-light]::after {
  content: "";
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  opacity: var(--lo, 0);
  transition: opacity .7s var(--ease);
  background: radial-gradient(560px circle at var(--lx, 50%) var(--ly, 40%), rgba(226, 168, 103, .16), rgba(200, 134, 46, .06) 38%, transparent 66%);
  mix-blend-mode: screen;
}

/* Grano de película: textura cinematográfica muy sutil */
.film-grain {
  position: fixed; inset: -60%; z-index: 70; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 2%); } 33% { transform: translate(3%, -3%); }
  50% { transform: translate(-2%, 4%); } 67% { transform: translate(4%, 1%); } 83% { transform: translate(-3%, -2%); } 100% { transform: translate(0, 0); }
}

/* Revelado de titulares con máscara */
.js .rv { clip-path: inset(0 0 105% 0); transform: translateY(.3em); transition: clip-path 1.15s var(--ease), transform 1.15s var(--ease); }
.js .rv.is-in { clip-path: inset(-.2em -.2em -.25em -.2em); transform: none; }
.js .rv-soft { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .18s, transform .9s var(--ease) .18s; }
.js .rv-soft.is-in { opacity: 1; transform: none; }

/* Parallax del hero (lo mueve JS con --py) */
.hero-media { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); transform-origin: center top; will-change: transform; }

/* Videos en bucle dentro de medios (sectores, marítimo) */
.media video.loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity .9s var(--ease); }
.media video.loop.is-playing { opacity: 1; }

/* Zoom lento sobre la imagen activa de servicios y del sector activo */
@keyframes slowzoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.stage-media.is-active img, .sector.is-active .sector-panel .media img { animation: slowzoom 9s var(--ease) both; }

/* Destello que recorre la línea de la metodología */
@media (min-width: 900px) {
  .js .method-steps.is-in::after {
    background: linear-gradient(90deg, var(--beacon) 0%, var(--beacon) 42%, #FFE2B0 50%, var(--beacon) 58%, var(--beacon) 100%);
    background-size: 320% 100%;
    box-shadow: 0 0 14px rgba(226, 168, 103, .55);
    animation: glint 4.5s linear 1.8s infinite;
  }
}
@keyframes glint { from { background-position: 100% 0; } to { background-position: -220% 0; } }
.step-num { text-shadow: 0 0 18px rgba(226, 168, 103, .35); }

/* Reflejo del faro sobre el agua */
.horizon::before {
  content: ""; position: absolute; z-index: 1;
  left: var(--lamp-x); top: 2px; width: 52vw; height: 32vh; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(226, 168, 103, 0) 0 7px, rgba(243, 207, 156, .28) 7px 9px);
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 0, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 100% at 50% 0, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 45%, transparent 75%);
  animation: shimmer 2.8s linear infinite;
}
.horizon::after { z-index: 0; }
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 0 18px; } }
.lamp-point { animation: lamp 3.2s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { box-shadow: 0 0 12px 4px rgba(200, 134, 46, .8), 0 0 60px 18px rgba(200, 134, 46, .25); } 50% { box-shadow: 0 0 18px 6px rgba(226, 168, 103, .95), 0 0 90px 30px rgba(200, 134, 46, .35); } }

/* Interacciones finas */
.capabilities li, .reasons li { position: relative; transition: background-color .35s var(--ease); }
.capabilities li::before, .reasons li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--grad-line); transition: width .6s var(--ease); }
.capabilities li:hover::before, .reasons li:hover::before { width: 100%; }
.reasons li:hover h3 { color: var(--wine); }
.reasons h3 { transition: color .35s var(--ease); }
.btn-ghost { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

@media (max-width: 900px) {
  .film-grain { display: none; }
  .hero-media { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .film-grain, [data-light]::after, .horizon::before { display: none; }
  .hero-media { transform: none; }
  .js .rv, .js .rv-soft { clip-path: none; opacity: 1; transform: none; }
  .media video.loop { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .beacon { height: auto; }
  .beacon-sticky { position: relative; min-height: 100svh; }
  .js .beacon-words [data-word] { color: var(--paper); }
  .js .beacon-promise { opacity: 1; transform: none; }
  .hero-video { display: none; }
}
