/* ==========================================================================
   MONACO DIGITAL STUDIO — Estilos
   Dirección: lujo editorial · cromo cepillado sobre azul medianoche
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Paleta (derivada del logo) */
  --ink-900: #050b18;
  --ink-800: #070f20;
  --ink-700: #0b1730;
  --ink-600: #11213f;
  --ink-500: #1a2e52;
  --steel-500: #5d7595;
  --steel-400: #7f97b6;
  --steel-300: #a6b9d1;
  --steel-200: #c9d6e6;
  --steel-100: #e6eef7;
  --white: #f6f9fd;

  --chrome: linear-gradient(135deg, #f4f8fd 0%, #a9bcd4 22%, #e6eef8 42%, #6c84a3 62%, #c3d2e4 82%, #7d93b0 100%);
  --chrome-text: linear-gradient(100deg, #8ea3bf 0%, #eef4fb 30%, #9db1cb 52%, #f6f9fd 72%, #8299b7 100%);

  --line: rgba(166, 185, 209, 0.16);
  --line-strong: rgba(166, 185, 209, 0.32);
  --glass: rgba(14, 28, 54, 0.55);

  /* Tipografía */
  --f-display: "Marcellus", "Times New Roman", serif;
  --f-sans: "Jost", system-ui, sans-serif;
  --f-accent: "Cormorant Garamond", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 18px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel-200);
  background: var(--ink-800);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--steel-300); color: var(--ink-900); }

.container { width: min(100% - var(--pad) * 2, var(--container)); margin-inline: auto; }

em {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--chrome-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
  padding-right: 0.06em;
}
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- Grain global (papel) ---------- */
.grain {
  /* -10% alcanza para los desplazamientos (máx. 4%) y la capa es ~3x más chica que con -50% */
  position: fixed; inset: -10%;
  z-index: 100; pointer-events: none;
  opacity: 0.07;
  will-change: transform;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 36px;
  background: radial-gradient(ellipse at center, var(--ink-600), var(--ink-900) 70%);
  transition: clip-path .8s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader__mark { width: 92px; overflow: visible; }
.preloader__mark path {
  fill: transparent;
  stroke: var(--steel-200);
  stroke-width: 1.4;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw .7s var(--ease) forwards, fillIn .35s .45s var(--ease) forwards;
}
.preloader__mark path:nth-child(2) { animation-delay: .05s, .5s; }
.preloader__mark path:nth-child(3) { animation-delay: .1s, .55s; }
.preloader__mark .preloader__fill { opacity: 0; animation: markIn .4s .45s var(--ease) forwards; }
@keyframes markIn { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { stroke: transparent; } }
.preloader__bar { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--chrome);
  transform: translateX(-100%);
  animation: load .75s var(--ease) forwards;
}
@keyframes load { to { transform: translateX(0); } }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.cursor span { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--steel-100); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(201, 214, 230, 0.45);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring {
  width: 70px; height: 70px; margin: -35px 0 0 -35px;
  background: rgba(201, 214, 230, 0.08);
  border-color: rgba(201, 214, 230, 0.7);
}
.cursor.is-hidden span { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--chrome);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ---------- Tipografía base ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--steel-300);
  white-space: nowrap;
}
.eyebrow .line { width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--steel-300)); }
.eyebrow .line:last-child { background: linear-gradient(90deg, var(--steel-300), transparent); }

.section__title, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--white); }
.section__title {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 22px 0 22px;
}
.section__title em { font-size: 1.08em; }
.section__lead { max-width: 560px; color: var(--steel-300); font-size: 18px; }

.section { position: relative; padding: clamp(96px, 13vw, 170px) 0; }
.section__head { margin-bottom: clamp(56px, 7vw, 90px); }
.section__head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.section__head--center { text-align: center; display: grid; justify-items: center; }

