/* Orby Technologic · Landing
   Tokens y componentes según 01-ux.md. Mobile-first: sm 600, md 768, lg 1024, xl 1280. */

/* Plus Jakarta Sans autoalojada (fuente variable 200–800, SIL OFL 1.1: /assets/fonts/OFL.txt).
   Evita la hoja CSS bloqueante de terceros; el subset latin se precarga en el <head>. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  /* Color (tema claro pastel · 01-ux-v2.md §1) */
  --c-bg: #F4F5FB;
  --c-bg-2: #EEF1FB;
  --c-glass: rgba(255, 255, 255, .55);
  --c-glass-strong: rgba(255, 255, 255, .62);
  --c-glass-max: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .62));
  --c-glass-border: rgba(255, 255, 255, .72);
  --c-glass-hi: inset 0 1px 0 rgba(255, 255, 255, .9);
  --c-field-border: #737B91;
  --c-primary: #4338CA;
  --c-primary-hover: #3730A3;
  --c-primary-active: #312E81;
  --c-secondary: #6D28D9;
  --c-text: #1E1B3A;
  --c-text-2: #3F4561;
  --c-text-3: #525A70;
  --c-success: #047857;
  --c-error: #B91C1C;
  --c-on-primary: #FFFFFF;
  --c-focus: #4338CA;
  --c-orbit: #8DB255;
  --grad-accent: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);

  /* Tipografía */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: clamp(.8125rem, .79rem + .1vw, .875rem);
  --fs-sm: clamp(.875rem, .85rem + .15vw, .9375rem);
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .45vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.3rem + 3.8vw, 3.75rem);

  /* Espaciado */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --gutter: 16px;
  --gap: 16px;

  /* Radios y sombras */
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(30, 27, 58, .06), 0 8px 24px rgba(67, 56, 202, .08);
  --sh-2: 0 2px 6px rgba(30, 27, 58, .08), 0 20px 48px rgba(67, 56, 202, .16);
  --sh-glow: 0 8px 24px rgba(67, 56, 202, .32);
  --blur-1: 14px;
  --blur: 20px;
  --blur-3: 24px;

  /* Movimiento */
  --dur-1: 150ms; --dur-2: 250ms; --dur-3: 350ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Fondo vivo: blobs pastel que refracta el vidrio (01-ux-v2.md §2; alphas reforzadas en iteración 2 por pedido de más glass, contraste re-verificado) */
body::before, body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(45vmax 45vmax at 88% -8%, rgba(196, 181, 253, .70), transparent 70%),
    radial-gradient(40vmax 40vmax at -8% 28%, rgba(147, 197, 253, .62), transparent 70%),
    radial-gradient(38vmax 38vmax at 75% 108%, rgba(134, 239, 172, .58), transparent 70%);
}
body::after {
  background:
    radial-gradient(32vmax 32vmax at 92% 52%, rgba(165, 180, 252, .58), transparent 70%),
    radial-gradient(30vmax 30vmax at 20% 85%, rgba(249, 168, 212, .42), transparent 70%),
    radial-gradient(26vmax 26vmax at 45% 42%, rgba(167, 243, 208, .48), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: bg-drift 40s var(--ease-in-out) infinite alternate; }
  body::after { animation: bg-drift-2 55s var(--ease-in-out) infinite alternate; }
}
@keyframes bg-drift { to { transform: translate3d(-2%, 2%, 0) scale(1.04); } }
@keyframes bg-drift-2 { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }

img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; overflow-wrap: anywhere; color: var(--c-text); }
h1 { font-size: var(--fs-h1); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul[role="list"], :where(ol.timeline) { list-style: none; margin: 0; padding: 0; }
a { color: var(--c-primary); }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--success { color: var(--c-success); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--c-primary); color: var(--c-on-primary); font-weight: 700;
  padding: 12px 16px; border-radius: var(--r-md); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 800px; }
@media (min-width: 768px) { :root { --gutter: 24px; --gap: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

.section { padding-block: clamp(64px, 6vw + 32px, 120px); }
.band { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .32) 64px, rgba(255, 255, 255, .32) calc(100% - 64px), rgba(255, 255, 255, 0) 100%); }
section[id] { scroll-margin-top: 88px; }

