/* ==========================================================================
   José Vicente Casadiego León — Seminario–Taller
   Paleta y motivos derivados del logotipo oficial (azul real, navy, plata,
   y la estrella de cuatro puntas que separa el monograma del nombre).
   Mobile-first. Sin dependencias externas.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Extraídos del logotipo: #003084 #002478 #0c3c9c #001860 #6c6c78 #182430 */
  --navy-900: #04091A;
  --navy-850: #050D22;
  --navy-800: #060F26;
  --navy-700: #0A1733;
  --navy-600: #102142;

  --blue-700: #002478;
  --blue-600: #12429E;
  --blue-500: #1E56C8;
  --blue-400: #3B72E8;
  --blue-300: #7DA5F7;

  --silver-050: #F4F6FA;
  --silver-100: #E8ECF3;
  --silver-200: #D3DAE7;
  --silver-300: #B7C1D4;
  --silver-400: #9AA6BE;   /* texto atenuado sobre navy — contraste verificado */
  --silver-600: #828EA2;   /* texto pequeño sobre navy: ≥4.5:1 (WCAG AA) */
  --ink-muted: #5A6478;    /* el mismo papel, pero sobre el panel claro */

  --light-bg: #EDF0F6;
  --ink: #101828;

  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .035);

  --head-h: 58px;
  --dock-h: 0px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  --f-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@media (min-width: 900px) {
  :root { --head-h: 72px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

html {
  scroll-behavior: smooth;
  /* Evita cualquier scroll horizontal accidental en móvil */
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--f-sans);
  font-size: .9375rem;           /* 15px móvil */
  line-height: 1.62;
  color: var(--silver-200);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
}

@media (min-width: 900px) { body { font-size: 1rem; } }

::selection { background: var(--blue-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .6rem 1rem; border-radius: var(--r-sm);
  background: var(--blue-600); color: #fff; font-weight: 600;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}
.wrap--narrow { max-width: 840px; }

.sec {
  position: relative;
  padding-block: 2.75rem;
  scroll-margin-top: calc(var(--head-h) + 8px);
}
@media (min-width: 900px) { .sec { padding-block: 5.5rem; } }

.sec--deep { background: var(--navy-850); }
.sec--deep::before,
.sec--deep::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.sec--deep::before { top: 0; }
.sec--deep::after { bottom: 0; }

/* ---------- Tipografía ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 24px; height: 24px; }
.ic--spark { fill: currentColor; stroke: none; width: 12px; height: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: .85rem;
}
.eyebrow__num { font-family: var(--f-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0; color: var(--silver-400); line-height: 1; }
.eyebrow__rule { width: 28px; height: 1px; background: currentColor; opacity: .55; flex: none; }
.eyebrow--dark { color: var(--blue-600); }
.eyebrow--dark .eyebrow__num { color: var(--ink-muted); }
.eyebrow--ally { color: var(--silver-400); }

.sec__head { max-width: 46rem; margin-bottom: 1.75rem; }
.sec__title {
  font-family: var(--f-serif);
  font-size: clamp(1.55rem, 5.6vw, 2.6rem);
  font-weight: 600; line-height: 1.14; letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
}
.sec__title--sm { font-size: clamp(1.4rem, 4.8vw, 2.1rem); }
.sec__title em { font-style: italic; color: var(--blue-300); }
.sec__lede { margin-top: .8rem; color: var(--silver-400); max-width: 40rem; }

.rule-spark { display: flex; align-items: center; gap: .5rem; color: var(--silver-400); }
.rule-spark span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, currentColor); opacity: .5; }
.rule-spark span:last-child { background: linear-gradient(90deg, currentColor, transparent); }
.rule-spark--center { max-width: 220px; margin: 0 auto 1.1rem; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px;                     /* objetivo táctil */
  padding: .7rem 1.15rem;
  border-radius: 999px;
  font-size: .875rem; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.btn .ic { width: 17px; height: 17px; }
.btn--lg { min-height: 50px; padding: .85rem 1.5rem; font-size: .9375rem; }
.btn--sm { min-height: 40px; padding: .5rem .95rem; font-size: .8125rem; }
.btn--block { width: 100%; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 20px -6px rgba(30,86,200,.75);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--blue-500), var(--blue-400)); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 28px -8px rgba(59,114,232,.9); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(.985); }

.btn--ghost { color: var(--silver-100); border: 1px solid var(--line-2); background: var(--glass); }
.btn--ghost:hover { border-color: var(--blue-400); color: #fff; background: rgba(59,114,232,.12); }
.btn--ghost:active { transform: scale(.985); }

.btn--steel { color: var(--silver-100); border: 1px solid var(--line-2); background: rgba(255,255,255,.05); }
.btn--steel:hover { border-color: var(--silver-300); background: rgba(255,255,255,.1); }

.btn[disabled], .btn[aria-disabled='true'] { opacity: .55; pointer-events: none; }

/* Progressive enhancement: `.js` la añade un script en línea del <head>.
   Sin JS, el formulario no puede redactar el mensaje: se ocultan los campos y
   el botón, y queda un enlace directo a WhatsApp que sí funciona.
   Cada regla es explícita para no romper el `display` propio de cada elemento. */
.js-only { display: none; }
.js .btn.js-only { display: inline-flex; }
.js .form__fields.js-only { display: block; }
.js .nojs-only { display: none; }

.lnk { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; font-size: .8125rem; word-break: break-word; }
.lnk:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(6, 15, 38, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: rgba(5, 11, 28, .9); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--head-h); }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; flex: 0 1 auto; }
.brand__mark { width: auto; height: 30px; }
.brand__txt { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--f-serif); font-size: .9375rem; font-weight: 600; color: #fff; line-height: 1.15; white-space: nowrap; }
.brand__role { font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-400); white-space: nowrap; }
@media (max-width: 400px) { .brand__role { display: none; } .brand__name { font-size: .875rem; white-space: normal; } }
@media (min-width: 900px) { .brand__mark { height: 36px; } .brand__name { font-size: 1.05rem; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -.35rem;
  border-radius: var(--r-sm); color: var(--silver-100);
}
.burger:hover { background: var(--glass); }
.nav__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--silver-100); }
.nav__close:hover { background: var(--glass); }

