/* ==========================================================================
   Cuantico — Sistema de diseño base
   Tokens, tipografía, layout, componentes compartidos (header, footer,
   botones, formularios, animaciones de entrada).
   ========================================================================== */

/* ---------- Fuentes (locales, licencia OFL) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marca (extraídos del logo original) */
  --brand-deep: #034175;
  --brand: #0e5fa6;
  --brand-mid: #1c86d1;
  --brand-bright: #26aaee;
  --brand-glow: #6ccbff;
  --grad-brand: linear-gradient(135deg, #3db8f5 0%, #1c86d1 48%, #0e5fa6 100%);
  --grad-text: linear-gradient(100deg, #9fdcff 0%, #3db8f5 45%, #1c86d1 100%);

  /* Neutros */
  --void: #081730;
  --ink: #0B1F3A;
  --ink-2: #102a4c;
  --ink-3: #16365f;
  --paper: #F3F5F8;
  --paper-2: #e6ecf4;

  /* Funcionales (solo dentro de UI de producto) */
  --ok: #4fe3a8;
  --warn: #ffb547;
  --risk: #ff7a6b;

  /* Tipografía */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", Georgia, serif;

  --fs-hero: clamp(2.9rem, 7.4vw, 8.25rem);
  --fs-h1: clamp(2.6rem, 6vw, 6.5rem);
  --fs-h2: clamp(2.2rem, 4.6vw, 4.6rem);
  --fs-h3: clamp(1.35rem, 1.9vw, 1.75rem);
  --fs-lead: clamp(1.06rem, 1.2vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-mono: 0.75rem;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --header-h: 76px;

  /* Movimiento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Temas por sección */
.theme-dark {
  --bg: var(--ink);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --fg: #eaf2fc;
  --fg-2: #bccadc;
  --muted: #8193ad;
  --line: rgba(160, 200, 255, 0.12);
  --line-2: rgba(160, 200, 255, 0.24);
  --accent: var(--brand-bright);
  color-scheme: dark;
}
.theme-light {
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: #e9eef5;
  --fg: #061427;
  --fg-2: #23364f;
  --muted: #55667f;
  --line: rgba(6, 20, 39, 0.1);
  --line-2: rgba(6, 20, 39, 0.2);
  --accent: var(--brand);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
::selection { background: var(--brand-bright); color: #001024; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 6px; }
.theme-light :focus-visible { outline-color: var(--brand); }
.theme-light .theme-dark :focus-visible { outline-color: var(--brand-bright); }
[hidden] { display: none !important; }

.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: 12px; left: 12px; z-index: 1000; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #001024; font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 180px); background: var(--bg); color: var(--fg); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }

/* Grano sutil sobre todo el sitio */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2);
}
.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.label::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; }
.label b { color: var(--accent); font-weight: 500; }

.h-display { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; font-weight: 550; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); max-width: 58ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.serif-i {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.02em; padding-right: .06em;
}
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.theme-light .grad-text { background: linear-gradient(100deg, #26aaee 0%, #0e5fa6 55%, #034175 100%); -webkit-background-clip: text; background-clip: text; }

.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 40px 64px; }
.section-head--split .label { grid-column: 1 / -1; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Botones ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px; font-weight: 550; font-size: .98rem; letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover svg.i-arrow { transform: translateX(4px); }
.btn:hover svg.i-arrow-ur { transform: translate(3px, -3px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .9rem; }
.btn--lg { --h: 60px; padding: 0 32px; font-size: 1.05rem; }

.btn--primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.35), 0 12px 32px -12px rgba(38,170,238,.75);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), inset 0 1px 0 rgba(255,255,255,.4), 0 18px 46px -12px rgba(38,170,238,.95); }

.btn--ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--fg-2); }
.btn--ghost .i-play { width: 26px; height: 26px; padding: 7px; border-radius: 50%; background: var(--surface-2); margin-left: -10px; }