.eyebrow {
  font-size: var(--fs-xs); line-height: 1.4; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--c-secondary);
  margin-bottom: var(--sp-3);
}
.section-head { margin-bottom: var(--sp-7); }
.section-intro { margin-top: var(--sp-4); font-size: var(--fs-lg); line-height: 1.6; color: var(--c-text-2); max-width: 56ch; }
.grad {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 14px 24px; border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-base); line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-1), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: var(--fs-sm); }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { background: var(--c-primary-hover); transform: translateY(-1px); box-shadow: var(--sh-glow); }
.btn--primary:active { background: var(--c-primary-active); transform: translateY(0); }
/* G1 (vidrio) compartido: botón secundario y toggle de menú */
.btn--secondary, .menu-toggle {
  background: var(--c-glass); border: 1px solid rgba(67, 56, 202, .30); color: var(--c-text);
  -webkit-backdrop-filter: blur(var(--blur-1)) saturate(160%);
  backdrop-filter: blur(var(--blur-1)) saturate(160%);
  box-shadow: var(--c-glass-hi), inset 0 -1px 0 rgba(255, 255, 255, .25), var(--sh-1);
}
.btn--secondary { font-weight: 600; }
.btn--secondary:hover, .menu-toggle:hover { border-color: rgba(67, 56, 202, .55); background: rgba(255, 255, 255, .80); }
.btn--secondary:active, .menu-toggle:active { background: rgba(255, 255, 255, .95); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary:disabled:hover { background: var(--c-primary); }

.text-link { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

.card-cta {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  margin-top: auto; padding-top: var(--sp-4);
  color: var(--c-primary); font-weight: 600; text-decoration: none;
}
.card-cta .icon { width: 20px; height: 20px; transition: transform var(--dur-2) var(--ease-out); }
.card-cta:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-cta:hover .icon { transform: translateX(3px); }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2), border-color var(--dur-2);
}
/* El vidrio del header abierto va en ::before: si el propio header tuviera backdrop-filter
   sería "backdrop root" y el blur del panel .site-nav (hijo) no vería la página. */
.site-header.menu-open { border-bottom-color: rgba(30, 27, 58, .08); }
.site-header.menu-open::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
}
.site-header.is-scrolled:not(.menu-open) {
  background: var(--c-glass-strong);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 24px rgba(46, 42, 90, .08);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--c-text); text-decoration: none; font-weight: 700; min-height: 44px; margin-right: auto; }
.brand-glyph { width: 28px; height: 28px; }
.brand-name { font-size: var(--fs-base); white-space: nowrap; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: var(--r-md); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.header-cta { display: none; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--c-text-2); text-decoration: none; font-weight: 500; position: relative; }
.nav-list a:hover, .nav-list a[aria-current] { color: var(--c-text); }

/* Panel móvil (<1024) */
@media (max-width: 1023.98px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
    padding: var(--sp-3) var(--gutter) var(--sp-5);
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
    backdrop-filter: blur(var(--blur)) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, .75);
    box-shadow: var(--sh-2);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list a { display: flex; align-items: center; min-height: 52px; font-size: var(--fs-lg); border-bottom: 1px solid rgba(30, 27, 58, .08); }
  .nav-cta { width: 100%; margin-top: var(--sp-4); }
}
@media (min-width: 600px) and (max-width: 1023.98px) { .header-cta { display: inline-flex; } }

/* Sin JavaScript: sin botón; navegación como lista estática. */
@media (scripting: none) and (max-width: 1023.98px) {
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; }
  .menu-toggle, .header-cta { display: none; }
  .site-nav { position: static; visibility: visible; opacity: 1; transform: none; width: 100%; padding: 0 0 var(--sp-4); background: none; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-list a { min-height: 44px; font-size: var(--fs-base); }
}

@media (min-width: 1024px) {
  .menu-toggle, .header-cta { display: none; }
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .nav-list { display: flex; gap: 28px; }
  .nav-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); }
  .nav-list a[aria-current]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: var(--grad-accent); border-radius: 2px;
  }
}