/* ---------- Wordmark (A sin travesaño como en el logo) ---------- */
.wordmark { font-family: var(--f-display); letter-spacing: 0.14em; white-space: nowrap; }
.wm-a {
  display: inline-block;
  width: 0.74em; height: 0.7em;
  margin: 0 0.02em;
  background: currentColor;
  clip-path: polygon(0 100%, 45% 0, 55% 0, 100% 100%, 87% 100%, 50% 17%, 13% 100%);
  vertical-align: baseline;
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .5s var(--ease), color .4s, box-shadow .5s var(--ease), border-color .4s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn span, .btn svg { position: relative; z-index: 2; pointer-events: none; }

.btn--chrome {
  color: var(--ink-900);
  background: var(--chrome);
  background-size: 180% 180%;
  box-shadow: 0 10px 40px -12px rgba(166, 185, 209, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: chromeShift 6s ease-in-out infinite;
}
@keyframes chromeShift { 50% { background-position: 100% 100%; } }
.btn--chrome::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--chrome:hover::after { transform: translateX(120%); }
.btn--chrome:hover { box-shadow: 0 18px 50px -12px rgba(166, 185, 209, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8); }

.btn--ghost {
  color: var(--steel-100);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--chrome);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn--ghost:hover { color: var(--ink-900); border-color: transparent; }
.btn--ghost:hover::before { transform: translateY(0); }

.btn--link { padding: 16px 6px; color: var(--steel-200); overflow: visible; }
.btn--link span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(0.35);
  transition: transform .5s var(--ease);
}
.btn--link:hover span::after { transform: scaleX(1); transform-origin: left; }

.btn--block { width: 100%; }
.btn--lg { padding: 22px 40px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 40px;
  padding: 26px var(--pad);
  transition: padding .5s var(--ease), background .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 14px;
  background: rgba(7, 15, 32, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--steel-100); }
.brand__mark { width: 30px; height: 33px; fill: url(#chrome); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); transition: transform .7s var(--ease); }
.brand:hover .brand__mark { transform: rotateY(180deg); }
.brand__text { display: grid; line-height: 1; }
.brand__text .wordmark { font-size: 19px; }
.brand__text small { font-size: 8.5px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--steel-400); margin-top: 6px; font-weight: 500; }
.brand--lg .brand__mark { width: 44px; height: 48px; }
.brand--lg .wordmark { font-size: 28px; }
.brand--lg small { font-size: 10px; }

.nav__links { display: flex; gap: 38px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  color: var(--steel-300);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--steel-100);
  transform: translateX(-50%) scale(0);
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after, .nav__links a:hover::after { transform: translateX(-50%) scale(1); }
.nav__cta { padding: 12px 22px; font-size: 11.5px; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 95; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--steel-100); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--pad) 40px;
  background: radial-gradient(ellipse at 80% 0%, var(--ink-500), var(--ink-900) 70%);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .9s var(--ease-in-out);
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mobile-menu nav { display: grid; gap: 8px; }
.mobile-menu nav a {
  font-family: var(--f-display); font-size: clamp(36px, 10vw, 54px); color: var(--white);
  display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.mobile-menu nav a em { font-size: 14px; animation: none; color: var(--steel-400); background: none; -webkit-text-fill-color: var(--steel-400); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .25s; }
.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .3s; }
.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .35s; }
.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .4s; }
.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .45s; }
.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .5s; }
.mobile-menu p { color: var(--steel-400); letter-spacing: .1em; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 70% 40%, var(--ink-600) 0%, var(--ink-800) 55%, var(--ink-900) 100%); }
.aurora {
  position: absolute; border-radius: 50%;
  /* sin filter: blur() — el degradado radial ya es difuso y el blur animado con scale
     obligaba a re-rasterizar cada frame (lo más caro del hero) */
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
  animation: float 18s ease-in-out infinite alternate;
}
.aurora--1 { width: 46vw; height: 46vw; left: 48%; top: -12%; background: radial-gradient(circle closest-side, rgba(93, 117, 149, .6), rgba(93, 117, 149, .25) 45%, transparent); }
.aurora--2 { width: 38vw; height: 38vw; left: -10%; bottom: -20%; background: radial-gradient(circle closest-side, rgba(26, 46, 82, .85), rgba(26, 46, 82, .35) 45%, transparent); animation-duration: 22s; animation-delay: -6s; }
.aurora--3 { width: 26vw; height: 26vw; left: 30%; top: 40%; background: radial-gradient(circle closest-side, rgba(166, 185, 209, .2), rgba(166, 185, 209, .08) 45%, transparent); animation-duration: 26s; animation-delay: -12s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vw, 5vh) scale(1.12); }
  100% { transform: translate(4vw, -4vh) scale(.95); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 0%, transparent 75%);
  opacity: .45;
}
.hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 40%), rgba(201, 214, 230, 0.10), transparent 60%);
  transition: background .2s;
}

.hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title {
  font-size: clamp(48px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__title em { font-size: 1.1em; line-height: 1; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; transform: translateY(110%) rotate(3deg); transform-origin: 0 100%; transition: transform 1.3s var(--ease); }
.is-loaded .split-line > span { transform: none; }
.is-loaded .split-line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .split-line:nth-child(3) > span { transition-delay: .24s; }

.hero__lead { max-width: 500px; margin: 34px 0 44px; font-size: 19px; color: var(--steel-300); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.hero__eyebrow, .hero__lead, .hero__actions, .hero__foot, .hero__visual {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.is-loaded .hero__eyebrow { opacity: 1; transform: none; transition-delay: .1s; }
.is-loaded .hero__lead { opacity: 1; transform: none; transition-delay: .45s; }
.is-loaded .hero__actions { opacity: 1; transform: none; transition-delay: .6s; }
.is-loaded .hero__foot { opacity: 1; transform: none; transition-delay: .8s; }
.is-loaded .hero__visual { opacity: 1; transform: none; transition-delay: .3s; transition-duration: 1.8s; }

/* Monograma 3D */
.hero__visual { display: grid; place-items: center; perspective: 1200px; }
.monogram {
  position: relative;
  width: min(36vw, 440px); aspect-ratio: 1;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.monogram__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line-strong);
  animation: spin 40s linear infinite;
}
.monogram__ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: var(--steel-100); box-shadow: 0 0 18px 4px rgba(201, 214, 230, .6);
}
.monogram__ring--2 { inset: 12%; border-style: dashed; border-color: var(--line); animation-duration: 60s; animation-direction: reverse; }
.monogram__ring--2::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.monogram__svg { width: 54%; overflow: visible; transform: translateZ(60px); }
.monogram__fill { fill: url(#chrome); }
.monogram__shadow { fill: #000; opacity: .55; transform: translate(6px, 12px); filter: blur(10px); }
.monogram__shine { animation: shine 5.5s var(--ease-in-out) infinite; animation-delay: 2s; }
.monogram__glint { transform-box: fill-box; transform-origin: center; animation: glint 4s var(--ease-in-out) infinite; }
@keyframes glint { 0%, 100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes shine {
  0% { transform: rotate(18deg) translateX(0); }
  45%, 100% { transform: rotate(18deg) translateX(460px); }
}
.monogram__caption {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%) translateZ(30px);
  font-size: 11px; letter-spacing: .5em; text-transform: uppercase; color: var(--steel-400);
}

.hero__foot { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(50px, 8vh, 90px); }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__tags li {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300);
  background: rgba(255, 255, 255, .015);
}
.scroll-cue { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--steel-400); }
.scroll-cue span { position: relative; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--steel-100); animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- MARQUEE ---------- */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  overflow: hidden; padding: 28px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 48px); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--steel-400);
  transition: color .4s;
}
.marquee span:nth-of-type(odd) { color: var(--steel-200); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--steel-500); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal genérico ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- SERVICIOS ---------- */
.services { background: linear-gradient(180deg, var(--ink-800), var(--ink-700) 60%, var(--ink-800)); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services__grid .card { padding: 38px 28px 34px; }
.services__grid .card__num { right: 26px; }
.services__grid .card h3 { font-size: 23px; }
@media (max-width: 1200px) { .services__grid { grid-template-columns: 1fr 1fr; } }

.spot { --mx: 50%; --my: 50%; }
.card {
  position: relative;
  padding: 40px 34px 36px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 46, 82, .5), rgba(11, 23, 48, .35));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .7s var(--ease), border-color .5s, opacity 1.1s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 214, 230, .13), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.card::after { /* borde cromado que sigue al mouse */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(230, 238, 247, .8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card.is-in:hover { transform: translateY(-8px); }
.card__num { position: absolute; top: 30px; right: 32px; font-family: var(--f-display); font-size: 15px; color: var(--steel-500); letter-spacing: .1em; }
.card__icon {
  width: 60px; height: 60px; margin-bottom: 36px;
  display: grid; place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(166, 185, 209, .12), rgba(166, 185, 209, .02));
  transition: transform .7s var(--ease), background .5s;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--steel-100); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.06); background: linear-gradient(145deg, rgba(166, 185, 209, .3), rgba(166, 185, 209, .05)); }