.btn--light { color: #041226; background: #fff; box-shadow: 0 12px 30px -14px rgba(255,255,255,.6); }
.btn--light:hover { background: #e9f6ff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 550; color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Iconos ---------- */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pulse dot ---------- */
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--brand-bright); animation: pulse 2.2s var(--ease-out) infinite; }
.pulse-dot--ok { background: var(--ok); }
.pulse-dot--ok::after { border-color: var(--ok); }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Barra de progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-brand); box-shadow: 0 0 12px rgba(38,170,238,.8); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  --ma: #034175; --mb: #26aaee; --wa: #034175; --wb: #26aaee;
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: #eaf2fc; transition: transform .6s var(--ease-out), background-color .4s, color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(11, 31, 58, .72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(160, 200, 255, .1);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-light { color: #061427; }
.site-header.is-light::before { background: rgba(242, 245, 249, .8); border-bottom-color: rgba(6, 20, 39, .08); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; flex: none; padding: 7px 14px; border-radius: 14px; background: #fff; box-shadow: 0 6px 24px -10px rgba(3, 25, 60, .55), inset 0 0 0 1px rgba(255, 255, 255, .6); transition: transform .4s var(--ease-out), box-shadow .4s; }
.brand:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(38, 170, 238, .6), inset 0 0 0 1px #fff; }
.brand svg { height: 34px; width: auto; overflow: visible; }
.brand .sa { stop-color: var(--ma); } .brand .sb { stop-color: var(--mb); }
.brand .wa { stop-color: var(--wa); } .brand .wb { stop-color: var(--wb); }
.brand .mark { transform-box: fill-box; transform-origin: 50% 50%; transition: transform 1.2s var(--ease-out); }
.brand:hover .mark { transform: rotate(-360deg); }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; opacity: .82; transition: opacity .25s, background-color .25s;
}
@media (max-width: 1260px) { .nav__link { padding: 0 10px; font-size: .88rem; } .site-header__inner { gap: 18px; } .nav__list { gap: 0; } }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { opacity: 1; background: rgba(140, 190, 255, .09); }
.site-header.is-light .nav__link:hover, .site-header.is-light .nav__link[aria-expanded="true"] { background: rgba(6, 20, 39, .06); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* Mega menú */
.has-mega { position: static; }
.mega {
  position: absolute; top: calc(100% - 6px); left: 50%; width: min(880px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .35s;
  border-radius: 22px; padding: 10px; color: #eaf2fc;
  background: rgba(14, 38, 70, .92); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(160, 200, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 6px; }
.mega__col { padding: 14px 10px 10px; }
.mega__title { padding: 0 10px 10px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #8193ad; }
.mega__link { display: grid; gap: 2px; padding: 10px; border-radius: 12px; transition: background-color .25s; }
.mega__link:hover { background: rgba(140, 190, 255, .08); }
.mega__link strong { font-weight: 550; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.mega__link span { font-size: .82rem; color: #8193ad; line-height: 1.4; }
.mega__link .tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-bright); border: 1px solid rgba(38,170,238,.4); border-radius: 999px; padding: 1px 7px; }
.mega__feature {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 230px;
  padding: 20px; border-radius: 16px; background: radial-gradient(120% 90% at 80% 0%, rgba(38,170,238,.35), transparent 60%), linear-gradient(160deg, #0b2142, #06101f);
  border: 1px solid rgba(160, 200, 255, .14);
}
.mega__feature canvas, .mega__feature .mega__orb { position: absolute; top: 18px; right: 18px; }
.mega__orb { width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9fdcff, #26aaee 35%, #0e5fa6 70%, #034175); box-shadow: 0 0 60px rgba(38,170,238,.6); }
.mega__orb::before, .mega__orb::after { content: ""; position: absolute; inset: -18px -34px; border-radius: 50%; border: 1px solid rgba(108,203,255,.35); transform: rotate(-28deg); }
.mega__orb::after { inset: -30px -10px; transform: rotate(38deg); border-color: rgba(108,203,255,.18); }
.mega__feature strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.mega__feature p { font-size: .86rem; color: #bccadc; line-height: 1.45; }

/* Burger + menú móvil */
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .25); }
.site-header.is-light .burger { box-shadow: inset 0 0 0 1px rgba(6, 20, 39, .2); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  --ma: #034175; --mb: #26aaee; --wa: #034175; --wb: #26aaee;
  position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(38,170,238,.22), transparent 60%), var(--void); color: #eaf2fc;
  clip-path: circle(0% at calc(100% - 44px) 38px); visibility: hidden; transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition-delay: 0s; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-menu__list a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; border-bottom: 1px solid rgba(160, 200, 255, .1); }
.mobile-menu__list a small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; color: #8193ad; }
.mobile-menu__sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.mobile-menu__sub a { display: inline-flex; padding: 8px 14px; border-radius: 999px; font-size: .9rem; box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .2); }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mobile-menu__list li, .mobile-menu__sub, .mobile-menu__foot { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out); }
.mobile-menu.is-open .mobile-menu__list li, .mobile-menu.is-open .mobile-menu__sub, .mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: .23s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: .33s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: .38s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) { transition-delay: .43s; }
.mobile-menu.is-open .mobile-menu__sub { transition-delay: .48s; }
.mobile-menu.is-open .mobile-menu__foot { transition-delay: .55s; }
body.menu-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav, .nav__login { display: none; }
  .burger { display: inline-block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .header-actions .btn { display: none; }
  .brand svg { height: 30px; }
}

/* ==========================================================================
   Revelados al hacer scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Texto partido en líneas/palabras */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.25s var(--ease-out); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.no-js .split-line > span { transform: none; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { position: relative; overflow: hidden; padding-block: 26px; border-block: 1px solid var(--line); background: var(--bg); }
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-weight: 450; letter-spacing: -.03em; white-space: nowrap; color: var(--fg-2); }
.marquee__row--alt .marquee__item { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--muted); letter-spacing: -.01em; }
.marquee__dot { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9fdcff, #26aaee 45%, #034175); box-shadow: 0 0 16px rgba(38,170,238,.65); flex: none; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ==========================================================================
   Tarjeta con luz que sigue al cursor
   ========================================================================== */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(38, 170, 238, .16), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 203, 255, .75), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ==========================================================================
   Formulario de contacto (compartido)
   ========================================================================== */