/* ---------- Hero ---------- */
.hero { padding-block: 24px 64px; }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.hero-copy .lead { margin-top: var(--sp-4); font-size: var(--fs-lg); line-height: 1.6; color: var(--c-text-2); max-width: 62ch; }
.hero-ctas { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.trust { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--c-text-2); }
.trust .icon { width: 20px; height: 20px; margin-top: 2px; }
.hero-visual { display: flex; justify-content: center; }
.hero-orb { position: relative; display: grid; place-items: center; }
.hero-orb::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(187, 247, 208, .75) 0%, rgba(196, 181, 253, .70) 45%, transparent 70%);
  filter: blur(24px);
}
.hero-ring { display: none; }
.orbit--hero { width: 200px; height: auto; position: relative; z-index: 1; }

@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 768px) {
  .hero { padding-block: 48px 80px; }
  .orbit--hero { width: 240px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 32px 96px; }
  .hero-grid { grid-template-columns: 7fr 5fr; min-height: min(88vh, 760px); }
  .hero-orb {
    width: 380px; height: 380px; border-radius: 50%;
    /* G3 */
    background: var(--c-glass-max);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 6px rgba(30, 27, 58, .06), 0 24px 60px rgba(67, 56, 202, .16);
    -webkit-backdrop-filter: blur(var(--blur-3)) saturate(180%);
    backdrop-filter: blur(var(--blur-3)) saturate(180%);
  }
  .hero-ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .orbit--hero { width: 260px; }
}
@media (min-width: 1280px) { .orbit--hero { width: 300px; } }

/* ---------- Grids y tarjetas ---------- */
.grid { display: grid; gap: var(--gap); }
.card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: 24px; border-radius: var(--r-lg);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), background-color var(--dur-2), box-shadow var(--dur-2);
}
/* G1 (vidrio) compartido: tarjetas y FAQ */
.card, .faq details {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  box-shadow: var(--c-glass-hi), inset 0 -1px 0 rgba(255, 255, 255, .25), var(--sh-1);
  -webkit-backdrop-filter: blur(var(--blur-1)) saturate(160%);
  backdrop-filter: blur(var(--blur-1)) saturate(160%);
}
@media (max-width: 767.98px) {
  .card, .faq details, .btn--secondary, .menu-toggle { -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%); }
}
.card p, .card dd { color: var(--c-text-2); }
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(67, 56, 202, .28);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--c-glass-hi), var(--sh-2);
}
@media (min-width: 1024px) { .card { padding: 32px; } }
.icon--card { width: 28px; height: 28px; color: var(--c-primary); }

/* Beneficios */
.benefit { display: flex; flex-direction: column; gap: var(--sp-3); }
.benefit p { color: var(--c-text-2); }
.icon-circle {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 231, 255, .9), rgba(237, 233, 254, .7));
  border: 1px solid var(--c-glass-border); box-shadow: var(--c-glass-hi), var(--sh-1); color: var(--c-primary);
}
.icon-circle .icon { width: 28px; height: 28px; }
@media (min-width: 600px) { .grid-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-benefits { grid-template-columns: repeat(4, 1fr); } }

/* Servicios */
.pb { margin: 0; display: grid; gap: var(--sp-1); }
.pb dt, .case-dl dt {
  font-size: var(--fs-xs); line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-text-3); margin-top: var(--sp-2);
}
.pb dd, .case-dl dd { margin: 0; }
@media (min-width: 768px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-services { grid-template-columns: repeat(3, 1fr); } }

/* Soluciones */
.chip {
  align-self: flex-start; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); line-height: 1.4; font-weight: 600;
  background: rgba(67, 56, 202, .10); border: 1px solid rgba(67, 56, 202, .30); color: #3730A3;
}
@media (min-width: 600px) { .grid-solutions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-solutions { grid-template-columns: repeat(3, 1fr); } }
.center-link { margin-top: var(--sp-6); text-align: center; }
.center-link .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Proceso */
.timeline { position: relative; display: grid; gap: var(--sp-6); padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: var(--grad-accent); border-radius: 2px;
}
.step { position: relative; }
.step-node {
  position: absolute; left: -36px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-orbit); box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(141, 178, 85, .30);
}
.step h3 { display: flex; flex-direction: column; gap: var(--sp-1); }
.step-num { color: var(--c-secondary); font-weight: 700; font-size: var(--fs-h3); font-variant-numeric: tabular-nums; }
.step p { margin-top: var(--sp-2); color: var(--c-text-2); }
.note { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-7); font-size: var(--fs-sm); color: var(--c-text-2); max-width: 62ch; }
.note .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--c-primary); }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); padding-left: 0; padding-top: 40px; }
  .timeline::before { left: 7px; right: 7px; top: 6px; bottom: auto; width: auto; height: 2px; }
  .step-node { left: 0; top: -40px; }
}