.card h3 { font-size: 25px; margin-bottom: 14px; }
.card p { color: var(--steel-300); font-size: 16px; }
.card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.card li { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--steel-300); }

/* ---------- MANIFIESTO ---------- */
.manifesto { padding: clamp(110px, 15vw, 200px) 0; background: var(--ink-800); position: relative; overflow: hidden; }
.manifesto::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: 50%; transform: translateY(-50%);
  border-radius: 50%; border: 1px solid var(--line);
  box-shadow: 0 0 0 80px rgba(166, 185, 209, .015), 0 0 0 160px rgba(166, 185, 209, .01);
}
.manifesto__text {
  margin-top: 34px;
  font-family: var(--f-display);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.22;
  color: var(--white);
  max-width: 1100px;
}
.manifesto__text .w { opacity: .14; transition: opacity .4s; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__body { display: grid; gap: 18px; max-width: 760px; margin-top: 40px; color: var(--steel-300); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.manifesto__close { color: var(--steel-100); font-family: var(--f-accent); font-style: italic; font-size: 1.25em; line-height: 1.4; }
.manifesto__sign { display: flex; align-items: center; gap: 16px; margin-top: 50px; color: var(--steel-400); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }
.manifesto__sign svg { width: 26px; height: 28px; fill: url(#chrome); }

/* ---------- EQUIPO ---------- */
.team { background: linear-gradient(180deg, var(--ink-800), var(--ink-700)); }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.team__grid > * { min-width: 0; }
.team__intro > p:not(.eyebrow) { color: var(--steel-300); font-size: 18px; margin-top: 18px; }
.team__intro .section__title { margin-bottom: 14px; }
.team__card {
  position: relative; padding: clamp(32px, 4vw, 48px);
  border-radius: 22px; border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(26, 46, 82, .55), rgba(7, 15, 32, .6));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
}
.team__card h3 { font-size: 30px; margin-bottom: 18px; }
.team__card > p { color: var(--steel-300); font-size: 16px; margin-bottom: 14px; }
.team__card .team__lead { margin: 26px 0 14px; color: var(--steel-400); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.team__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.team__pillars li {
  display: grid; gap: 6px; padding: 16px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(166, 185, 209, .04);
  font-family: var(--f-display); font-size: 17px; color: var(--white); line-height: 1.2;
}
.team__pillars b { font-family: var(--f-sans); font-weight: 500; font-size: 11px; letter-spacing: .2em; color: var(--steel-400); }
.team__card .team__quote { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-accent); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--steel-100); }
@media (max-width: 1080px) { .team__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .team__pillars { grid-template-columns: 1fr; } }

/* ---------- MÉTODO ---------- */
.method { background: linear-gradient(180deg, var(--ink-800), var(--ink-700)); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.steps__line { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: var(--chrome); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); box-shadow: 0 0 12px rgba(201, 214, 230, .6); }
.step { position: relative; padding-top: 50px; }
.step__dot {
  position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--ink-700); border: 1px solid var(--steel-300);
  transition: background .5s, box-shadow .5s;
}
.step.is-lit .step__dot { background: var(--steel-100); box-shadow: 0 0 0 6px rgba(201, 214, 230, .12), 0 0 22px rgba(201, 214, 230, .7); }
.step__num { display: block; font-family: var(--f-display); font-size: 64px; line-height: 1; margin-bottom: 18px;
  background: var(--chrome-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; transition: opacity .6s; }
.step.is-lit .step__num { opacity: 1; }
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { color: var(--steel-300); font-size: 16px; }

/* ---------- STATS ---------- */
.stats { padding: 80px 0; border-block: 1px solid var(--line); background: var(--ink-900); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 10px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: flex; align-items: flex-start;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 6vw, 84px); line-height: 1;
  background: var(--chrome-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat sup { font-size: .4em; margin: .25em 0 0 .1em; }
.stat p { margin-top: 14px; color: var(--steel-400); font-size: 15px; max-width: 220px; }

/* ---------- ABOUT ---------- */
.about { background: var(--ink-800); }
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  transform-style: preserve-3d;
}
.about__media img { display: block; width: 100%; height: auto; aspect-ratio: 4/3.4; object-fit: cover; object-position: 50% 40%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.about__media.is-in img { transform: scale(1); }
.about__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 150% 0;
  transition: background-position 1.4s var(--ease);
}
.about__media:hover::after { background-position: -50% 0; }
.about__media figcaption {
  position: absolute; left: 20px; bottom: 20px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(7, 15, 32, .6); backdrop-filter: blur(10px); border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-200);
}
.about__copy > p { color: var(--steel-300); font-size: 18px; }
.about__copy > p + p { margin-top: 16px; }
.about__copy > p.about__close { margin-top: 30px; padding-left: 20px; border-left: 1px solid var(--steel-300); font-family: var(--f-accent); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--steel-100); }
.checks { margin-top: 34px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 16px; align-items: center; color: var(--steel-100); }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--chrome);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11.5' fill='none' stroke='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11.5' fill='none' stroke='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- PLANES ---------- */
.plans { background: radial-gradient(80% 60% at 50% 0%, var(--ink-600), var(--ink-800) 70%); }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 44px 36px 36px;
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(26, 46, 82, .55), rgba(7, 15, 32, .6));
  border: 1px solid var(--line);
  transition: transform .7s var(--ease), opacity 1.1s var(--ease);
}
.plan.is-in:hover { transform: translateY(-8px); }
.plan h3 { font-size: 30px; }
.plan__desc { color: var(--steel-400); font-size: 15px; margin: 10px 0 28px; min-height: 48px; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.plan__price span { font-family: var(--f-display); font-size: 38px; color: var(--white); }
.plan__price small { color: var(--steel-400); }
.plan ul { display: grid; gap: 14px; margin-bottom: 36px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: baseline; color: var(--steel-200); font-size: 16px; }
.plan li::before { content: "✦"; font-size: 10px; color: var(--steel-400); }

.plan--featured {
  background: linear-gradient(170deg, rgba(42, 64, 104, .75), rgba(11, 23, 48, .85));
  border-color: transparent;
  transform: translateY(-14px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 80px -30px rgba(166, 185, 209, .35);
}
.plan--featured.is-in { transform: translateY(-14px); }
.plan--featured.is-in:hover { transform: translateY(-22px); }
.plan--featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), #5d7595, #f4f8fd, #7f97b6, #e6eef7, #5d7595);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rotateBorder 6s linear infinite;
}
@keyframes rotateBorder { to { --angle: 360deg; } }
.plan__badge {
  position: absolute; top: -13px; left: 36px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--chrome); color: var(--ink-900);
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- ENCUESTA ---------- */
.survey { background: var(--ink-900); overflow: hidden; isolation: isolate; }
.survey__bg { position: absolute; inset: 0; z-index: -1; }
.survey__bg .aurora--1 { left: 55%; top: 10%; opacity: .4; }
.survey__bg .aurora--2 { left: -5%; bottom: -10%; }
.survey__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.survey__intro { position: sticky; top: 120px; }
.survey__intro > p { color: var(--steel-300); font-size: 18px; max-width: 420px; }
.survey__perks { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.survey__perks li { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.survey__perks b { font-family: var(--f-display); font-weight: 400; font-size: 28px; color: var(--white); min-width: 90px; }
.survey__perks span { color: var(--steel-400); }

.survey__card {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(26, 46, 82, .7), rgba(11, 23, 48, .75));
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  min-height: 600px;
  display: flex; flex-direction: column;
}
.survey__top { margin-bottom: 40px; }
.survey__steps { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.survey__steps button span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .6s var(--ease), opacity .4s; }
.survey__steps button.is-current span { max-width: 160px; opacity: 1; }
.survey__steps button {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-500);
  transition: color .4s; cursor: default;
}
.survey__steps button b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-weight: 500; font-size: 12px; letter-spacing: 0;
  transition: background .4s, color .4s, border-color .4s;
}
.survey__steps button.is-current { color: var(--white); }
.survey__steps button.is-current b { border-color: var(--steel-200); color: var(--white); }
.survey__steps button.is-done { color: var(--steel-300); cursor: pointer; }
.survey__steps button.is-done b { background: var(--chrome); color: var(--ink-900); border-color: transparent; }
.survey__progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.survey__progress span { display: block; height: 100%; width: 0; background: var(--chrome); transition: width .8s var(--ease); }

