/* ==========================================================================
   Optec4Life — estilos
   Paleta y tipografía según manual de marca (DOME): Meditative + DIN Pro
   ========================================================================== */

@font-face { font-family: "Meditative"; src: url("../fonts/meditative.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DIN Pro"; src: url("../fonts/dinpro-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "DIN Pro"; src: url("../fonts/dinpro-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DIN Pro"; src: url("../fonts/dinpro-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DIN Pro"; src: url("../fonts/dinpro-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Marca */
  --orange: #ce8e61;          /* 01 */
  --brown: #603e2d;           /* 02 */
  --petrol: #193c4c;          /* 03 */
  --plum: #2a0f22;            /* 04 */
  --coral: #db6a56;           /* 05 */
  --forest: #17382b;          /* 06 */
  --green: #4fa665;           /* 07 */

  /* Derivados accesibles */
  --orange-deep: #b9713f;     /* acentos de titular sobre claro (≥3:1) */
  --orange-ink: #9a5427;      /* texto pequeño naranja sobre claro (≥4.5:1) */
  --orange-soft: #e2a87e;     /* texto pequeño naranja sobre oscuro */
  --night: #0d1519;
  --petrol-deep: #10262f;
  --ink: var(--petrol);
  --text: #3e5560;
  --text-on-dark: #c7d3d8;
  --cream: #f7efe7;
  --cream-2: #f1e5da;
  --line: rgba(25, 60, 76, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --white: #fff;

  /* Tipografía */
  --font-display: "Meditative", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "DIN Pro", "DIN Next LT Pro", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.9rem, 1.6rem + 5.4vw, 6.4rem);
  --fs-h2: clamp(2.3rem, 1.5rem + 3.2vw, 4.4rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-lead: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-body: clamp(1.02rem, .98rem + .2vw, 1.125rem);
  --fs-small: .9rem;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, .6rem + 3vw, 3rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -28px rgba(13, 21, 25, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
strong { font-weight: 500; color: var(--ink); }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--night); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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-link { position: fixed; top: .75rem; left: .75rem; z-index: 200; padding: .7rem 1.1rem; border-radius: 999px; background: var(--orange); color: var(--night); font-weight: 500; text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.h2, .hero__title { font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; margin-bottom: 1.5rem; }
.h2 .accent, .hero__title .accent { display: block; }
.accent { color: var(--orange-deep); }
.section--dark .accent, .section--petrol .accent, .hero .accent, .contact .accent { color: var(--orange); }
.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-ink);
}
.eyebrow--light { color: var(--orange-soft); }
.eyebrow--ink { color: var(--ink); }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; color: var(--ink); }
.split__text p + p, .split__text .lead + p { margin-top: 1.1rem; }

/* ---------- Botones ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h); padding: 0 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 1rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn__icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn[href^="#technology"]:hover .btn__icon { transform: translateY(3px); }
.btn--primary { background: var(--orange); color: var(--night); box-shadow: 0 10px 30px -12px rgba(206, 142, 97, .7); }
.btn--primary:hover { background: #dba077; transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--outline { border-color: var(--orange); color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: var(--night); }
.btn--sm { --h: 44px; padding: 0 1.25rem; font-size: .95rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13, 21, 25, .55), rgba(13, 21, 25, 0)); pointer-events: none; transition: opacity .35s; }
.site-header.is-scrolled { background: rgba(13, 21, 25, .86); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-scrolled::before { opacity: 0; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--orange); text-decoration: none; flex-shrink: 0; }
.brand-icon { width: 38px; height: 33px; }
.brand-wordmark { width: 128px; height: auto; aspect-ratio: 4288 / 817; color: var(--white); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: clamp(1rem, 1.6vw, 1.9rem); }
.nav-list a { position: relative; display: inline-block; padding: .4rem 0; font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .82); transition: color .2s; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--white); }
.nav-list a:hover::after, .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.lang-switch { position: relative; z-index: 2; display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-switch a { display: grid; place-items: center; min-width: 36px; height: 30px; padding: 0 .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: rgba(255, 255, 255, .7); transition: background-color .2s, color .2s; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { background: var(--orange); color: var(--night); }
@media (min-width: 1081px) { .header-inner { justify-content: flex-start; } .main-nav { margin-left: auto; } .lang-switch { margin-left: 1.2rem; } }
@media (max-width: 1080px) { .lang-switch { margin-left: auto; margin-right: .6rem; } }
.site-header--solid .lang-switch { margin-left: auto; margin-right: .8rem; }
@media (max-width: 560px) { .site-header--solid .btn { display: none; } .site-header--solid .lang-switch { margin-right: 0; } }


@media (max-width: 1080px) {
  .menu-toggle {
    position: relative; z-index: 2; display: grid; place-content: center; gap: 7px;
    width: 48px; height: 48px; margin-right: -10px; border-radius: 50%;
  }
  .menu-toggle__bar { display: block; width: 26px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    background: radial-gradient(120% 70% at 100% 0%, rgba(206, 142, 97, .22), transparent 60%), var(--night);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav-list { flex-direction: column; gap: .2rem; }
  .nav-list a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--white); padding: .3rem 0; }
  .nav-list a::after { display: none; }
  .main-nav.is-open .nav-list li { animation: navIn .5s var(--ease) both; }
  .main-nav.is-open .nav-list li:nth-child(2) { animation-delay: .04s; }
  .main-nav.is-open .nav-list li:nth-child(3) { animation-delay: .08s; }
  .main-nav.is-open .nav-list li:nth-child(4) { animation-delay: .12s; }
  .main-nav.is-open .nav-list li:nth-child(5) { animation-delay: .16s; }
  .main-nav.is-open .nav-list li:nth-child(6) { animation-delay: .2s; }
  .nav-cta { --h: 54px; font-size: 1rem; padding: 0 1.8rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 980px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  background: var(--night); color: var(--white);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 72% 40%; animation: heroZoom 18s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 21, 25, .92) 0%, rgba(13, 21, 25, .72) 38%, rgba(13, 21, 25, .1) 72%),
    linear-gradient(0deg, rgba(13, 21, 25, .85) 0%, rgba(13, 21, 25, 0) 30%);
}
.hero__beam {
  position: absolute; z-index: -1; top: -20%; right: 18%; width: 2px; height: 140%;
  background: linear-gradient(to bottom, transparent, rgba(255, 196, 150, .9) 40%, rgba(206, 142, 97, .6) 60%, transparent);
  transform: rotate(24deg); filter: blur(.5px); box-shadow: 0 0 24px 6px rgba(206, 142, 97, .35);
  opacity: 0; animation: beamIn 2.4s .4s var(--ease) forwards;
}
.hero__content { position: relative; }
.hero__title { font-size: var(--fs-h1); line-height: .98; color: var(--white); max-width: 11ch; margin-bottom: 1.6rem; }
.hero__lead { max-width: 34rem; margin-bottom: 2.4rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero .eyebrow { margin-bottom: 1.4rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.8rem; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--orange); animation: cue 2s var(--ease) infinite; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes beamIn { to { opacity: .75; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 720px) {
  .hero { align-items: flex-end; min-height: 100svh; padding-bottom: 4.5rem; }
  .hero__media { bottom: auto; height: 62%; }
  .hero__media img { object-position: 62% 40%; }
  .hero::after { background: linear-gradient(0deg, var(--night) 0%, var(--night) 38%, rgba(13, 21, 25, .55) 50%, rgba(13, 21, 25, .05) 68%, rgba(13, 21, 25, .45) 100%); }
  .hero__beam { right: 8%; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--light { background: var(--white); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--night); color: var(--text-on-dark); }
.section--petrol { background: var(--petrol); color: var(--text-on-dark); }
.section--dark .h2, .section--petrol .h2 { color: var(--white); }
.section--dark strong, .section--petrol strong { color: var(--white); }

.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; max-width: 52rem; margin-inline: auto; }
.section-head--split { display: grid; gap: 1.5rem; align-items: end; }
.section-head--split .h2 { margin-bottom: 0; }
.section-head__intro { max-width: 30rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: 1.3fr 1fr; } }

/* Listas con icono */
.icon-list { display: grid; gap: 1rem; }
.icon-list li { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; align-items: center; line-height: 1.35; }
.icon-list svg { width: 26px; height: 26px; }
.icon-list--compact { gap: .85rem; font-size: .98rem; }
.icon-list--compact svg { width: 22px; height: 22px; }
.icon-list--compact li { grid-template-columns: 22px 1fr; }

/* ---------- Piezas comunes ---------- */
.live-dot { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fb27f; animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(63, 178, 127, .55); } 70% { box-shadow: 0 0 0 7px rgba(63, 178, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 178, 127, 0); } }
.pill-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: 0 1.3rem; border: 1.5px solid var(--orange); border-radius: 999px; color: var(--orange-ink); font-size: .95rem; font-weight: 500; transition: background-color .25s, color .25s, box-shadow .25s; }
.pill-toggle svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.pill-toggle:hover { background: var(--orange); color: var(--night); }
.pill-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.pill-toggle--light { color: var(--orange-soft); }
.pill-toggle--light[aria-expanded="true"] { background: var(--orange); color: var(--night); box-shadow: 0 10px 30px -10px rgba(206, 142, 97, .7); }
.collapse { display: grid; grid-template-rows: 1fr; }
.js .collapse { grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.js .collapse.is-open { grid-template-rows: 1fr; }
.collapse__inner { min-height: 0; overflow: hidden; }
.motes { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

.statement { display: grid; gap: 1.2rem 1.6rem; }
@media (min-width: 760px) { .statement { grid-template-columns: auto 1fr; align-items: start; } }
.statement__icon { width: 56px; height: 48px; color: var(--orange); }
.statement__text { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; color: var(--ink); }
.statement__text span { color: var(--orange-deep); }
.statement__body .pill-toggle { margin-top: 1.4rem; }
.statement__more { max-width: 46rem; padding-top: 1.2rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; }
.statement--dark .statement__text { color: var(--white); }
.statement--dark .statement__text span { color: var(--orange); }
.statement--dark .statement__more { color: var(--text-on-dark); }

/* ---------- Technology ---------- */
.split--tech .split__text { order: -1; }
@media (min-width: 960px) { .split--tech { grid-template-columns: 1.1fr .9fr; } .split--tech .split__text { order: 0; } }
.tech__device { position: relative; }
.tech__device figcaption { margin-top: .6rem; font-size: .8rem; color: #6b7d85; text-align: center; }
.device-stage { position: relative; isolation: isolate; }
.device-stage picture { position: relative; z-index: 1; }
.device-stage::before { content: ""; position: absolute; z-index: 0; left: 8%; right: 8%; bottom: 2%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 21, 25, .18), transparent); filter: blur(8px); }
.device-screen-wrap { position: absolute; z-index: 2; left: 0; top: 0; width: 1200px; height: 814px; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: none; }
.device-screen { position: absolute; left: 0; top: 0; overflow: hidden; transform-origin: 0 0; transform: matrix3d(0.872594, -0.0355317, 0, -0.000119245, -0.0784848, 0.909899, 0, -4.42602e-05, 0, 0, 1, 0, 127, 145, 0, 1); }
.device-fx { z-index: 3; }
.scr-t { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .14em; fill: var(--orange-soft); }
.scr-s { font-family: var(--font-body); font-size: 13px; fill: rgba(255, 255, 255, .5); }
.scr-grid { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.scr-spec { fill: none; stroke: #ffb27a; stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.video-card { margin-top: clamp(4rem, 8vw, 7rem); }
.video-card__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #121b20; box-shadow: var(--shadow); }
.video-card__media { width: 100%; height: 100%; object-fit: cover; }
.video-card__toggle {
  position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(13, 21, 25, .5); color: var(--white); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); opacity: 0; transition: opacity .3s, background-color .2s;
}
.video-card__frame:hover .video-card__toggle, .video-card__toggle:focus-visible, .video-card__toggle[aria-pressed="false"].was-paused { opacity: 1; }
@media (hover: none) { .video-card__toggle { opacity: .7; } }
.video-card__toggle:hover { background: var(--orange); color: var(--night); }
.video-card__toggle svg { width: 20px; height: 20px; }
.video-card__toggle .i-pause { display: none; }
.video-card__toggle[aria-pressed="true"] .i-pause { display: block; }
.video-card__toggle[aria-pressed="true"] .i-play { display: none; }

.process-wrap { margin-top: clamp(4rem, 8vw, 6.5rem); }
.process-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.process-head .eyebrow { margin-bottom: 0; }
.process-hint { font-size: .85rem; color: #6b7d85; }
.process { display: grid; gap: 2.2rem; margin-top: 2rem; counter-reset: step; }
.process__step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 1.2rem; align-items: start; border-radius: 16px; cursor: default; outline-offset: 6px; transition: transform .45s var(--ease); }
.process__icon { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--orange); background: var(--white); color: var(--orange-deep); transition: background-color .4s, color .4s, transform .45s var(--ease), box-shadow .4s; }
.process__icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--orange); opacity: 0; }
.process__icon svg { width: 28px; height: 28px; transition: transform .45s var(--ease); }
.process__step h4 { margin: .55rem 0 .35rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; line-height: 1.15; color: var(--ink); transition: color .3s; }
.process__step h4::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: .3rem; font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--orange-ink); }
.process__step p { font-size: .95rem; line-height: 1.5; transition: color .3s; }
.process__step.is-active { transform: translateY(-4px); }
.process__step.is-active .process__icon { background: var(--orange); color: var(--night); transform: scale(1.08); box-shadow: 0 14px 34px -10px rgba(206, 142, 97, .85); }
.process__step.is-active .process__icon svg { transform: scale(1.1); }
.process__step.is-active .process__icon::after { animation: ring 1.6s var(--ease) infinite; }
.process__step.is-active h4 { color: var(--orange-deep); }
.process__step.is-active p { color: var(--ink); }
@keyframes ring { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 899px) {
  .process__step:not(:last-child)::after, .process__step:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 70px; bottom: -2rem; width: 2px; }
  .process__step:not(:last-child)::after { background: rgba(206, 142, 97, .25); }
  .process__step:not(:last-child)::before { z-index: 1; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
  .process__step.is-done::before { transform: scaleY(1); }
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .process__step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .process__icon { grid-row: auto; width: 76px; height: 76px; margin-bottom: .6rem; }
  .process__icon svg { width: 32px; height: 32px; }
  .process__step:not(:last-child)::after, .process__step:not(:last-child)::before { content: ""; position: absolute; top: 38px; left: calc(50% + 46px); right: calc(-50% + 46px - 1.5rem); height: 2px; }
  .process__step:not(:last-child)::after { background: repeating-linear-gradient(90deg, rgba(206, 142, 97, .55) 0 6px, transparent 6px 11px); }
  .process__step:not(:last-child)::before { z-index: 1; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
  .process__step.is-done::before { transform: scaleX(1); }
  .process__step h4 { font-size: 1.15rem; }
}

/* ---------- Projects ---------- */
.projects { overflow: hidden; }
.projects::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -25vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(206, 142, 97, .2), transparent); pointer-events: none; }
.project-grid { display: grid; gap: 1rem; }
@media (min-width: 820px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(380px, 34vw, 480px); border-radius: var(--radius); background: var(--petrol-deep); box-shadow: inset 0 0 0 1px var(--line-dark); outline-offset: 4px; cursor: default; }
.project__media { position: absolute; inset: 0; z-index: -1; }
.project__media picture { position: absolute; inset: 0; display: block; }
.project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.75); transform: scale(1.04); transition: transform 1s var(--ease), filter .6s; }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 38, 47, .15) 0%, rgba(16, 38, 47, .55) 45%, rgba(13, 21, 25, .96) 100%); mix-blend-mode: multiply; }
.project__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(206, 142, 97, .25), transparent 60%); mix-blend-mode: color; opacity: .9; transition: opacity .6s; }
.project__signal { position: absolute; z-index: 2; left: 0; right: 0; top: 34%; width: 100%; height: 70px; }
.sig-base { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sig-pulse { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 84; vector-effect: non-scaling-stroke; animation: sigRun 3.4s linear infinite; filter: drop-shadow(0 0 6px rgba(206, 142, 97, .95)); }
.project:nth-child(2) .sig-pulse { animation-duration: 2s; }
.project:nth-child(3) .sig-pulse { animation-duration: 2.8s; }
@keyframes sigRun { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.project__body { position: relative; padding: 1.8rem; }
.project__tag { position: absolute; left: 1.8rem; top: -1.6rem; display: none; }
.project h3 { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 400; line-height: 1; color: var(--white); }
.project__text { max-width: 26rem; margin-top: .8rem; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.project--lead .project__media::before { opacity: 1; background: linear-gradient(180deg, rgba(206, 142, 97, .55), rgba(206, 142, 97, .1) 70%); }
.project::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--orange); opacity: 0; transition: opacity .4s; pointer-events: none; }
@media (hover: hover) {
  .project__text { opacity: 0; max-height: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), max-height .5s var(--ease); }
  .project:hover .project__text, .project:focus-visible .project__text, .project:focus-within .project__text { opacity: 1; max-height: 8rem; transform: none; }
  .project:hover .project__media img, .project:focus-visible .project__media img { transform: scale(1.1); filter: grayscale(.3) contrast(1.05) brightness(.8); }
  .project:hover::after, .project:focus-visible::after { opacity: 1; }
  .project:hover .sig-pulse { animation-duration: 1.2s; }
}

