/* ==========================================================================
   AI Solutions UNICORE — hoja de estilos
   Tema único oscuro. Colores de marca en :root.
   ========================================================================== */
:root {
  --noche: #05070F;          /* fondo de página */
  --noche-2: #0B0F22;        /* tarjetas */
  --noche-3: #121838;        /* superficies elevadas */
  --estelar: #F5F7FF;        /* texto principal */
  --orbita: #8A93C7;         /* texto secundario */
  --orbita-2: #B4BBE0;       /* texto secundario sobre tarjetas */
  --ambar: #FFB547;          /* acento */
  --ambar-2: #FFC76B;        /* acento (hover) */
  --linea: rgba(245, 247, 255, .09);
  --linea-2: rgba(245, 247, 255, .16);

  --sans: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --marca: 'Michroma', var(--sans);

  --gutter: clamp(16px, 5vw, 72px);
  --nav-h: 60px;
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noche); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--estelar);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 181, 71, .35); color: var(--estelar); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ambar); color: #140C00;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Etiquetas pequeñas en monoespaciada (sello técnico de la marca) */
.kicker, .label, .sec-name, .tag, .footer-col h4, .lang-code {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Botones y enlaces
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s, color .25s;
}
.btn-primary { background: var(--ambar); color: #140C00; }
.btn-primary:hover { background: var(--ambar-2); transform: translateY(-1px); box-shadow: 0 14px 34px -14px rgba(255, 181, 71, .75); }
.btn-ghost { background: rgba(245, 247, 255, .06); color: var(--estelar); border-color: var(--linea-2); }
.btn-ghost:hover { background: rgba(245, 247, 255, .11); border-color: rgba(245, 247, 255, .3); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-line {
  color: var(--estelar); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid rgba(245, 247, 255, .35); padding-bottom: 2px;
  transition: border-color .25s, color .25s;
}
.link-line:hover { border-color: var(--ambar); color: #fff; }

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding-inline: var(--gutter);
  background: rgba(5, 7, 15, .55);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s;
}
.nav.scrolled { background: rgba(5, 7, 15, .78); border-bottom-color: var(--linea); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--estelar); }
.brand-mark { width: 26px; height: 26px; }
.wordmark { font-family: var(--marca); font-size: .78rem; letter-spacing: .2em; line-height: 1; padding-top: 2px; }
.nav-links { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 38px); }
.nav-links a {
  position: relative; color: var(--orbita); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap;
  padding: 8px 0; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ambar); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--estelar); }
.nav-links a[aria-current="true"] { color: var(--estelar); }
.nav-links a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; justify-self: end; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--linea-2); background: transparent; color: var(--estelar); cursor: pointer;
  transition: background .25s, border-color .25s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(245, 247, 255, .08); border-color: rgba(245, 247, 255, .3); }
.lang-code { font-size: .72rem; letter-spacing: .1em; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px;
  border-radius: 16px; background: rgba(12, 16, 36, .96); border: 1px solid var(--linea-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--estelar);
  text-align: start; font-size: .95rem; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(245, 247, 255, .08); outline: none; }
.lang-menu button[aria-checked="true"]::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ambar); flex: none; }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea-2);
  background: transparent; cursor: pointer; place-items: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  content: ''; display: block; width: 18px; height: 1.5px; background: var(--estelar); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 40; overflow: auto;
  display: flex; flex-direction: column; gap: 34px;
  padding: 36px var(--gutter) 48px;
  background: rgba(5, 7, 15, .94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.mobile-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-links a {
  color: var(--estelar); text-decoration: none; font-size: 1.9rem; font-weight: 600; letter-spacing: -.03em;
  padding: 10px 0; border-bottom: 1px solid var(--linea);
}
.mobile-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-langs button, .footer-langs button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linea-2); background: transparent;
  color: var(--orbita-2); cursor: pointer; font-size: .92rem;
}
.mobile-langs button[aria-current="true"] { border-color: var(--ambar); color: var(--estelar); }
.mobile-menu .btn { align-self: flex-start; }