/* Nosotros */
.about-grid { display: grid; gap: var(--sp-7); }
.about-copy p { margin-top: var(--sp-4); color: var(--c-text-2); max-width: 62ch; }
.about-copy h2 + p { margin-top: var(--sp-5); }
@media (min-width: 600px) {
  .grid-diff { grid-template-columns: repeat(2, 1fr); }
  .diff--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Casos */
.badge {
  align-self: flex-start; padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(124, 58, 237, .10); border: 1px solid rgba(124, 58, 237, .32);
  color: #5B21B6; font-size: var(--fs-xs); line-height: 1.4; font-weight: 600;
}
.case-dl { margin: 0; display: grid; gap: var(--sp-1); }
@media (min-width: 1024px) { .grid-cases { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq details { border-radius: var(--r-md); padding-inline: 20px; transition: background-color var(--dur-2); }
.faq details + details { margin-top: 12px; }
.faq details[open] { background: rgba(255, 255, 255, .72); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 56px; padding-block: var(--sp-4); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: var(--fs-h3); font-weight: 600; }
.faq summary:hover h3 { color: var(--c-primary); }
.chevron { color: var(--c-text-2); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] .chevron { transform: rotate(180deg); }
.faq-body { padding-bottom: 20px; color: var(--c-text-2); max-width: 70ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-body { animation: fade-in var(--dur-2) var(--ease-out); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid; gap: var(--sp-6);
  grid-template-areas: "intro" "next" "form" "channels";
}
.contact-intro { grid-area: intro; }
.contact-intro p { margin-top: var(--sp-4); color: var(--c-text-2); max-width: 56ch; font-size: var(--fs-lg); line-height: 1.6; }
.contact-next { grid-area: next; display: flex; align-items: center; gap: var(--sp-5); }
.next-steps ol { margin: var(--sp-3) 0 0; padding-left: 1.25em; color: var(--c-text-2); }
.next-steps li + li { margin-top: var(--sp-1); }
.next-steps li::marker { color: var(--c-secondary); font-weight: 700; }
.orbit--contact { width: 120px; height: auto; flex: none; }
.form-panel { grid-area: form; }
.contact-channels { grid-area: channels; }
.contact-channels:empty { display: none; }
.channels h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.channels ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.channels a { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; color: var(--c-primary); }

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr; column-gap: var(--sp-8);
    grid-template-areas: "intro form" "next form" "channels form";
    grid-template-rows: auto auto 1fr;
    align-items: start;
  }
  .contact-next { flex-direction: column; align-items: flex-start; }
  .orbit--contact { width: 180px; }
}

.form-panel {
  padding: 24px; border-radius: var(--r-xl);
  /* G3 */
  background: var(--c-glass-max);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 6px rgba(30, 27, 58, .06), 0 24px 60px rgba(67, 56, 202, .16);
  -webkit-backdrop-filter: blur(var(--blur-3)) saturate(180%);
  backdrop-filter: blur(var(--blur-3)) saturate(180%);
}
@media (min-width: 600px) { .form-panel { padding: 32px; } }
.form-title { font-size: var(--fs-h3); }
.form-note { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-text-2); }
.form-status { margin-top: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-2); }
.form-status:empty { margin: 0; }
.form-status.is-error { color: var(--c-error); }