/* ---------- Our goal (necesidad + por qué + uso clínico) ---------- */
.goal { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); background: radial-gradient(120% 90% at 75% 45%, #143340 0%, var(--night) 60%); color: var(--text-on-dark); }
.goal__gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
.goal .h2 { color: var(--white); }
.goal strong { color: var(--white); }
.goal__grid { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .goal__grid { grid-template-columns: 1fr 1.05fr; min-height: 640px; } }
.goal__lead { max-width: 34rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.goal__text .pill-toggle { margin-top: 2rem; }
.goal__visual { position: relative; }
.goal__visual .cu-stage img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(206, 142, 97, .25)); }
.goal__use { margin-top: 1.4rem; }
.goal__use h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; color: var(--white); }
.goal__use h3 span { color: var(--orange); }
.goal__use p { margin-top: .7rem; font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem .45rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(206, 142, 97, .45); font-size: .85rem; font-weight: 500; color: var(--white); }
.chips svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--orange); color: var(--night); }
.goal .statement { margin-top: clamp(3.5rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }

.cu-stage { position: relative; animation: floaty 7s ease-in-out infinite; }
.cu-stage img { width: 100%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hotspot { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: grid; place-items: center; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--orange); color: var(--night); font-size: .8rem; font-weight: 700; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 6px 16px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), background-color .3s, box-shadow .3s; }
.hotspot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; }
.hotspot.is-active { transform: scale(1.18); background: var(--white); box-shadow: 0 0 0 3px var(--orange), 0 0 26px rgba(206, 142, 97, .9); }
.hotspot.is-active::after { animation: ring 1.6s var(--ease) infinite; }
.hs-legend { display: grid; gap: .5rem; margin-top: 1.4rem; counter-reset: none; }
@media (min-width: 640px) { .hs-legend { grid-template-columns: repeat(3, 1fr); } }
.hs-legend li { display: flex; align-items: flex-start; gap: .7rem; padding: .75rem .8rem; border-radius: 12px; background: rgba(10, 20, 25, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .85rem; line-height: 1.4; color: rgba(255, 255, 255, .7); cursor: default; outline-offset: 2px; transition: background-color .3s, color .3s, box-shadow .3s; }
.hs-legend strong { display: block; margin-bottom: .15rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-soft); }
.hs-legend__num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(206, 142, 97, .2); color: var(--orange-soft); font-size: .75rem; font-weight: 700; transition: background-color .3s, color .3s; }
.hs-legend li.is-active { background: rgba(206, 142, 97, .12); box-shadow: inset 0 0 0 1px rgba(206, 142, 97, .45); color: var(--white); }
.hs-legend li.is-active .hs-legend__num { background: var(--orange); color: var(--night); }