/* Nav — panel deslizante en móvil */
.nav {
  position: fixed; inset: 0 0 0 auto; z-index: 100;
  width: min(84vw, 340px);
  padding: calc(var(--head-h) + 1rem) 1.5rem 2rem;
  background: var(--navy-850);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  visibility: hidden;
  /* Al cerrar, `visibility` espera a que termine el deslizamiento. Nunca se
     interpola con duración: eso la dejaría en `hidden` en t=0 y el panel no
     podría recibir el foco al abrirlo. */
  transition: transform .34s var(--ease), visibility 0s linear .34s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav.is-open {
  transform: none;
  visibility: visible;
  transition: transform .34s var(--ease), visibility 0s linear 0s;
}
.nav__list { display: flex; flex-direction: column; gap: .15rem; margin-bottom: 1.5rem; }
.nav__list a {
  display: block; padding: .7rem .75rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--silver-200);
  border-left: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nav__list a:hover { background: var(--glass); color: #fff; border-left-color: var(--blue-400); }
.nav__cta { width: 100%; }

.nav-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(2, 5, 14, .6); backdrop-filter: blur(2px); }

@media (min-width: 900px) {
  .burger, .nav__close { display: none; }
  .nav-scrim { display: none !important; }
  .nav__extra { display: none; }
  /* La marca no se comprime: el nav cede primero. */
  .brand { flex: 0 0 auto; }
  .nav {
    position: static; width: auto; padding: 0; background: none; border: 0;
    transform: none; visibility: visible; overflow: visible;
    display: flex; align-items: center; gap: 1rem; min-width: 0;
  }
  .nav__list { flex-direction: row; gap: .25rem; margin: 0; }
  /* Sin esto los enlaces se parten en dos líneas («El / seminario»). */
  .nav__list a { padding: .45rem .6rem; font-size: .8125rem; font-weight: 600; color: var(--silver-300); border-left: 0; border-bottom: 1px solid transparent; border-radius: 6px; white-space: nowrap; }
  .nav__list a:hover { color: #fff; border-left: 0; background: var(--glass); }
  .nav__cta { width: auto; }
}
@media (min-width: 1200px) {
  .nav__extra { display: block; }
  .nav { gap: 1.5rem; }
  .nav__list a { font-size: .875rem; padding-inline: .7rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 2.5rem 4.5rem; }
@media (min-width: 900px) { .hero { padding-block: 4rem 7rem; } }

.hero__glow {
  position: absolute; top: -18%; right: -30%;
  width: min(120vw, 900px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(30, 86, 200, .38), rgba(18, 66, 158, .12) 45%, transparent 68%);
  pointer-events: none;
}
.hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.hero__in { position: relative; display: grid; gap: 2.25rem; }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 3rem; } }

.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 7vw, 3.5rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.015em;
  color: #fff;
  margin-bottom: .9rem;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--blue-300); }