.survey__form { flex: 1; display: flex; flex-direction: column; }
.survey__viewport { position: relative; flex: 1; }
.survey__step { display: grid; gap: 26px; animation: stepIn .7s var(--ease) both; }
.survey__step.is-leaving { animation: stepOut .35s var(--ease-in-out) both; }
.survey__step.from-left { animation-name: stepInLeft; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); filter: blur(4px); } }
@keyframes stepInLeft { from { opacity: 0; transform: translateX(-40px); filter: blur(4px); } }
@keyframes stepOut { to { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
.survey__step h3 { font-size: clamp(26px, 2.6vw, 34px); }
.survey__step h3 + p { color: var(--steel-400); margin-top: -16px; }

fieldset.field { border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 14px; }
.survey__steps b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Campos con label flotante */
.field { position: relative; display: grid; gap: 10px; }
.field--float input, .field--float textarea, .field--float select {
  width: 100%;
  padding: 26px 0 12px;
  font: inherit; font-size: 17px; font-weight: 400;
  color: var(--white);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  transition: border-color .4s;
  resize: none;
}
.field--float select { appearance: none; cursor: pointer; padding-right: 30px; }
.field--float select option { background: var(--ink-700); color: var(--white); }
.field--float.has-select::after {
  content: ""; position: absolute; right: 6px; bottom: 20px; width: 8px; height: 8px;
  border-right: 1px solid var(--steel-300); border-bottom: 1px solid var(--steel-300); transform: rotate(45deg);
  pointer-events: none;
}
.field--float label {
  position: absolute; left: 0; top: 26px;
  font-size: 17px; color: var(--steel-400);
  pointer-events: none; transform-origin: 0 0;
  transition: transform .45s var(--ease), color .4s;
}
.field--float .bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--chrome); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .6s var(--ease);
}
.field--float input:focus ~ .bar, .field--float textarea:focus ~ .bar, .field--float select:focus ~ .bar { transform: scaleX(1); }
.field--float input:focus ~ label, .field--float input:not(:placeholder-shown) ~ label,
.field--float textarea:focus ~ label, .field--float textarea:not(:placeholder-shown) ~ label,
.field--float select:focus ~ label, .field--float select.filled ~ label {
  transform: translateY(-24px) scale(.72); color: var(--steel-200);
  letter-spacing: .12em; text-transform: uppercase;
}
.field .opt { color: var(--steel-500); font-size: .85em; text-transform: none; letter-spacing: 0; }