.contact { overflow: hidden; overflow: clip; }
.contact__glow { position: absolute; inset: auto -20% -40% auto; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; border-radius: 50%; background: radial-gradient(circle, rgba(38,170,238,.22), transparent 62%); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { margin: 24px 0 28px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--fg-2); }
.contact__list li .i { flex: none; margin-top: 3px; width: 20px; height: 20px; color: var(--brand-bright); }
.contact__meta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 28px 48px; }
.contact__meta div { display: grid; gap: 4px; }
.contact__meta span { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__meta strong { font-weight: 500; }

.form-card {
  position: relative; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 8px; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-size: .85rem; font-weight: 500; color: var(--fg-2); }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(3, 7, 15, .45); color: var(--fg); font-size: 1rem; transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238193ad' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px;
}
.field select option { background: #0a1628; color: #eaf2fc; }
.field select:invalid { color: #6f83a1; }
.field input::placeholder, .field textarea::placeholder { color: #5f7290; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(160, 200, 255, .38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-bright); box-shadow: 0 0 0 4px rgba(38,170,238,.18); background: rgba(3, 7, 15, .7); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--risk); }
.field__error { font-size: .8rem; color: var(--risk); min-height: 0; }
.form__foot { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: .8rem; color: var(--muted); max-width: 34ch; line-height: 1.45; }
.form__submit[disabled] { opacity: .7; pointer-events: none; }
.form__submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.form__submit.is-loading .spinner { display: block; }
.form__submit.is-loading .i-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: center; padding: 32px 8px; }
.form-card.is-sent .form { display: none; }
.form-card.is-sent .form-success { display: grid; gap: 16px; justify-items: center; animation: fadeUp .9s var(--ease-out) both; }
.form-success > svg { width: 84px; height: 84px; }
.form-success .ring { stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw 1.1s var(--ease-out) .1s forwards; }
.form-success .tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s var(--ease-out) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .field--half { grid-column: span 2; } .form__foot .btn { width: 100%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 120px); background: var(--void); color: #eaf2fc; border-top: 1px solid rgba(160, 200, 255, .1); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.footer__brand p { margin-top: 20px; color: #8193ad; max-width: 32ch; font-size: .95rem; }
.footer__brand img { width: 170px; box-sizing: content-box; padding: 14px 20px; border-radius: 16px; background: #fff; }
.footer__col h3 { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8193ad; margin-bottom: 18px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { font-size: .95rem; color: #bccadc; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 28px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .2); color: #bccadc; transition: background-color .3s, color .3s, box-shadow .3s; }
.footer__social a:hover { background: rgba(38,170,238,.15); color: #fff; box-shadow: inset 0 0 0 1px rgba(38,170,238,.6); }
.footer__social svg { width: 18px; height: 18px; }

.footer__word { position: relative; margin-top: clamp(64px, 9vw, 120px); user-select: none; }
.footer__word svg { width: 100%; height: auto; overflow: visible; }
.footer__word .w { fill: url(#footWordGrad); }
.footer__word-mask { position: absolute; inset: 0; pointer-events: none; }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 26px 0 30px; border-top: 1px solid rgba(160, 200, 255, .1); font-size: .85rem; color: #8193ad; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a:hover { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: #bccadc; }
.to-top span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .25); transition: transform .5s var(--ease-out), background-color .3s; }
.to-top:hover span { transform: translateY(-4px); background: rgba(38,170,238,.18); }
.to-top svg { width: 16px; height: 16px; }

@media (max-width: 1080px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px); padding: 14px 20px 14px 16px; border-radius: 16px;
  background: rgba(10, 22, 40, .92); color: #eaf2fc; border: 1px solid rgba(160, 200, 255, .2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  width: max-content; transform: translate(-50%, 140%); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; font-size: .93rem;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .mini-mark { width: 26px; height: 26px; flex: none; }

/* ==========================================================================
   Transición entre páginas
   ========================================================================== */
.curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: grid; place-items: center; visibility: hidden; }
.curtain__panel { position: absolute; inset: 0; background: var(--void); transform: translateY(100%); }
.curtain__panel--b { background: linear-gradient(160deg, #0e5fa6, #034175); }
.curtain__mark { position: relative; width: 64px; opacity: 0; transform: scale(.8); }
.curtain.is-leaving, .curtain.is-entering { visibility: visible; pointer-events: auto; }
.curtain.is-leaving .curtain__panel--b { animation: curtainIn .42s var(--ease-in-out) forwards; }
.curtain.is-leaving .curtain__panel--a { animation: curtainIn .42s var(--ease-in-out) .08s forwards; }
.curtain.is-leaving .curtain__mark { animation: markIn .35s var(--ease-out) .25s forwards; }
.curtain.is-entering .curtain__panel { transform: none; }
.curtain.is-entering .curtain__mark { opacity: 1; transform: none; }
.curtain.is-entering .curtain__panel--a { animation: curtainOut .62s var(--ease-in-out) .05s forwards; }
.curtain.is-entering .curtain__panel--b { animation: curtainOut .62s var(--ease-in-out) .15s forwards; }
.curtain.is-entering .curtain__mark { animation: markOut .4s var(--ease-out) forwards; }
@keyframes curtainIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes curtainOut { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes markIn { to { opacity: 1; transform: none; } }
@keyframes markOut { to { opacity: 0; transform: scale(.9); } }

/* ==========================================================================
   Accesibilidad: movimiento reducido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .curtain { display: none; }
}

/* ---------- Palabras partidas (titulares) ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.split-word > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease-out); transition-delay: var(--d, 0s); }
.serif-i .split-word { padding: .12em .22em .14em 0; margin: -.12em -.22em -.14em 0; }
.is-in .split-word > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .split-word > span { transform: none; } }

/* ---------- Llegada desde otra página (cubre el primer pintado) ---------- */
.is-arriving .curtain { visibility: visible; }
.is-arriving .curtain__panel { transform: none; }
.is-arriving .curtain__mark { opacity: 1; transform: none; }

/* ---------- Chips del formulario ---------- */
.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: .85rem; font-weight: 500; color: var(--fg-2); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: .86rem; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .25s, box-shadow .25s, color .25s; user-select: none; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .25s, box-shadow .25s; }
.chip:hover span { box-shadow: inset 0 0 0 1px rgba(108, 203, 255, .5); color: var(--fg); }
.chip input:checked + span { color: #fff; background: rgba(38, 170, 238, .16); box-shadow: inset 0 0 0 1px var(--brand-bright); }
.chip input:checked + span::before { background: var(--brand-bright) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001024' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.2 4.2L19 7'/></svg>") center / 9px no-repeat; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 2px; }


/* ---------- Ronda 2 del árbitro ---------- */
.theme-dark, .theme-light { color: var(--fg); }
.tone { color: var(--muted); }
.form__note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--fg); }
.form-success .demo-note { font-size: .82rem; color: var(--warn); max-width: 40ch; }
/* Si el JS no carga, la cortina se retira sola */
.is-arriving .curtain { animation: cqFailsafe .01s 2.4s forwards; }
@keyframes cqFailsafe { to { visibility: hidden; } }


/* ---------- Ronda 3 del árbitro ---------- */
.mobile-menu__bar { position: absolute; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.mobile-menu__close { position: relative; width: 44px; height: 44px; border-radius: 50%; color: #eaf2fc; box-shadow: inset 0 0 0 1px rgba(160, 200, 255, .25); }
.mobile-menu__close span { position: absolute; left: 13px; right: 13px; top: 21.5px; height: 1.6px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.mobile-menu__close span + span { transform: rotate(-45deg); }
@media (max-width: 480px) { .mobile-menu .brand svg { height: 30px; } }
/* Respaldo: si el JS no llega a cargar, el contenido se muestra igual */
.js:not(.cq) [data-reveal], .js:not(.cq) .hero [data-hero-in], .js:not(.cq) .ehero [data-hero-in] { animation: cqShow .01s 2.5s forwards; }
.js:not(.cq) .split-line > span { animation: cqShowT .01s 2.5s forwards; }
@keyframes cqShow { to { opacity: 1; transform: none; } }
@keyframes cqShowT { to { transform: none; } }
/* ---------- Fondos de sección (paleta Cuantico) ---------- */
:root { --navy: #0B1F3A; --blue: #1B4F9C; --sky: #3B9AE1; --white: #FFFFFF; --mist: #F3F5F8; }
.bg-white { --bg: #fff; --surface: #f3f5f8; --surface-2: #e8edf4; }
.theme-light.bg-white { background: #fff; }
.bg-blue { --bg: var(--blue); background: radial-gradient(60% 80% at 88% 0%, rgba(59, 154, 225, .5), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(11, 31, 58, .55), transparent 70%), linear-gradient(165deg, #1B4F9C 0%, #153f80 100%); }
.bg-blue { --muted: #c9dcf4; --fg-2: #dbe8f8; --line: rgba(255, 255, 255, .2); --line-2: rgba(255, 255, 255, .34); }
.bg-blue .btn--ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
/* Mega menús de Módulos y Rubros */
.mega--wide { width: min(1080px, calc(100% - 2 * var(--gutter))); }
.mega__grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); }
.mega__col--tight { padding: 14px 6px 10px; display: grid; align-content: start; gap: 1px; }
.mega__col--tight .mega__title { padding: 10px 10px 6px; }
.mega__col--tight .mega__title:first-child { padding-top: 0; }
.mega__item { display: block; padding: 7px 10px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: #dbe8f8; transition: background-color .25s, color .25s, transform .3s var(--ease-out); }
.mega__item:hover, .mega__item:focus-visible { background: rgba(140, 190, 255, .1); color: #fff; transform: translateX(3px); }
@media (max-width: 1260px) { .mega--wide { width: min(960px, calc(100% - 2 * var(--gutter))); } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 95;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: #fff; background: #1fa855; box-shadow: 0 14px 34px -10px rgba(31, 168, 85, .7), 0 0 0 1px rgba(255, 255, 255, .18) inset;
  transition: transform .4s var(--ease-spring), box-shadow .3s;
}
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 40px -12px rgba(31, 168, 85, .8); }
body.menu-open .wa-float { display: none; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 54px; height: 54px; justify-content: center; } }
/* Teléfono comercial */
.nav__phone { display: none; gap: 8px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .02em; opacity: .95; }
.nav__phone svg { width: 16px; height: 16px; color: var(--brand-bright); }
@media (min-width: 1500px) { .nav__phone { display: inline-flex; } }
.cta-phone { margin-top: 18px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cta-phone a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(59, 154, 225, .6); transition: color .25s; }
.cta-phone a:hover { color: var(--brand-glow); }
.bg-blue .cta-phone, .bg-blue .cta-phone a { color: #fff; }
.contact__meta a { transition: color .25s; } .contact__meta a:hover { color: var(--brand-glow); }
.footer__contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.footer__contact a { font-family: var(--font-mono); font-size: .86rem; color: #c3d2e5; transition: color .25s; }
.footer__contact a:hover { color: #fff; }
/* ---------- Menú Módulos: módulo a la izquierda, submódulos a la derecha ---------- */
.mega--mod { width: min(1080px, calc(100% - 2 * var(--gutter))); }
.mmod { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 8px; padding: 12px; max-height: min(74vh, 620px); }
.mmod__l { list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; display: grid; align-content: start; gap: 1px; scrollbar-width: thin; }
.mmod__m, .mmod__all { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; font-size: .93rem; font-weight: 500; color: #dbe8f8; transition: background-color .25s, color .25s; }
.mmod__m::after { content: "›"; opacity: .6; }
.mmod__m:hover, .mmod__m:focus-visible, .mmod__m.is-on { background: rgba(140, 190, 255, .14); color: #fff; }
.mmod__all { margin-top: 6px; color: var(--sky, #3B9AE1); box-shadow: inset 0 0 0 1px rgba(140, 190, 255, .3); }
.mmod__r { overflow-y: auto; padding: 4px 8px 4px 14px; border-left: 1px solid rgba(255, 255, 255, .1); scrollbar-width: thin; }
.mmod__p[hidden] { display: none; }
.mmod__h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 4px 8px 10px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #8193ad; }
.mmod__h a { letter-spacing: 0; text-transform: none; font-family: inherit; font-size: .82rem; color: var(--sky, #3B9AE1); }
.mmod__s { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.mmod__s a { display: block; padding: 7px 10px; border-radius: 10px; font-size: .9rem; color: #dbe8f8; transition: background-color .25s, color .25s, transform .3s var(--ease-out); }
.mmod__s a:hover, .mmod__s a:focus-visible { background: rgba(140, 190, 255, .1); color: #fff; transform: translateX(3px); }
@media (max-width: 1100px) { .mmod { grid-template-columns: 230px minmax(0, 1fr); } .mmod__s { grid-template-columns: 1fr; } }
/* ---------- Selector de idioma ---------- */
.i18n-wait body { opacity: 0; }
.lang { position: relative; display: inline-flex; }
.lang__b { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: inherit; background: transparent; box-shadow: inset 0 0 0 1px currentColor; opacity: .85; transition: opacity .25s, background .25s, transform .3s var(--ease-spring); }
.lang__b:hover, .lang__b[aria-expanded="true"] { opacity: 1; transform: translateY(-1px); background: rgba(127, 150, 190, .16); }
.lang__m { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; min-width: 150px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #fff; color: var(--navy, #0b1f3a); box-shadow: 0 0 0 1px rgba(11, 31, 58, .12), 0 24px 48px -20px rgba(11, 31, 58, .5); }
.lang__m[hidden] { display: none; }
.lang__m button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: .92rem; cursor: pointer; text-align: left; }
.lang__m button:hover { background: #eef3fa; }
.lang__m button[aria-current="true"] { font-weight: 600; }
.lang__m button[aria-current="true"]::after { content: "✓"; color: var(--blue, #1B4F9C); }
.lang-m { display: flex; gap: 8px; margin-top: 18px; }
.lang-m button { flex: 1; padding: 12px; border: 0; border-radius: 12px; font: inherit; color: inherit; background: rgba(127, 150, 190, .16); cursor: pointer; }
.lang-m button[aria-current="true"] { background: var(--blue, #1B4F9C); color: #fff; }