/* --------------------------------------------------------------------------
   Escena principal: objeto 3D fijo mientras los capítulos pasan
   -------------------------------------------------------------------------- */
.stage { position: relative; height: 640vh; }
.stage-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--noche);
}
.glow {
  position: absolute; left: 50%; top: 50%; width: 92vmin; height: 92vmin; pointer-events: none;
  transform: translate(calc(-50% + var(--glow-x, 0px)), calc(-50% + var(--glow-y, 0px)));
  background: radial-gradient(closest-side, rgba(255, 181, 71, .17), rgba(138, 147, 199, .07) 46%, transparent 72%);
  filter: blur(28px);
  transition: transform .9s var(--ease);
}
#core3d { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-fallback {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); transform: translate(-50%, -56%);
  pointer-events: none;
}
/* velo inferior para que el texto siempre se lea sobre el objeto */
.stage-sticky::after {
  content: ''; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 7, 15, .92), rgba(5, 7, 15, .5) 45%, transparent);
}

.chapter {
  position: absolute; z-index: 3; inset-inline-start: var(--gutter);
  width: min(700px, calc(100% - 2 * var(--gutter)));
  opacity: 0; visibility: hidden; will-change: opacity, transform;
}
.ch-hero { bottom: clamp(56px, 11vh, 120px); }
.ch-hero h1 {
  margin-top: 18px; font-weight: 700; font-size: min(clamp(2.6rem, 6.4vw, 5.8rem), 10.5vh); line-height: .96; letter-spacing: -.04em; overflow-wrap: anywhere;
}
.ch-hero .sub { margin-top: 22px; max-width: 52ch; color: var(--orbita-2); font-size: min(clamp(1rem, 1.35vw, 1.22rem), 2.4vh); line-height: 1.5; }
.ch-hero .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; }
.kicker { color: var(--ambar); }

.ch-side { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; width: min(480px, calc(100% - 2 * var(--gutter))); }
.ch-side .label { color: var(--ambar); }
.ch-side h2 { margin-top: 16px; font-size: min(clamp(1.9rem, 3.5vw, 3.1rem), 7vh); }
.ch-side p:not(.label):not(.note):not(.tag) { margin-top: 18px; color: var(--orbita-2); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 46ch; }
.ch-side .note {
  margin-top: 22px; padding-inline-start: 14px; border-inline-start: 2px solid var(--ambar);
  font-weight: 500; color: var(--estelar);
}
.ch-side .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 7px 12px;
  border-radius: 999px; border: 1px solid var(--linea-2); color: var(--orbita-2); font-size: .68rem; letter-spacing: .12em;
}
.ch-side .tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ambar); }

.stage-dots {
  position: absolute; z-index: 3; inset-inline-end: 26px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
}
.stage-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 247, 255, .22);
  transition: background .3s, transform .3s var(--ease);
}
.stage-dots span.on { background: var(--ambar); transform: scale(1.35); }

.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; color: var(--orbita); text-decoration: none;
  font-size: .8rem; font-weight: 500; letter-spacing: .02em; transition: opacity .4s;
}
.scroll-hint svg { animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.anchor { position: absolute; left: 0; top: calc((100% - 100vh) * var(--p)); width: 1px; height: 1px; }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(96px, 14vh, 170px) 0; scroll-margin-top: var(--nav-h); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-name { color: var(--ambar); }
.sec-title { margin-top: 14px; font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4.6rem); letter-spacing: -.04em; line-height: 1; }
.sec-intro { margin-top: 18px; color: var(--orbita-2); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 52ch; }