.field__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-300); }
.field__error { font-size: 13px; color: #f0a8a8; min-height: 0; height: 0; overflow: hidden; transition: height .3s; }
.field.is-invalid .field__error { height: 20px; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: rgba(240, 168, 168, .6); }
.field.is-invalid { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Chips (múltiple) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 15px; color: var(--steel-200);
  cursor: pointer; user-select: none;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.chip span::before { content: "+"; font-size: 14px; color: var(--steel-400); transition: transform .4s var(--ease), color .3s; }
.chip:hover span { border-color: var(--steel-300); }
.chip input:checked + span { background: var(--chrome); color: var(--ink-900); border-color: transparent; }
.chip input:checked + span::before { transform: rotate(45deg); color: var(--ink-900); }
.chip input:focus-visible + span { outline: 1px solid var(--steel-100); outline-offset: 3px; }
.chip:active span { transform: scale(.96); }

/* Opciones tipo tarjeta (única) */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 12px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  position: relative; display: grid; gap: 4px; height: 100%;
  padding: 18px 18px 18px 46px; border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .015);
  cursor: pointer; transition: border-color .35s, background .35s;
}
.option span::before {
  content: ""; position: absolute; left: 16px; top: 21px; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--steel-400); transition: box-shadow .35s, border-color .35s, background .35s;
}
.option b { font-weight: 500; color: var(--white); font-size: 15.5px; }
.option small { color: var(--steel-400); font-size: 13px; line-height: 1.4; }
.option:hover span { border-color: var(--steel-300); }
.option input:checked + span { border-color: var(--steel-100); background: rgba(166, 185, 209, .1); }
.option input:checked + span::before { background: var(--steel-100); border-color: var(--steel-100); box-shadow: inset 0 0 0 3px var(--ink-700); }
.option input:focus-visible + span { outline: 1px solid var(--steel-100); outline-offset: 3px; }

/* Rango */
.range { display: grid; gap: 14px; }
.range__value { font-family: var(--f-display); font-size: 30px; color: var(--white); }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; border-radius: 2px; outline: none;
  background: linear-gradient(90deg, var(--steel-200) var(--fill, 0%), var(--line-strong) var(--fill, 0%)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--chrome); box-shadow: 0 0 0 6px rgba(201, 214, 230, .12); cursor: grab; transition: transform .3s var(--ease); }
.range input::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
.range input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #c9d6e6; cursor: grab; }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--steel-500); letter-spacing: .08em; }

/* Checkbox consentimiento */
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--steel-300); cursor: pointer; }
.consent input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1px solid var(--steel-400); display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.consent input::after { content: ""; width: 10px; height: 6px; border-left: 1.6px solid var(--ink-900); border-bottom: 1.6px solid var(--ink-900); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease); }
.consent input:checked { background: var(--chrome); border-color: transparent; }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }

/* Resumen */
.summary { display: grid; gap: 0; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary dt { color: var(--steel-400); }
.summary dd { color: var(--white); }

.survey__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
#surveyPrev { visibility: hidden; }
#surveyPrev.is-visible { visibility: visible; }
.btn.is-sending span { opacity: .6; }
.btn.is-sending svg { animation: spinArrow 1s linear infinite; }
@keyframes spinArrow { to { transform: rotate(360deg); } }

.survey__done { flex: 1; display: grid; place-items: center; align-content: center; text-align: center; gap: 20px; padding: 40px 0; animation: stepIn .8s var(--ease) both; }
.survey__done h3 { font-size: clamp(32px, 3.5vw, 46px); }
.survey__done p { color: var(--steel-300); max-width: 420px; }
.check { width: 90px; height: 90px; fill: none; stroke: var(--steel-100); stroke-width: 1.5; stroke-linecap: round; }
.check circle { stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw 1.1s var(--ease) forwards; }
.check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .7s var(--ease) forwards; stroke-width: 2.2; }

/* ---------- FAQ ---------- */
.faq { background: var(--ink-800); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding: 28px 0;
  font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 23px); color: var(--white);
  transition: color .3s, padding .5s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--steel-100); padding-left: 10px; }
.accordion summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .6s var(--ease), background .4s; }
.accordion summary i::before, .accordion summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--steel-100); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.accordion summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion details[open] summary i { transform: rotate(180deg); background: rgba(201, 214, 230, .08); }
.accordion details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.accordion details > div > p { overflow: hidden; color: var(--steel-300); max-width: 620px; }
.accordion details.is-open > div { grid-template-rows: 1fr; }
.accordion details.is-open > div > p { padding-bottom: 28px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; text-align: center;
  background: radial-gradient(70% 90% at 50% 100%, var(--ink-500), var(--ink-800) 70%); }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 46px; }