/* Comparativa: panel por encima del contenido */
.cmp { display: none; }
.cmp.is-open { display: block; animation: cmpIn .45s var(--ease) both; }
@keyframes cmpIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
  .cmp { position: absolute; z-index: 5; left: 0; right: 0; top: 50%; translate: 0 -50%; }
}
.cmp__panel { position: relative; padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 22px; background: rgba(10, 20, 25, .9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cmp__close { position: absolute; right: 1rem; top: 1rem; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background-color .2s; }
.cmp__close svg { width: 18px; height: 18px; transform: rotate(45deg); }
.cmp__close:hover { background: rgba(255, 255, 255, .12); }
.cmp__head, .cmp__rows li { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: .5rem; }
.cmp__head { grid-template-columns: 1fr 1fr; gap: calc(44px + 1rem); margin: 0 3rem 1.2rem 0; }
.cmp__col { display: grid; gap: .3rem; }
.cmp__kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cmp__col--optec .cmp__kicker { color: var(--orange-soft); }
.cmp__col--today .live-dot { background: rgba(255, 255, 255, .5); animation: none; }
.cmp__col--optec .live-dot { background: var(--orange); }
.cmp__col strong { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--white); }
.cmp__col--optec strong { color: var(--orange); }
.cmp__viz { width: 100%; height: 56px; margin-top: .3rem; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.cmp__ctg, .cmp__phys { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.cmp__ctg { stroke: rgba(255, 255, 255, .75); stroke-width: 1.5; }
.cmp__phys { stroke: var(--orange); stroke-width: 2; }
.cmp__phys--2 { stroke: #ffcf9f; }
.cmp__phys--3 { stroke: #db6a56; }
.cmp__rows { display: grid; gap: .45rem; }
.cmp__rows li { padding: .2rem; border-radius: 14px; transition: background-color .3s; }
.cmp__cell { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: .7rem; min-height: 54px; padding: .6rem .85rem; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: .93rem; line-height: 1.3; color: rgba(255, 255, 255, .78); transition: background-color .3s, color .3s; }
.cmp__cell svg { width: 22px; height: 22px; color: rgba(255, 255, 255, .55); }
.cmp__cell--optec { background: rgba(206, 142, 97, .12); box-shadow: inset 0 0 0 1px rgba(206, 142, 97, .35); color: #f4ddcc; }
.cmp__cell--optec svg { color: var(--orange); }
.cmp__cell em { font-style: normal; opacity: .7; }
.cmp__arrow { display: grid; place-items: center; color: var(--orange); }
.cmp__arrow svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.cmp__rows li:hover { background: rgba(255, 255, 255, .04); }
.cmp__rows li:hover .cmp__cell { color: var(--white); }
.cmp__rows li:hover .cmp__cell--optec { background: rgba(206, 142, 97, .24); }
.cmp__rows li:hover .cmp__arrow svg { transform: translateX(4px) scale(1.15); }
.cmp__targets { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.cmp__targets span { margin-right: .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.cmp__targets b { padding: .3rem .7rem; border-radius: 999px; background: rgba(206, 142, 97, .14); font-weight: 500; color: var(--orange-soft); }
@media (max-width: 640px) {
  .cmp__head { grid-template-columns: 1fr 1fr; gap: 1rem; margin-right: 2.6rem; }
  .cmp__rows li { grid-template-columns: 1fr; gap: .3rem; padding: .4rem; background: rgba(255, 255, 255, .03); }
  .cmp__arrow svg { transform: rotate(90deg); width: 18px; height: 18px; }
  .cmp__rows li:hover .cmp__arrow svg { transform: rotate(90deg); }
}

/* ---------- The company ---------- */
.company__intro { max-width: 60rem; margin-bottom: clamp(4.5rem, 8vw, 7rem); }
.company__intro .h2 { margin-bottom: 1.6rem; }
.company__mission { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.25; color: var(--ink); }
.js .company__mission .w { color: rgba(25, 60, 76, .18); transition: color .4s; }
.js .company__mission .w.is-lit { color: var(--ink); }
.h2--sm { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
.divider-title { display: flex; align-items: center; gap: 1.2rem; margin: 0 0 2.5rem; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.divider-title::before, .divider-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid { display: grid; gap: 2.5rem 1.5rem; }
.team-grid--lead { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: clamp(4rem, 7vw, 6rem); }
.team-grid--rd { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.person { text-align: center; }
.person__photo { position: relative; display: block; width: min(100%, 200px); aspect-ratio: 1; margin: 0 auto 1.3rem; overflow: hidden; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .7s var(--ease); }
.person__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 30%, rgba(206, 142, 97, .55), rgba(96, 62, 45, .5)); mix-blend-mode: soft-light; opacity: 0; transition: opacity .5s var(--ease); }
.person:hover .person__photo { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--orange), 0 20px 40px -18px rgba(96, 62, 45, .55); transform: translateY(-4px); }
.person:hover .person__photo img { transform: scale(1.06); }
.person:hover .person__photo::after { opacity: 1; }
.person__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.15; color: var(--ink); }
.person__role { margin-top: .45rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.person__bio { max-width: 17rem; margin: 1rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(206, 142, 97, .5); font-size: .93rem; line-height: 1.5; }
.person--sm .person__photo { width: min(100%, 140px); }
.person--sm .person__name { font-size: 1.12rem; }
.person--sm .person__role { font-size: .68rem; letter-spacing: .1em; line-height: 1.4; }
@media (max-width: 560px) {
  .team-grid--lead { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .team-grid--rd { grid-template-columns: 1fr 1fr; }
  .person__bio { font-size: .88rem; }
  .person__name { font-size: 1.15rem; }
}
.ecosystem { margin-top: clamp(4.5rem, 8vw, 7rem); padding-top: clamp(3.5rem, 6vw, 5rem); border-top: 1px solid var(--line); text-align: center; }
.ecosystem__title { max-width: 40rem; margin: 0 auto 1rem; font-family: var(--font-display); font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 400; line-height: 1.1; color: var(--ink); text-wrap: balance; }
.ecosystem__intro { max-width: 40rem; margin: 0 auto 3rem; }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.logo-grid li { flex: 0 1 calc((100% - 3rem) / 4); min-width: 150px; }
.logo-grid a { display: grid; place-items: center; height: 120px; padding: 1.3rem 1.6rem; border-radius: var(--radius-sm); background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.logo-grid img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.logo-grid a:hover { box-shadow: 0 0 0 1.5px var(--orange), var(--shadow); transform: translateY(-3px); }
@media (max-width: 560px) { .logo-grid li { flex-basis: calc(50% - .5rem); min-width: 0; } .logo-grid a { height: 96px; padding: 1rem; } .logo-grid img { max-height: 50px; } }

/* ---------- Contacto + pie (continuos, sin franja) ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y) clamp(4rem, 7vw, 6rem); background: var(--night); color: var(--text-on-dark); }
.contact__media, .contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__media { z-index: -2; }
.contact__media img { object-fit: cover; object-position: 60% 50%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-2%, 1%); } }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 21, 25, .94) 0%, rgba(13, 21, 25, .7) 50%, rgba(13, 21, 25, .35) 100%), linear-gradient(0deg, var(--night) 0%, rgba(13, 21, 25, 0) 30%); }
.contact .h2 { color: var(--white); }
.contact__inner { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .contact__inner { grid-template-columns: 1.35fr 1fr; gap: 5rem; } }
.contact__text p { max-width: 36rem; margin-bottom: 2.2rem; }
.btn--lg { --h: 60px; padding: 0 2rem; font-size: 1.05rem; }
.shine { background: linear-gradient(100deg, var(--orange) 0%, var(--orange) 40%, #ffe0c4 50%, var(--orange) 60%, var(--orange) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 30% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.contact__cards { display: grid; gap: .8rem; }
.contact-card { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); }
.contact-card:hover { background: rgba(206, 142, 97, .1); box-shadow: inset 0 0 0 1px rgba(206, 142, 97, .55); transform: translateX(4px); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(206, 142, 97, .16); color: var(--orange); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__body { flex: 1; min-width: 0; }
.contact-card__label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); }
.contact-card a, .contact-card address { font-size: 1.05rem; line-height: 1.4; color: var(--white); text-decoration: none; }
.contact-card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.contact-card a:hover { color: var(--orange-soft); }
.contact-card__copy { position: relative; z-index: 1; padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(206, 142, 97, .5); transition: background-color .2s, color .2s; }
.contact-card__copy:hover, .contact-card__copy.is-done { background: var(--orange); color: var(--night); }

.site-footer { position: relative; overflow: hidden; padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom)); background: var(--night); color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer-inner { position: relative; z-index: 1; display: grid; gap: 1.6rem 2.5rem; align-items: center; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; } }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.footer-brand .brand-icon { width: 32px; height: 28px; }
.footer-brand .brand-wordmark { width: 110px; }
.footer-tagline { padding-left: 1.6rem; border-left: 1px solid var(--line-dark); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
@media (min-width: 900px) { .footer-nav { justify-content: center; } }
.footer-nav a, .footer-legal a { text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--orange-soft); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: rgba(255, 255, 255, .55); }
.footer-watermark { display: block; width: calc(100% - var(--gutter) * 2); max-width: var(--container); height: auto; aspect-ratio: 4288 / 817; margin: 2.5rem auto 0; color: rgba(255, 255, 255, .045); }
@media (max-width: 720px) { .footer-tagline { padding-left: 0; border-left: 0; width: 100%; } }

/* ---------- Extras de portada y globales ---------- */
.hero__particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero__title .line + .line > span { animation-delay: .14s; }
.hero .eyebrow { animation: fadeUp .9s var(--ease) both; }
.hero__lead { animation: fadeUp .9s .3s var(--ease) both; }
.hero .btn-row { animation: fadeUp .9s .45s var(--ease) both; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.scroll-progress { position: fixed; z-index: 150; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--orange), #ffcf9f); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn--primary:hover::after { left: 120%; }

/* ---------- Animaciones de entrada (solo con JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@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 [data-reveal] { opacity: 1; transform: none; }
  .hero__beam { opacity: .75; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 4rem) 0 6rem; }
.legal .container { max-width: calc(820px + var(--gutter) * 2); }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.05; color: var(--ink); margin-bottom: 1rem; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); margin: 2.6rem 0 .8rem; }
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal .updated { color: #6b7d85; font-size: .9rem; }
.legal mark { background: #fde6d4; color: var(--brown); padding: 0 .25em; border-radius: 3px; }
.site-header--solid { background: var(--night); }