.form-grid { display: grid; gap: 20px; margin-top: var(--sp-5); }
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(255, 255, 255, .75); color: var(--c-text);
  border: 1px solid var(--c-field-border); border-radius: var(--r-sm);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select option { background: #fff; color: var(--c-text); }
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
::placeholder { color: var(--c-text-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #525A70; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary), 0 0 0 4px rgba(67, 56, 202, .22);
}
[aria-invalid="true"] { border: 2px solid var(--c-error) !important; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(185, 28, 28, .20); }
input[readonly], textarea[readonly], [aria-disabled="true"] { opacity: .7; }
select[aria-disabled="true"], input[type="checkbox"][aria-disabled="true"] { pointer-events: none; }

.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-sm); color: var(--c-error); line-height: 1.4; }
.field-error[hidden] { display: none; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.field-meta { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: flex-start; }
.counter { margin-left: auto; font-size: var(--fs-xs); color: var(--c-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

.check { display: flex; gap: var(--sp-3); align-items: flex-start; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 24px; height: 24px; margin: 10px 0 10px; border-radius: 6px;
  border: 1px solid var(--c-field-border); background: rgba(255, 255, 255, .75);
  display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--c-primary); border-color: var(--c-primary); }
.check input:checked::after {
  content: ""; width: 6px; height: 12px; margin-top: -2px;
  border: solid var(--c-on-primary); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.check label { padding-block: 10px; font-size: var(--fs-sm); color: var(--c-text-2); cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert:not(:empty) {
  display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-4);
  padding: var(--sp-4); border-radius: var(--r-sm);
  background: rgba(185, 28, 28, .08); border-left: 3px solid var(--c-error);
}
.form-alert .icon { color: var(--c-error); margin-top: 2px; }
.form-alert strong { display: block; color: var(--c-text); }
.form-alert p { color: var(--c-text-2); font-size: var(--fs-sm); }

.btn--submit { width: 100%; }
@media (min-width: 600px) { .btn--submit { width: auto; min-width: 220px; } }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
form[aria-busy="true"] .spinner { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: spin 800ms linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  form[aria-busy="true"] .spinner { display: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-text-3); }

.form-success { border-top: 3px solid var(--c-success); padding-top: var(--sp-5); display: grid; gap: var(--sp-4); justify-items: start; }
.form-success[hidden] { display: none; }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(4, 120, 87, .12); color: var(--c-success); border: 1px solid rgba(4, 120, 87, .40); }
.form-success h3:focus { outline: none; }
.form-success h3:focus-visible { outline: 3px solid var(--c-focus); }
.form-success p { color: var(--c-text-2); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px 32px;
  /* G2 */
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 4px 24px rgba(46, 42, 90, .08);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
}
.footer-grid { display: grid; gap: var(--sp-6); }
.footer-brand p { margin-top: var(--sp-3); color: var(--c-text-2); max-width: 36ch; font-size: var(--fs-sm); }
.footer-title { font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--c-text-3); margin-bottom: var(--sp-3); letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text-2); text-decoration: none; font-size: var(--fs-sm); }
.site-footer ul a:hover { color: var(--c-text); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(30, 27, 58, .10);
  font-size: var(--fs-xs); color: var(--c-text-3);
}
.footer-bottom a { color: var(--c-text-3); display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--c-text); }
.footer-bottom p { display: flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Orbit (estados y animaciones) ---------- */
.orbit { display: block; overflow: visible; filter: drop-shadow(0 12px 20px rgba(46, 42, 90, .18)); }
.orbit .o-head { transform-box: view-box; transform-origin: 120px 190px; }
.orbit .o-ant-l { transform-box: view-box; transform-origin: 92px 52px; }
.orbit .o-ant-r { transform-box: view-box; transform-origin: 148px 52px; }
.orbit .o-bulb { transform-box: fill-box; transform-origin: center; }
.orbit .o-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.orbit .o-pupils { transition: transform var(--dur-2) var(--ease-out); }
.orbit .o-hand-wave { transform-box: view-box; transform-origin: 214px 172px; }

.orbit .o-m-sending, .orbit .o-m-success, .orbit .o-m-error,
.orbit .o-brows, .orbit .o-happy, .orbit .o-hand-wave { display: none; }

.orbit[data-state="sending"] .o-m-idle { display: none; }
.orbit[data-state="sending"] .o-m-sending { display: inline; }
.orbit[data-state="sending"] .o-pupils { transform: translateY(-4px); }

.orbit[data-state="success"] .o-m-idle,
.orbit[data-state="success"] .o-eyes,
.orbit[data-state="success"] .o-hand-chin { display: none; }
.orbit[data-state="success"] .o-m-success,
.orbit[data-state="success"] .o-happy,
.orbit[data-state="success"] .o-hand-wave { display: inline; }

.orbit[data-state="error"] .o-m-idle { display: none; }
.orbit[data-state="error"] .o-m-error,
.orbit[data-state="error"] .o-brows { display: inline; }
.orbit[data-state="error"] .o-head { transform: rotate(-6deg); }

@media (min-width: 1024px) {
  .orbit--contact[data-state="idle"] .o-pupils { transform: translateX(3px); }
}

@media (prefers-reduced-motion: no-preference) {
  .orbit { animation: orbit-float 6s var(--ease-in-out) infinite alternate; }
  .orbit .o-lid { animation: orbit-blink 5.5s linear 1.2s infinite; }
  .orbit--contact .o-lid { animation-delay: 3s; }
  .orbit .o-ant-l { animation: orbit-antenna 4s ease-in-out infinite alternate; }
  .orbit .o-ant-r { animation: orbit-antenna 4s ease-in-out -2s infinite alternate; }
  .orbit[data-state="sending"] .o-bulb { animation: orbit-pulse 900ms ease-in-out infinite alternate; }
  .orbit[data-state="success"] { animation: orbit-hop 450ms var(--ease-out), orbit-float 6s var(--ease-in-out) 450ms infinite alternate; }
  .orbit[data-state="success"] .o-hand-wave { animation: orbit-wave 900ms ease-in-out; }
  .orbit[data-state="error"] .o-head { animation: orbit-tilt 300ms var(--ease-out); }
  .orbit.is-offscreen, .orbit.is-offscreen * { animation-play-state: paused !important; }
}
@keyframes orbit-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes orbit-blink { 0%, 94% { transform: scaleY(0); } 96% { transform: scaleY(1); } 98%, 100% { transform: scaleY(0); } }
@keyframes orbit-antenna { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes orbit-pulse { from { opacity: 1; transform: scale(1); } to { opacity: .45; transform: scale(1.15); } }
@keyframes orbit-hop { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
@keyframes orbit-wave { 0% { transform: rotate(0); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-8deg); } 75% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
@keyframes orbit-tilt { from { transform: rotate(0); } to { transform: rotate(-6deg); } }

/* ---------- Reveal on scroll (solo con JS y sin reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }
  .js-reveal [data-reveal] { transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), border-color var(--dur-2), background-color var(--dur-2), box-shadow var(--dur-2); }
  .js-reveal .grid > [data-reveal]:nth-child(4n + 2), .js-reveal .timeline > [data-reveal]:nth-child(4n + 2) { transition-delay: 60ms; }
  .js-reveal .grid > [data-reveal]:nth-child(4n + 3), .js-reveal .timeline > [data-reveal]:nth-child(4n + 3) { transition-delay: 120ms; }
  .js-reveal .grid > [data-reveal]:nth-child(4n + 4), .js-reveal .timeline > [data-reveal]:nth-child(4n + 4) { transition-delay: 180ms; }
  .js-reveal .card.is-visible:hover { transition-delay: 0s; }
}

/* ---------- Páginas simples (privacidad / respuestas sin JS) ---------- */
.plain { padding-block: 48px 64px; max-width: 760px; }
.plain h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-5); }
.plain h2 { font-size: var(--fs-h3); margin: var(--sp-6) 0 var(--sp-3); }
.plain p, .plain li { color: var(--c-text-2); }
.plain p + p { margin-top: var(--sp-3); }
.plain ul { padding-left: 1.25em; margin: var(--sp-3) 0; }
.plain .btn { margin-top: var(--sp-6); }
.plain-header { border-bottom: 1px solid rgba(30, 27, 58, .10); }

/* ---------- Fallbacks de vidrio (01-ux-v2.md §3): superficies opacas legibles ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .faq details, .faq details[open], .btn--secondary, .menu-toggle { background: rgba(255, 255, 255, .88); }
  .site-header.is-scrolled:not(.menu-open), .site-footer { background: rgba(255, 255, 255, .94); }
  .site-header.menu-open, .site-nav, .form-panel { background: #FFFFFF; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 1024px) { .hero-orb { background: #FFFFFF; } }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .faq details, .faq details[open], .btn--secondary, .menu-toggle { background: rgba(255, 255, 255, .88); }
  .site-header.is-scrolled:not(.menu-open), .site-footer { background: rgba(255, 255, 255, .94); }
  .site-header.menu-open, .site-nav, .form-panel { background: #FFFFFF; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (prefers-reduced-transparency: reduce) and (min-width: 1024px) { .hero-orb { background: #FFFFFF; } }
@media (scripting: none) and (max-width: 1023.98px) { .site-nav { background: none; } }