/* Productos */
.products { display: grid; gap: 22px; }
.product, .request {
  border-radius: var(--radius); border: 1px solid var(--linea);
  background: linear-gradient(180deg, #0E1328 0%, var(--noche-2) 100%);
}
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 64px);
  overflow: hidden; position: relative;
}
.product::before {
  content: ''; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 181, 71, .14), transparent 70%); filter: blur(20px);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 181, 71, .12); color: var(--ambar); font-family: var(--mono); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 4px rgba(255, 181, 71, .18); }
.product-name { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; }
.product-logo { display: block; height: clamp(44px, 5vw, 60px); width: auto; max-width: 100%; }
.badge-live { background: var(--ambar); color: #140C00; }
.badge-live::before { background: #140C00; box-shadow: 0 0 0 4px rgba(20, 12, 0, .12); }
.product-alt .product-copy { order: 2; }
.product-alt .product-visual { order: 1; }
.product-alt::before { inset: auto auto -40% -10%; }
.product-alt .pos { transform: rotateY(10deg) rotateX(5deg); }
.product-alt:hover .pos { transform: rotateY(4deg) rotateX(2deg); }
.pos .pos-btn-paju { background: #0E3B36; color: #fff; }
.book-days { display: flex; justify-content: space-between; gap: 4px; margin: 2px 0 12px; }
.book-days span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; color: #3A4270; }
.book-days .on { background: #0B0F22; color: #fff; }
.book-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.book-slots span { padding: 8px 0; text-align: center; border: 1px solid #E6E9F4; border-radius: 10px; font-family: var(--mono); font-size: .8rem; color: #3A4270; }
.book-slots .on { border-color: var(--ambar); background: rgba(255, 181, 71, .2); color: #0B0F22; font-weight: 600; }
.product-copy > p:not(.badge) { margin-top: 16px; color: var(--orbita-2); font-size: 1.08rem; max-width: 42ch; }
.product-copy .btn { margin-top: 28px; }
.product-visual { position: relative; display: grid; place-items: center; perspective: 1200px; }
.pos {
  width: min(100%, 340px); padding: 18px 18px 16px; border-radius: 20px;
  background: #FAFBFF; color: #0B0F22;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .5) inset;
  transform: rotateY(-10deg) rotateX(5deg); transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.product:hover .pos { transform: rotateY(-4deg) rotateX(2deg); }
.pos-head { display: flex; gap: 6px; margin-bottom: 16px; }
.pos-dot { width: 8px; height: 8px; border-radius: 50%; background: #D5D9EA; }
.pos-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #E6E9F4; font-size: .95rem; }
.pos-row span:last-child { font-family: var(--mono); font-size: .88rem; color: #3A4270; }
.pos-total { border-bottom: 0; font-weight: 600; padding-top: 14px; }
.pos-total span:last-child { color: #0B0F22; font-weight: 500; }
.pos-btn {
  margin-top: 12px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 600; font-size: .95rem;
  background: var(--ambar); color: #140C00;
}

/* Solicitud */
.request { padding: clamp(28px, 4.5vw, 64px); }
.request-head { max-width: 640px; margin-bottom: 34px; }
.request-head h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; }
.request-head p { margin-top: 12px; color: var(--orbita-2); font-size: 1.08rem; }
.form { position: relative; display: grid; gap: 18px; max-width: 880px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .88rem; color: var(--orbita-2); font-weight: 500; }
.field input, .field select, .field textarea, .form-fallback textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--linea-2); background: rgba(245, 247, 255, .04); color: var(--estelar);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(138, 147, 199, .7); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ambar); background: rgba(245, 247, 255, .06);
  box-shadow: 0 0 0 4px rgba(255, 181, 71, .16);
}
.field .invalid { border-color: #F08A7E; box-shadow: 0 0 0 4px rgba(240, 138, 126, .14); }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A93C7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-inline-end: 42px;
}
html[dir="rtl"] .field select { background-position: left 14px center; }
.field select option { background: var(--noche-2); color: var(--estelar); }
.field textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 6px; }
.form-privacy { color: var(--orbita); font-size: .86rem; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--orbita-2); }
.form-status.ok { color: var(--ambar); }
.form-status.err { color: #F7A89F; }
.form-fallback { display: grid; gap: 14px; padding: 18px; border-radius: 18px; border: 1px dashed var(--linea-2); background: rgba(245, 247, 255, .03); }
.form-fallback textarea { font-family: var(--mono); font-size: .86rem; resize: vertical; }
.form-fallback .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }

/* Contacto */
.contact { text-align: center; }
.contact::before {
  content: ''; position: absolute; inset: auto 0 0; height: 70%; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 100%, rgba(255, 181, 71, .13), transparent 70%);
}
.contact .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .sec-title { font-size: clamp(3rem, 8vw, 7rem); }
.contact .sec-intro { max-width: none; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 30px; }
.mail {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: 100%;
  padding: 6px 6px 6px 18px; border-radius: 999px; border: 1px solid var(--linea-2); background: rgba(245, 247, 255, .04);
}
.mail-addr {
  font-family: var(--mono); font-weight: 500; font-size: clamp(.95rem, 1.5vw, 1.15rem); letter-spacing: 0; line-height: 1.2;
  color: var(--estelar); text-decoration: none; padding: 8px 10px 8px 0; overflow-wrap: anywhere; transition: color .25s;
}
.mail-addr:hover { color: var(--ambar-2); }
.copy-ico {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--linea-2); background: transparent; color: var(--orbita-2); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.copy-ico:hover { background: rgba(245, 247, 255, .08); color: var(--estelar); }
.copy-ico svg { grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.copy-ico .ico-ok { opacity: 0; transform: scale(.6); color: var(--ambar); }
.copy-ico.done { border-color: var(--ambar); }
.copy-ico.done svg:first-child { opacity: 0; transform: scale(.6); }
.copy-ico.done .ico-ok { opacity: 1; transform: scale(1); }
.mail-choose { position: relative; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ambar); color: #140C00; text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background .25s, transform .35s var(--ease);
}
.mail-btn:hover, .mail-btn[aria-expanded="true"] { background: var(--ambar-2); }
.mail-btn svg { transition: transform .35s var(--ease); }
.mail-btn:hover svg { transform: translateX(3px); }
.mail-btn[aria-expanded="true"] svg { transform: rotate(90deg); }
html[dir="rtl"] .mail-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .mail-btn:hover svg { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .mail-btn[aria-expanded="true"] svg { transform: scaleX(-1) rotate(90deg); }
.mail-menu {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); min-width: 230px; padding: 8px; z-index: 5;
  border-radius: 18px; background: rgba(12, 16, 36, .97); border: 1px solid var(--linea-2); text-align: start;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mail-menu-title { padding: 6px 12px 8px; font-size: .74rem; color: var(--orbita); }
.mail-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px;
  color: var(--estelar); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s;
}
.mail-menu a::after { content: '\2192'; color: var(--orbita); font-weight: 400; }
html[dir="rtl"] .mail-menu a::after { content: '\2190'; }
.mail-menu a:hover, .mail-menu a:focus-visible { background: rgba(245, 247, 255, .08); outline: none; }
.contact-where { color: var(--orbita); font-size: .95rem; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--linea); padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-tag { margin-top: 18px; color: var(--orbita); max-width: 30ch; }
.footer-col h4 { color: var(--orbita); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--orbita-2); text-decoration: none; transition: color .25s; }
.footer-col a:hover { color: var(--estelar); }
.footer-langs { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.footer-langs button { padding: 6px 12px; font-size: .86rem; }
.footer-langs button[aria-current="true"] { border-color: var(--ambar); color: var(--estelar); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--linea);
  color: var(--orbita); font-size: .86rem;
}

/* --------------------------------------------------------------------------
   Idiomas: tipografías y ajustes por escritura
   -------------------------------------------------------------------------- */
html[lang^="zh"] body, html[lang^="zh"] input, html[lang^="zh"] select, html[lang^="zh"] textarea, html[lang^="zh"] button:not(.lang-btn) {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', var(--sans);
}
html[lang="hi"] body, html[lang="hi"] input, html[lang="hi"] select, html[lang="hi"] textarea, html[lang="hi"] button:not(.lang-btn) {
  font-family: 'Noto Sans Devanagari', 'Nirmala UI', 'Mangal', 'Kohinoor Devanagari', var(--sans);
}
html[lang="ar"] body, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea, html[lang="ar"] button:not(.lang-btn) {
  font-family: 'Noto Sans Arabic', 'Segoe UI', 'Geeza Pro', 'Tahoma', var(--sans);
}
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] .mobile-links a { letter-spacing: 0; line-height: 1.18; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] .mobile-links a { letter-spacing: -.01em; line-height: 1.22; }
html[lang="ar"] *:not(.wordmark) { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.25; }
html[lang="ar"] .ch-hero h1 { font-size: clamp(2.4rem, 5.6vw, 5rem); }
html[lang="ar"] .kicker, html[lang="ar"] .label, html[lang="ar"] .sec-name, html[lang="ar"] .footer-col h4 { font-family: inherit; font-size: .86rem; text-transform: none; }

/* --------------------------------------------------------------------------
   Pantallas medianas y móviles
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product-alt .product-copy { order: 1; }
  .product-alt .product-visual { order: 2; }
  .product-alt::before { inset: auto -10% -40% auto; }
  .product-visual { margin-top: 8px; }
  .pos { transform: rotateY(-6deg) rotateX(3deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lang { display: none; }
  .stage { height: 580vh; }
  .stage-sticky::after { height: 62%; background: linear-gradient(to top, rgba(5, 7, 15, .96) 20%, rgba(5, 7, 15, .6) 55%, transparent); }
  .chapter, .ch-side { inset-inline: var(--gutter); width: auto; top: auto; bottom: max(9vh, 64px); display: block; }
  .ch-hero h1 { font-size: min(clamp(2.3rem, 11vw, 3.4rem), 6.5vh); }
  .ch-hero .sub { font-size: .98rem; }
  .ch-hero .actions { margin-top: 24px; }
  .ch-side h2 { font-size: clamp(1.7rem, 7.2vw, 2.4rem); }
  .ch-side p:not(.label):not(.note):not(.tag) { font-size: .98rem; }
  .stage-dots { display: none; }
  .core-fallback { width: 120vw; max-width: none; transform: translate(-50%, -85%); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .mobile-links a { font-size: 1.7rem; }
}
@media (max-width: 420px) {
  .btn { padding: 13px 20px; font-size: .94rem; }
  .ch-hero .actions { gap: 12px 18px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .ch-hero { bottom: 40px; }
  .ch-hero h1 { margin-top: 12px; }
  .ch-hero .sub { margin-top: 14px; }
  .ch-hero .actions { margin-top: 18px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .ch-hero .sub { display: none; }
}

/* --------------------------------------------------------------------------
   Sin JavaScript: todo visible y en orden
   -------------------------------------------------------------------------- */
html:not(.js) .stage { height: auto; }
html:not(.js) .stage-sticky { position: static; height: auto; padding: calc(var(--nav-h) + 80px) 0 60px; }
html:not(.js) .stage-sticky::after, html:not(.js) #core3d, html:not(.js) .glow, html:not(.js) .stage-dots, html:not(.js) .scroll-hint { display: none; }
html:not(.js) .core-fallback { display: block !important; position: static; margin: 0 auto 40px; transform: none; }
html:not(.js) .chapter, html:not(.js) .ch-side { position: static; opacity: 1; visibility: visible; display: block; width: min(720px, 100% - 2 * var(--gutter)); margin: 0 auto 64px; }
html:not(.js) .anchor { position: static; }

/* --------------------------------------------------------------------------
   Menos movimiento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