.cta__mark { position: absolute; width: min(60vw, 520px); height: auto; aspect-ratio: 240/260; top: 50%; left: 50%; transform: translate(-50%, -50%); fill: url(#chrome); opacity: .06; pointer-events: none; }
.cta h2 { font-size: clamp(40px, 6vw, 88px); line-height: 1.05; }

/* ---------- FOOTER ---------- */
.footer { position: relative; padding: 90px 0 0; background: var(--ink-900); border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { margin-top: 22px; color: var(--steel-400); max-width: 280px; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 { font-weight: 500; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-100); margin-bottom: 8px; }
.footer__col a, .footer__col span { color: var(--steel-400); font-size: 15px; transition: color .3s, transform .4s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--white); transform: translateX(4px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 80px; padding: 26px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--steel-500); }
.footer__privacy { color: var(--steel-300); text-decoration: underline; text-underline-offset: 4px; }
.footer__privacy:hover { color: var(--white); }

.analytics-preferences {
  position: fixed;
  inset: auto auto max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 160;
  width: min(390px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink-800);
  box-shadow: 0 12px 36px rgb(0 0 0 / .32);
  color: var(--steel-200);
  font-size: 15px;
  line-height: 1.45;
}
.analytics-preferences h2 { margin-bottom: 8px; color: var(--white); font: 22px/1.2 var(--f-display); }
.analytics-preferences details { margin-top: 10px; }
.analytics-preferences details p { margin-top: 6px; }
.analytics-preferences summary, .analytics-preferences a { color: var(--steel-100); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.analytics-preferences__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.analytics-preferences__actions button { flex: 1; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--white); }
.analytics-preferences__actions button:hover { background: var(--ink-600); }
.analytics-preferences :focus-visible, .footer__privacy:focus-visible { outline: 2px solid var(--steel-200); outline-offset: 2px; }
.to-top:hover { color: var(--white); }
.footer__giant {
  font-family: var(--f-display); font-size: 18.5vw; line-height: .78; letter-spacing: .03em; text-align: center; white-space: nowrap;
  margin-top: 10px; margin-bottom: -3vw;
  background: linear-gradient(180deg, rgba(166, 185, 209, .16), rgba(166, 185, 209, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__giant .wm-a { background: linear-gradient(180deg, rgba(166, 185, 209, .16), rgba(166, 185, 209, 0) 85%); }


/* ---------- REDES SOCIALES ---------- */
:root {
  --ig: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  --li: #0a66c2;
  --wa: #25d366;
  --tg: #229ed9;
}

/* Botón circular (barra lateral y hero) */
.social-btn {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--steel-100);
  border: 1px solid var(--line-strong);
  background: rgba(14, 28, 54, .6);
  backdrop-filter: blur(10px);
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, color .3s, box-shadow .5s;
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  opacity: 0; transform: scale(.4);
  transition: opacity .4s, transform .5s var(--ease);
}
.social-btn--ig::before { background: var(--ig); }
.social-btn--li::before { background: var(--li); }
.social-btn--wa::before { background: var(--wa); }
.social-btn--tg::before { background: var(--tg); }
.social-btn:hover { color: #fff; border-color: transparent; transform: translateY(-3px); }
.social-btn:hover::before { opacity: 1; transform: none; }
.social-btn--ig:hover { box-shadow: 0 10px 30px -8px rgba(214, 36, 159, .6); }
.social-btn--li:hover { box-shadow: 0 10px 30px -8px rgba(10, 102, 194, .7); }
.social-btn--wa:hover { box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6); }
.social-btn--tg:hover { box-shadow: 0 10px 30px -8px rgba(34, 158, 217, .65); }
.social-btn__tip {
  position: absolute; left: calc(100% + 14px); top: 50%;
  padding: 6px 12px; border-radius: 999px;
  background: var(--steel-100); color: var(--ink-900);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-8px, -50%); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.social-btn:hover .social-btn__tip { opacity: 1; transform: translate(0, -50%); }

/* Barra lateral fija */
.social-rail {
  position: fixed; left: 22px; top: 50%; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: translate(-90px, -50%);
  transition: transform 1.2s 1s var(--ease);
}
.is-loaded .social-rail { transform: translate(0, -50%); }
.social-rail__label {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10.5px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--steel-400);
}
.social-rail__line { width: 1px; height: 46px; background: linear-gradient(var(--line-strong), var(--steel-300)); }
@media (max-width: 1359px) { .social-rail { display: none; } }

/* Hero (cuando no hay barra lateral) */
.hero__social { display: none; align-items: center; gap: 12px; }
.hero__social > span { font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--steel-400); margin-right: 4px; }
.hero__social .social-btn { width: 42px; height: 42px; }
@media (max-width: 1359px) { .hero__social { display: flex; } .scroll-cue { display: none; } }

/* Botón grande con logo + texto */
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.social {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 28px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(26, 46, 82, .7), rgba(11, 23, 48, .6));
  backdrop-filter: blur(10px);
  color: var(--white);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.social::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .5s;
}
.social--ig::before { background: var(--ig); }
.social--li::before { background: var(--li); }
.social--wa::before { background: var(--wa); }
.social--tg::before { background: var(--tg); }
.social:hover { border-color: transparent; }
.social:hover::before { opacity: 1; }
.social--ig:hover { box-shadow: 0 18px 44px -14px rgba(214, 36, 159, .7); }
.social--li:hover { box-shadow: 0 18px 44px -14px rgba(10, 102, 194, .8); }
.social--wa:hover { box-shadow: 0 18px 44px -14px rgba(37, 211, 102, .65); }
.social--tg:hover { box-shadow: 0 18px 44px -14px rgba(34, 158, 217, .7); }
.social__icon {
  display: grid; place-items: center; flex: none;
  width: 50px; height: 50px; border-radius: 50%;
  color: var(--ink-900);
  background: var(--chrome);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 16px -6px rgba(0, 0, 0, .6);
  transition: background .4s, color .4s, transform .6s var(--ease);
}
.social__icon svg { width: 22px; height: 22px; }
.social:hover .social__icon { background: #fff; transform: rotate(-10deg) scale(1.05); }
.social--ig:hover .social__icon { color: #d6249f; }
.social--li:hover .social__icon { color: var(--li); }
.social--wa:hover .social__icon { color: #1ebe5b; }
.social--tg:hover .social__icon { color: var(--tg); }
.social__text { display: grid; line-height: 1.15; text-align: left; font-family: var(--f-display); font-size: 20px; }
.social__text small { font-family: var(--f-sans); font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-300); transition: color .4s; }
.social:hover .social__text small { color: rgba(255, 255, 255, .85); }

.cta__social { display: grid; justify-items: center; gap: 22px; margin-top: 6px; }
@media (max-width: 760px) {
  .cta__social .social-row { flex-direction: column; align-items: stretch; width: min(270px, 100%); gap: 12px; }
}

.social-row--stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.social-row--stack .social { padding: 7px 22px 7px 7px; gap: 12px; }
.social-row--stack .social__icon { width: 40px; height: 40px; }
.social-row--stack .social__icon svg { width: 18px; height: 18px; }
.social-row--stack .social__text { font-size: 17px; }
.footer__col .social { color: var(--white); width: auto; }
.footer__col .social .social__icon { color: var(--ink-900); }
.footer__col .social .social__text { color: var(--white); }
.footer__col .social--ig:hover .social__icon { color: #d6249f; }
.footer__col .social--li:hover .social__icon { color: var(--li); }
.footer__col .social--wa:hover .social__icon { color: #1ebe5b; }
.footer__col .social--tg:hover .social__icon { color: var(--tg); }
.footer__col .social:hover { transform: translateY(-3px); color: var(--white); }

.social-row--menu { justify-content: flex-start; opacity: 0; transform: translateY(20px); transition: opacity .6s .5s var(--ease), transform .6s .5s var(--ease); }
.menu-open .social-row--menu { opacity: 1; transform: none; }
/* Menú mobile: redes solo con ícono para que entren las 4 en una fila */
.mobile-menu { overflow-y: auto; justify-content: safe center; }
.social-row--menu { gap: 12px; }
.social-row--menu .social { padding: 6px; gap: 0; }
.social-row--menu .social__text { display: none; }
@media (max-width: 420px) {
  .social-row--menu .social { padding: 6px; }
}


/* ---------- VOLVER ARRIBA ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--steel-100);
  background: rgba(11, 23, 48, .72);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; visibility: hidden;
  transform: translateY(24px) scale(.8);
  transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s, color .4s, box-shadow .5s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top::before {
  content: ""; position: absolute; inset: 5px; border-radius: 50%;
  background: var(--chrome);
  transform: scale(0); transition: transform .5s var(--ease);
}
.back-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.back-top__ring circle { fill: none; stroke-width: 1.5; }
.back-top__track { stroke: var(--line-strong); }
.back-top__fill {
  stroke: var(--steel-100); stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  filter: drop-shadow(0 0 4px rgba(201, 214, 230, .6));
}
.back-top__arrow { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.back-top:hover { color: var(--ink-900); box-shadow: 0 18px 44px -12px rgba(166, 185, 209, .55); }
.back-top:hover::before { transform: scale(1); }
.back-top:hover .back-top__arrow { animation: arrowUp .9s var(--ease) infinite; }
@keyframes arrowUp {
  0% { transform: translateY(0); opacity: 1; }
  45% { transform: translateY(-14px); opacity: 0; }
  46% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.back-top__tip {
  position: absolute; right: calc(100% + 14px); top: 50%;
  padding: 6px 12px; border-radius: 999px;
  background: var(--steel-100); color: var(--ink-900);
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.back-top:hover .back-top__tip { opacity: 1; transform: translate(0, -50%); }
.menu-open .back-top { opacity: 0; visibility: hidden; }
@media (max-width: 760px) {
  .back-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .back-top__tip { display: none; }
}

/* ---------- Responsive ---------- */
.hero__inner > *, .survey__grid > *, .about__grid > *, .faq__grid > *, .section__head--split > * { min-width: 0; }
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { position: absolute; right: -8%; top: 12%; opacity: .35 !important; z-index: -1; }
  .monogram { width: 70vw; max-width: 520px; }
  .services__grid, .plans__grid { grid-template-columns: 1fr 1fr; }
  .plan--featured, .plan--featured.is-in { transform: none; }
  .survey__grid, .faq__grid, .about__grid { grid-template-columns: 1fr; }
  .survey__intro { position: static; }
  .section__head--split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .eyebrow { white-space: normal; letter-spacing: .26em; }
  .hero__lead { font-size: 17px; }
  .services__grid, .plans__grid, .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; padding-left: 34px; }
  .steps__line { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line span { width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(var(--lp, 0)); }
  .step { padding-top: 0; }
  .step__dot { left: -34px; top: 6px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 30px; }
  .scroll-cue { display: none; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- NOTICIAS ---------- */
.news { background: var(--ink-800); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.news__grid--two { grid-template-columns: repeat(2, 1fr); }
.news__more { display: flex; justify-content: center; margin-top: clamp(44px, 5vw, 64px); }
.news .section__head--split { margin-bottom: clamp(44px, 5vw, 70px); }

.news-card { padding: 0; display: flex; flex-direction: column; }
.news-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-500), var(--ink-700));
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
/* Portada sin foto: degradé de la marca (4 variantes según la nota) + monograma de fondo */
.news-card__media--mark { --gx: 25%; --gy: 15%; --rot: 160deg; }
.news-card__media--t1 { --gx: 80%; --gy: 20%; --rot: 200deg; }
.news-card__media--t2 { --gx: 30%; --gy: 90%; --rot: 120deg; }
.news-card__media--t3 { --gx: 85%; --gy: 85%; --rot: 240deg; }
.news-card__media--mark {
  background:
    radial-gradient(80% 110% at var(--gx) var(--gy), rgba(166, 185, 209, .26), transparent 65%),
    linear-gradient(var(--rot), var(--ink-500), var(--ink-800));
}
.news-card__media--mark::after { /* líneas finas, como papel grabado */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(var(--rot), transparent 0 22px, rgba(166, 185, 209, .05) 22px 23px);
}
.news-card__mark {
  position: absolute; right: 9%; top: 50%; width: 30%; height: auto; aspect-ratio: 240 / 260;
  transform: translateY(-50%);
  fill: url(#chrome); opacity: .22; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  transition: transform 1.2s var(--ease), opacity .6s;
}
.news-card:hover .news-card__mark { transform: translateY(-54%) scale(1.04); opacity: .42; }
.news-card__cat {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  padding: 7px 14px; border-radius: 999px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  color: var(--steel-100); background: rgba(5, 11, 24, .55); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
/* Tarjeta sin portada (home): la categoría encabeza el texto */
.news-card--text .news-card__body { padding: 34px 32px 32px; }
.news-card--text .news-card__cat { position: static; align-self: flex-start; margin-bottom: 22px; background: rgba(166, 185, 209, .08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.news-card--text h3 { font-size: 25px; }
.news-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-400);
}
.news-card__meta > * { white-space: nowrap; }
.news-card__meta time { color: var(--steel-200); }
.news-card__meta > * + *::before { content: "·"; margin: 0 12px; color: var(--steel-500); }
.article__head .news-card__meta > :first-child { color: var(--steel-100); }
.news-card h3 { font-size: 23px; line-height: 1.25; margin: 14px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card h3 a { transition: color .3s; }
.news-card:hover h3 a { color: var(--steel-100); }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; } /* toda la tarjeta es clickeable */
.news-card__desc { color: var(--steel-300); font-size: 15.5px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--steel-200); }
.news-card__more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.news-card:hover .news-card__more svg { transform: translateX(6px); }

/* Páginas internas (índice de noticias, nota, 404) */
.news--page, .article { padding-top: clamp(130px, 14vw, 190px); }
.news--page h1.section__title { max-width: 14ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 40px; font-size: 13px; letter-spacing: .08em; color: var(--steel-400); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--white); }
.crumbs span:not([aria-current]) { color: var(--steel-500); }

.article__wrap { max-width: 780px; }
.article__head { margin-bottom: 52px; padding-bottom: 40px; border-bottom: 1px solid var(--line); position: relative; }
.article__head::after { /* filete cromado bajo el título */
  content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 1px; background: var(--chrome);
}
.article__title { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.1; letter-spacing: -.01em; margin: 22px 0 22px; }
.article__lead { font-size: clamp(18px, 2vw, 21px); color: var(--steel-300); line-height: 1.6; }
.article__media { margin: 0 -40px 52px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.prose { font-size: 18px; line-height: 1.8; color: var(--steel-200); }
.prose > * + * { margin-top: 1.4em; }
.prose > p:first-child::first-letter { /* capitular */
  float: left; font-family: var(--f-display); font-size: 3.6em; line-height: .9; padding: .06em .12em 0 0; color: var(--white);
}
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-top: 2.2em; scroll-margin-top: 110px; }
.prose h3 { font-size: 23px; line-height: 1.25; margin-top: 1.9em; scroll-margin-top: 110px; }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose strong { color: var(--white); font-weight: 500; }
.prose a { color: var(--white); background: linear-gradient(var(--steel-300), var(--steel-300)) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.prose a:hover { background-size: 100% 100%; color: var(--ink-900); }
.prose ul, .prose ol { display: grid; gap: .6em; padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before { content: "✦"; position: absolute; left: -1.4em; top: .45em; font-size: 10px; color: var(--steel-400); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--steel-400); }
.prose blockquote { padding: 6px 0 6px 28px; border-left: 2px solid var(--steel-400); font-family: var(--f-accent); font-style: italic; font-size: 1.3em; line-height: 1.5; color: var(--white); }
.prose img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.6em 0; }
.prose code { font-size: .9em; padding: 2px 7px; border-radius: 6px; background: rgba(166, 185, 209, .12); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { color: var(--white); font-weight: 500; }

.article__sources { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.article__sources h2 { font-size: 22px; margin-bottom: 14px; }
.article__sources ul { display: grid; gap: 8px; font-size: 15px; color: var(--steel-400); }
.article__sources a { color: var(--steel-200); text-decoration: underline; text-decoration-color: var(--steel-500); text-underline-offset: 4px; overflow-wrap: anywhere; }
.article__sources a:hover { text-decoration-color: var(--white); color: var(--white); }
.article__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.article__tags li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; letter-spacing: .06em; color: var(--steel-300); }
.article__draft { margin-top: 28px; padding: 14px 18px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--steel-300); font-size: 14px; letter-spacing: .08em; }
.article__related { margin-top: clamp(80px, 10vw, 130px); }
.article__related-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 36px; }
.article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(64px, 8vw, 100px); padding: 40px clamp(24px, 4vw, 52px); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(170deg, rgba(42, 64, 104, .5), rgba(7, 15, 32, .6)); }
.article__cta p { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 30px); color: var(--white); }

@media (max-width: 1080px) { .news__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .article__media { margin-inline: 0; } }
@media (max-width: 760px) {
  .news__grid, .news__grid--two { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
}

/* ---------- Pausa de animaciones fuera de pantalla ----------
   main.js marca con .is-offscreen las secciones que no se ven; así las animaciones infinitas
   (marquee, aurora, borde giratorio, brillos) no consumen CPU/GPU mientras no están visibles. */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .grain { display: none; }
}