.hero__title-tail {
  display: block; margin-top: .5rem;
  font-family: var(--f-sans);
  font-size: clamp(.8125rem, 2.6vw, 1rem);
  font-weight: 600; letter-spacing: .02em; line-height: 1.4;
  color: var(--silver-400);
}
@media (min-width: 980px) { .hero__title { font-size: clamp(2.2rem, 3.3vw, 3.25rem); } }

.hero__sub { color: var(--silver-300); max-width: 34rem; }
.hero__sub strong { color: #fff; font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.hero__cta .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__cta .btn { flex: 0 0 auto; } }
.hero__cta .btn--ghost .ic { transition: transform .25s var(--ease); }
.hero__cta .btn--ghost:hover .ic { transform: translateY(2px); }

.trust {
  display: flex; flex-direction: column; gap: .5rem;
  margin-top: 1.6rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.trust li { display: flex; align-items: center; gap: .55rem; font-size: .75rem; font-weight: 600; color: var(--silver-400); }
.trust .ic { width: 15px; height: 15px; color: var(--blue-300); }
@media (min-width: 620px) { .trust { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.4rem; } }

/* Placa editorial */
.plate-wrap { perspective: 1400px; display: flex; justify-content: center; }
.plate {
  position: relative; width: min(100%, 330px);
  padding: 1px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,.05) 42%, rgba(30,86,200,.35));
  transform: rotate(-1.6deg) rotateY(7deg) rotateX(2deg);
  box-shadow: 0 30px 70px -24px rgba(0, 8, 30, .95), 0 0 0 1px rgba(255,255,255,.02);
  transition: transform .7s var(--ease);
}
.plate-wrap:hover .plate { transform: rotate(-.6deg) rotateY(3deg) rotateX(1deg) translateY(-4px); }
@media (min-width: 980px) { .plate { width: 350px; } }

.plate__in {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .75rem;
  padding: 2rem 1.6rem 1.75rem;
  border-radius: calc(var(--r-lg) - 1px);
  background: linear-gradient(165deg, #0B1A3C, #050B1C 60%);
}
.plate__mark { width: auto; height: 74px; opacity: .96; }
.plate__eyebrow { font-size: .625rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--blue-300); }
.plate__title { font-family: var(--f-serif); font-size: 1.0625rem; line-height: 1.3; color: var(--silver-100); font-weight: 500; }
.plate .rule-spark { width: 100%; }
.plate__by { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--silver-400); }
.plate__sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--r-lg);
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.09) 48%, transparent 58%);
  background-size: 260% 100%;
  animation: sheen 7s var(--ease) 1.4s infinite;
}
@keyframes sheen { 0%, 62% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

/* Corte diagonal hacia la sección 01 */
.skew-edge {
  position: absolute; left: -5%; right: -5%; bottom: -1px; height: 42px;
  background: var(--navy-850);
  transform: skewY(-1.6deg); transform-origin: bottom left;
}
@media (min-width: 900px) { .skew-edge { height: 70px; } }

/* ---------- Tabs ---------- */
.tabs__bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem;
  padding: .3rem; margin-bottom: 1.1rem;
  background: var(--glass); border: 1px solid var(--line); border-radius: 999px;
}
.tabs__btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 42px; padding: .45rem .3rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; color: var(--silver-400);
  transition: color .22s, background-color .22s;
}
.tabs__btn .ic { width: 16px; height: 16px; }
.tabs__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs__btn:hover { color: var(--silver-100); }
.tabs__btn[aria-selected='true'] {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 4px 14px -5px rgba(30,86,200,.8);
}
@media (max-width: 460px) { .tabs__btn .ic { display: none; } }
@media (min-width: 700px) {
  .tabs__btn { font-size: .875rem; padding-inline: 1rem; }
  /* En pantallas anchas la barra no debe estirarse de borde a borde. */
  .tabs__bar { max-width: 560px; }
}

.tabs__panel {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  animation: fadeUp .45s var(--ease);
}
.tabs__panel:focus-visible { outline-offset: -2px; }
@media (min-width: 700px) { .tabs__panel { padding: 1.9rem 1.75rem; } }
.tabs__n { font-size: .625rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-300); margin-bottom: .5rem; }
.tabs__panel h3 { font-family: var(--f-serif); font-size: clamp(1.2rem, 4.2vw, 1.6rem); font-weight: 600; color: #fff; line-height: 1.2; margin-bottom: .55rem; }
.tabs__panel p { color: var(--silver-400); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ticks { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.ticks li { position: relative; padding-left: 1.35rem; font-size: .8125rem; color: var(--silver-300); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 7px; height: 7px; background: var(--blue-400);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.ticks--cta { margin-top: 1.25rem; }
@media (min-width: 560px) { .ticks--cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; } }

.arrow-out {
  display: flex; align-items: center; gap: .7rem;
  margin-top: 1.25rem; padding: .9rem 1.1rem;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  font-size: .8125rem; color: var(--silver-400);
}
.arrow-out .ic { color: var(--blue-300); flex: none; }
.arrow-out strong { color: #fff; font-weight: 700; }

/* ---------- Cards / rail / bento ---------- */
.card {
  position: relative;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.card .ic--lg { color: var(--blue-300); margin-bottom: .7rem; }
.card h3 { font-size: .875rem; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: .3rem; }
.card p { font-size: .8125rem; color: var(--silver-400); line-height: 1.5; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: rgba(123,160,247,.4); background: linear-gradient(160deg, rgba(59,114,232,.14), rgba(255,255,255,.02)); }
}
@media (min-width: 700px) { .card { padding: 1.4rem 1.3rem; } .card h3 { font-size: .9375rem; } }

/* Rail: carrusel con snap en móvil, grid en escritorio */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%;
  gap: .7rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(1.15rem, 5vw, 2.5rem);
  margin-inline: calc(clamp(1.15rem, 5vw, 2.5rem) * -1);
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
  padding-block: .25rem .75rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail__hint { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-600); }
@media (min-width: 560px) { .rail { grid-auto-columns: 46%; } }
@media (min-width: 900px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 1rem; }
  .rail__hint { display: none; }
}

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

/* ---------- Acordeón ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(255,255,255,.02); }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__item summary {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1rem; cursor: pointer; list-style: none;
  transition: background-color .2s;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:hover { background: var(--glass); }
.acc__n { font-family: var(--f-serif); font-size: 1rem; font-weight: 600; color: var(--blue-300); flex: none; min-width: 1.3rem; }
.acc__t { flex: 1; font-size: .8125rem; font-weight: 700; color: var(--silver-100); line-height: 1.35; }
.acc__c { color: var(--silver-400); transition: transform .3s var(--ease); }
.acc__item[open] > summary .acc__c { transform: rotate(180deg); }
.acc__item[open] > summary { background: var(--glass); }
.acc__body { padding: 0 1rem 1.1rem; }
.acc__body p { font-size: .8125rem; color: var(--silver-400); }
.acc__body a { color: var(--blue-300); }
.acc__item[open] .acc__body { animation: fadeUp .35s var(--ease); }
@media (min-width: 700px) { .acc__t { font-size: .9375rem; } .acc__body p { font-size: .875rem; } .acc__item summary { padding: 1.1rem 1.25rem; } .acc__body { padding: 0 1.25rem 1.25rem 3.05rem; } }

.note {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-top: 1.1rem; padding: 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(30,86,200,.14), rgba(255,255,255,.02));
}
.note .ic { color: var(--blue-300); flex: none; }
.note p { flex: 1 1 12rem; font-size: .8125rem; color: var(--silver-300); }
.note strong { color: #fff; }

/* ---------- Autor (panel claro) ---------- */
.sec--light { background: var(--light-bg); color: var(--ink); }
.sec--light .sec__title { color: var(--ink); }
.sec--light .sec__title em { color: var(--blue-600); }
.autor { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .autor { grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; } }

.autor__logo-card {
  display: grid; place-items: center;
  padding: 1.25rem;
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid rgba(16, 24, 40, .07);
  box-shadow: 0 20px 45px -22px rgba(6, 15, 38, .35);
}
.autor__logo-card img { width: min(100%, 200px); height: auto; }
@media (min-width: 900px) {
  .autor__logo-card { padding: 2rem 1.5rem; }
  .autor__logo-card img { width: min(100%, 260px); }
}

.autor__copy p { color: #40506B; margin-bottom: .8rem; }
.autor__copy p strong { color: var(--ink); font-weight: 700; }
.autor__role {
  font-size: .75rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-600) !important; margin: .5rem 0 1rem !important;
}
.autor__facts { display: flex; flex-direction: column; gap: .45rem; margin: 1.2rem 0; }
.autor__facts li { display: flex; align-items: flex-start; gap: .55rem; font-size: .8125rem; font-weight: 600; color: #2C3A52; }
.autor__facts .ic { width: 16px; height: 16px; color: var(--blue-600); margin-top: .18em; stroke-width: 2.2; }
.autor__links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(16,24,40,.1); }
.autor__links .lnk { color: var(--blue-600); }

/* ---------- CTA principal ---------- */
.cta {
  position: relative; overflow: hidden;
  padding-block: 3.5rem;
  background: linear-gradient(165deg, #08132E 0%, #050B1C 100%);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--head-h);
}
@media (min-width: 900px) { .cta { padding-block: 5.5rem; } }
.cta__glow {
  position: absolute; left: 50%; top: -40%; translate: -50% 0;
  width: min(150vw, 1100px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(30,86,200,.34), transparent 62%);
}
/* min-width:0 — sin esto, el ancho intrínseco del <select> (su opción más
   larga) ensancha la columna del grid y desborda a 320px. */
.cta__in { position: relative; display: grid; gap: 1.75rem; }
.cta__in > * { min-width: 0; }
@media (min-width: 900px) { .cta__in { grid-template-columns: 1fr .9fr; gap: 3rem; align-items: center; } }
.cta__title { font-family: var(--f-serif); font-size: clamp(1.6rem, 6vw, 2.75rem); font-weight: 600; line-height: 1.12; color: #fff; text-wrap: balance; }
.cta__title em { font-style: italic; color: var(--blue-300); }
.cta__sub { margin-top: .8rem; color: var(--silver-300); max-width: 32rem; }

/* ---------- Formulario ---------- */
.form {
  padding: 1.25rem;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 700px) { .form { padding: 1.6rem; } }
.form__title { font-family: var(--f-serif); font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }

.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-400); margin-bottom: .35rem; }
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .7; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: .6rem .8rem;
  font-size: 1rem;                       /* 16px: evita el zoom automático en iOS */
  color: #fff;
  background: rgba(3, 8, 22, .55);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 62px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA6BE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: 18px;
  padding-right: 2.4rem;
}
.field select option { background: var(--navy-800); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--silver-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,114,232,.25);
  background: rgba(3, 8, 22, .8);
}
.field.is-bad input, .field.is-bad textarea { border-color: #F2789B; box-shadow: 0 0 0 3px rgba(242,120,155,.18); }
.field__err { margin-top: .3rem; font-size: .75rem; font-weight: 600; color: #F2A0B8; }

.form__status { margin-top: .7rem; font-size: .8125rem; font-weight: 600; color: var(--blue-300); min-height: 1.2em; }
.form__status a { color: #fff; }
.form__legal { margin-top: .8rem; font-size: .6875rem; line-height: 1.5; color: var(--silver-600); }
.form__legal a { color: var(--silver-400); }
.cta__alt { margin-top: .9rem; font-size: .75rem; color: var(--silver-400); text-align: center; word-break: break-word; }
.cta__alt a { color: var(--blue-300); font-weight: 600; }

/* ---------- Aliado ---------- */
.sec--ally { background: var(--navy-900); border-top: 1px solid var(--line); }
.sec--ally .sec__title { color: var(--silver-100); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.stats li { padding: .85rem .5rem; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,.025); }
.stats b { display: block; font-family: var(--f-serif); font-size: 1.5rem; font-weight: 600; color: var(--silver-100); line-height: 1; }
.stats span { display: block; margin-top: .3rem; font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--silver-600); }
@media (min-width: 700px) { .stats b { font-size: 2rem; } .stats span { font-size: .6875rem; } }

/* El aliado es secundario: sus 20 servicios van plegados para no superar en
   altura al producto estrella. */
.acc--ally .acc__t { color: var(--silver-300); }
.acc__count {
  flex: none; min-width: 22px; padding: .1rem .35rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: .625rem; font-weight: 700; text-align: center; color: var(--silver-400);
}
.acc--ally .acc__body { padding-left: 1rem; }
@media (min-width: 700px) { .acc--ally .acc__body { padding-left: 1.25rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chips li {
  padding: .35rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-size: .6875rem; font-weight: 600; color: var(--silver-300);
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--silver-600); color: var(--silver-100); }

.ally-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem;
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255,255,255,.025);
}
.ally-contact__role { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-600); }
.ally-contact__name { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 600; color: var(--silver-100); }
.ally-contact__btns { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Cierre ---------- */
.close-cta { position: relative; overflow: hidden; padding-block: 3.5rem; text-align: center; background: var(--navy-850); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .close-cta { padding-block: 5.5rem; } }
.close-cta__glow { position: absolute; left: 50%; bottom: -60%; translate: -50% 0; width: min(140vw, 900px); aspect-ratio: 1; pointer-events: none; background: radial-gradient(circle, rgba(18,66,158,.4), transparent 60%); }
.close-cta__in { position: relative; max-width: 44rem; margin-inline: auto; }
.close-cta__title { font-family: var(--f-serif); font-size: clamp(1.5rem, 5.6vw, 2.6rem); font-weight: 600; line-height: 1.16; color: #fff; margin-bottom: 1.5rem; text-wrap: balance; }
.close-cta__title em { font-style: italic; color: var(--blue-300); }
.close-cta__by { margin-top: 1.1rem; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-600); }

/* ---------- Footer ---------- */
.foot { background: var(--navy-900); border-top: 1px solid var(--line); padding-top: 2.5rem; }
/* Móvil: «Secciones» y «Contacto» en dos columnas — ahorra altura sin apretar.
   Por debajo de 380px no caben: una sola columna. */
.foot__in { display: grid; grid-template-columns: 1fr; gap: 1.5rem 1rem; padding-bottom: 2rem; }
.foot__in > * { min-width: 0; }
@media (min-width: 380px) {
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand, .foot__col--ally { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .foot__in { grid-template-columns: 1.5fr .8fr 1.1fr 1.3fr; gap: 2rem; }
  .foot__brand, .foot__col--ally { grid-column: auto; }
}

.foot__brand img { width: 150px; height: auto; opacity: .9; margin-bottom: .75rem; }
.foot__role { font-size: .6875rem; line-height: 1.55; color: var(--silver-600); max-width: 22rem; }
.foot__t { font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-400); margin-bottom: .8rem; }
.foot__col ul { display: flex; flex-direction: column; gap: .45rem; }
/* El correo es un token largo e irrompible: debe poder partirse o desborda. */
.foot__col a, .foot__addr { display: inline-flex; align-items: flex-start; gap: .45rem; font-size: .75rem; color: var(--silver-400); text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.foot__col a:hover { color: #fff; }
.foot__col .ic { width: 14px; height: 14px; flex: none; margin-top: .18em; }
.foot__col--ally { padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .foot__col--ally { padding-top: 0; padding-left: 1.75rem; border-top: 0; border-left: 1px solid var(--line); } }
.foot__social-t { margin: 1rem 0 .5rem; font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-600); }
/* Gana en especificidad a `.foot__col ul`, que fuerza column. */
.foot__col .social { display: flex; flex-direction: row; flex-wrap: wrap; gap: .4rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--silver-400); transition: border-color .2s, color .2s, background-color .2s; }
.social a:hover { color: #fff; border-color: var(--silver-600); background: var(--glass); }

.foot__legal { display: flex; flex-direction: column; gap: .9rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .foot__legal { flex-direction: row; align-items: center; justify-content: space-between; } }
.priv { max-width: 44rem; }
.priv summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none; font-size: .75rem; font-weight: 600; color: var(--silver-400); }
.priv summary::-webkit-details-marker { display: none; }
.priv summary:hover { color: #fff; }
.priv[open] summary .acc__c { transform: rotate(180deg); }
.priv .ic { width: 14px; height: 14px; }
.priv__body { margin-top: .7rem; animation: fadeUp .3s var(--ease); }
.priv__body p { font-size: .6875rem; line-height: 1.65; color: var(--silver-600); margin-bottom: .5rem; }
.priv__body a { color: var(--silver-400); }
.foot__copy { font-size: .6875rem; color: var(--silver-600); flex: none; }

/* ---------- Dock móvil ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: .6rem clamp(1.15rem, 5vw, 2.5rem) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(5, 11, 28, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.dock.is-up { transform: none; }
@media (min-width: 900px) { .dock { display: none !important; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal[data-d='1'].is-in { transition-delay: .07s; }
.js .reveal[data-d='2'].is-in { transition-delay: .14s; }
.js .reveal[data-d='3'].is-in { transition-delay: .21s; }
.js .reveal[data-d='4'].is-in { transition-delay: .28s; }
.js .reveal[data-d='5'].is-in { transition-delay: .35s; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .plate { transform: none; }
  .plate__sheen { display: none; }
  .dock { transform: none; }
  .dock:not(.is-up) { display: none; }
}
