/* ============================================================
   premium.css — Capa de experiencia "award-ready"
   Aurora · grano · cursor glow · spotlight · magnetic · kinetic
   Se carga al final: refina sin romper el sistema base.
   ============================================================ */

/* ---------- Selección y scrollbar ---------- */
::selection { background: rgba(37,99,255,.85); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--color-blue) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--color-blue), var(--color-cyan)); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Capas de fondo globales ---------- */
.fx-aurora {
  position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 38% at 18% 22%, rgba(37,99,255,.22), transparent 60%),
    radial-gradient(36% 36% at 82% 12%, rgba(34,211,238,.20), transparent 60%),
    radial-gradient(48% 48% at 65% 88%, rgba(37,99,255,.16), transparent 60%),
    radial-gradient(30% 30% at 40% 60%, rgba(34,211,238,.12), transparent 60%);
  filter: blur(44px);
  animation: auroraMove 22s ease-in-out infinite;
}
@keyframes auroraMove {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  33%     { transform: translate3d(2%, -2%, 0) scale(1.08); }
  66%     { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

.fx-grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fx-cursor {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; pointer-events: none; z-index: 9998; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(34,211,238,.55), rgba(37,99,255,.28) 55%, transparent 70%);
  opacity: 0; transition: opacity .3s ease, width .2s ease, height .2s ease;
}
.fx-cursor.is-on { opacity: 1; }
@media (pointer: coarse) { .fx-cursor { display: none; } }

/* ---------- Texto con gradiente animado ---------- */
.grad, .grad-cyan { background-size: 220% 220%; animation: gradShift 6s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- HERO kinético ---------- */
.hero__bg { transform: translate3d(var(--px,0), var(--py,0), 0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero__bg .orbit--1 { animation: floatA 16s ease-in-out infinite; }
.hero__bg .orbit--2 { animation: floatB 12s ease-in-out infinite; }
.hero__bg .orbit__glow { animation: glowPulse 7s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-16px,18px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-12px); } }
@keyframes glowPulse { 0%,100% { opacity:.7; transform: scale(1); } 50% { opacity:1; transform: scale(1.12); } }

.hero__title { animation: heroIn 1s var(--ease) both; }
.hero__portrait { animation: heroIn 1.1s var(--ease) .1s both; }
@keyframes heroIn { from { opacity:0; transform: translateY(24px) scale(.98); filter: blur(8px); } to { opacity:1; transform:none; filter:none; } }
/* Anillo cónico girando detrás del retrato */
.hero__portrait::before {
  content:""; position:absolute; inset:-2px; border-radius: inherit; z-index:0;
  background: conic-gradient(from 0deg, transparent, rgba(34,211,238,.5), transparent 30%, rgba(37,99,255,.5), transparent 60%);
  animation: spin 8s linear infinite; opacity:.6;
}
.hero__portrait > * { position: relative; z-index: 1; }

/* ---------- Secciones oscuras inmersivas (blobs vivos) ---------- */
.metrics, .system, .cta-final, .diag__card { position: relative; overflow: hidden; }
.metrics::before, .system::before, .cta-final::before, .diag__card::before {
  content:""; position:absolute; width: 60%; height: 160%; top: -30%; left: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(37,99,255,.35), transparent 55%),
              radial-gradient(circle at 70% 60%, rgba(34,211,238,.22), transparent 55%);
  filter: blur(40px); animation: blobDrift 18s ease-in-out infinite;
}
.cta-final::before { left: auto; right: -10%; }
.metrics > *, .system > *, .cta-final > *, .diag__card > * { position: relative; z-index: 1; }
@keyframes blobDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(18%, 10%) scale(1.15); }
}

/* ---------- Botones: barrido de luz + base magnética ---------- */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::after {
  content:""; position:absolute; top:0; left:-130%; width:55%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s ease; pointer-events:none;
}
.btn:hover::after { left: 150%; }
.btn--primary, .btn--dark { box-shadow: 0 14px 40px rgba(37,99,255,.30), 0 0 0 1px rgba(34,211,238,.12) inset; }

/* ---------- Cards: spotlight que sigue al cursor + glow ---------- */
.card { position: relative; overflow: hidden; isolation: isolate; }
.card::after {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0;
  background: radial-gradient(440px circle at var(--mx,50%) var(--my,50%), rgba(37,99,255,.16), transparent 45%);
  transition: opacity .35s ease;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover { border-color: rgba(34,211,238,.5); box-shadow: 0 20px 55px rgba(11,29,58,.16), 0 0 0 1px rgba(34,211,238,.22); }
.card__icon { transition: transform .35s var(--ease), background .3s; }
.card:hover .card__icon { transform: translateY(-3px) scale(1.06); background: linear-gradient(135deg, rgba(37,99,255,.16), rgba(34,211,238,.16)); }

/* Nodos en sección oscura mantienen glow cian */
.system__pair .card::after { background: radial-gradient(440px circle at var(--mx,50%) var(--my,50%), rgba(34,211,238,.18), transparent 45%); }

/* ---------- Métricas: números con glow ---------- */
.metric__num { background: linear-gradient(180deg,#fff, #bcd2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal cinematográfico (sobrescribe motion.css) ---------- */
.reveal { opacity: 0; transform: translateY(32px) scale(.985); filter: blur(7px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal--left { transform: translateX(-40px); } .reveal--left.is-visible { transform: none; }
.reveal--right { transform: translateX(40px); } .reveal--right.is-visible { transform: none; }

/* ---------- Transición de página con blur ---------- */
.view-fade-enter-active { transition: opacity .55s var(--ease), transform .55s var(--ease), filter .55s var(--ease); }
.view-fade-leave-active { transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease); }
.view-fade-enter-from { opacity: 0; transform: translateY(22px) scale(.99); filter: blur(10px); }
.view-fade-leave-to { opacity: 0; transform: translateY(-12px); filter: blur(7px); }

/* ---------- Header glass refinado al hacer scroll ---------- */
.header.is-scrolled { background: rgba(255,255,255,.72); box-shadow: 0 8px 30px rgba(11,29,58,.08); }
.nav__cta { position: relative; overflow: hidden; }
.nav__cta::after { content:""; position:absolute; inset:0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); transform: translateX(-120%); transition: transform .6s ease; }
.nav__cta:hover::after { transform: translateX(120%); }

/* ---------- Sticky CTA con halo ---------- */
.sticky-cta { box-shadow: 0 14px 40px rgba(37,99,255,.45), 0 0 0 1px rgba(34,211,238,.3); }
.sticky-cta::before { content:""; position:absolute; inset:-2px; border-radius:inherit; background: conic-gradient(from 0deg, transparent, rgba(34,211,238,.6), transparent 40%); animation: spin 5s linear infinite; z-index:-1; opacity:.5; }

/* ---------- Combobox con búsqueda ---------- */
.combo { position: relative; }
.combo__control { position: relative; }
.combo__input { width: 100%; padding: 14px 38px 14px 15px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
  font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.combo__input::placeholder { color: rgba(255,255,255,.45); }
.combo__input:focus { outline: none; border-color: var(--color-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.combo__caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: rgba(255,255,255,.5); transition: transform .25s; }
.combo.is-open .combo__caret { transform: translateY(-50%) rotate(180deg); }
.combo__panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow: auto;
  background: #0c2143; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: comboIn .18s ease; }
@keyframes comboIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform:none; } }
.combo__opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; cursor: pointer;
  color: rgba(255,255,255,.9); font-size: .95rem; transition: background .15s; }
.combo__opt:hover, .combo__opt.is-active { background: rgba(37,99,255,.28); }
.combo__opt.is-selected { color: var(--color-cyan); font-weight: 600; }
.combo__flag { font-size: 1.15rem; line-height: 1; }
.combo__empty { padding: 14px 12px; color: rgba(255,255,255,.5); font-size: .9rem; }

/* ---------- HERO foto-céntrico (marca personal) ---------- */
.hero__visual { display: flex; justify-content: center; }
.hero-stage {
  position: relative; width: 100%; max-width: 460px; min-height: 440px;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-stage__glow {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 80%; border-radius: 50%; z-index: 0; filter: blur(38px);
  background: radial-gradient(circle, rgba(34,211,238,.45), rgba(37,99,255,.30) 45%, transparent 70%);
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-stage__ring { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.hero-stage__ring--a { inset: 6% 4%; border: 1px solid rgba(37,99,255,.22); }
.hero-stage__ring--b { inset: 16% 14%; border: 1px dashed rgba(34,211,238,.30); animation: spin 34s linear infinite; }
.hero-stage::after {
  content: ""; position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%);
  width: 58%; height: 26px; z-index: 1; filter: blur(9px);
  background: radial-gradient(ellipse, rgba(11,29,58,.38), transparent 70%);
}
.hero-photo {
  position: relative; z-index: 2; max-height: 540px; width: auto; object-fit: contain;
  filter: drop-shadow(0 30px 55px rgba(11,29,58,.45));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-photo-fallback {
  position: relative; z-index: 2; width: 72%; aspect-ratio: 1; border-radius: 26px;
  background: var(--grad-navy); display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.hero-photo-fallback span { font-size: 5rem; font-weight: 900; color: #fff; }

.hero-chip {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); box-shadow: 0 12px 30px rgba(11,29,58,.16);
  animation: chipFloat 5s ease-in-out infinite;
}
.hero-chip strong { font-size: 1.1rem; font-weight: 800; color: var(--color-navy); line-height: 1; }
.hero-chip span { font-size: .72rem; color: var(--color-muted); }
.hero-chip--1 { top: 16%; left: -4%; animation-delay: .2s; }
.hero-chip--2 { top: 44%; right: -6%; animation-delay: .8s; }
.hero-chip--3 { bottom: 12%; left: -2%; animation-delay: .5s; }
.hero-chip--3 strong { font-size: .9rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 540px) {
  .hero-stage { max-width: 340px; min-height: 380px; }
  .hero-chip { padding: 9px 12px; }
  .hero-chip strong { font-size: .95rem; }
  .hero-chip--1 { left: 0; } .hero-chip--2 { right: 0; } .hero-chip--3 { left: 0; }
}

/* ---------- Sobre Tonny: hero con retrato ---------- */
.about-hero { display: grid; gap: 40px; align-items: center; }
.about-photo { position: relative; display: flex; justify-content: center; }
.about-photo img { position: relative; z-index: 2; max-height: 460px; width: auto; border-radius: 20px;
  filter: drop-shadow(0 24px 50px rgba(11,29,58,.4)); }
.about-photo__glow { position: absolute; inset: 10% 14%; z-index: 0; border-radius: 50%; filter: blur(40px);
  background: radial-gradient(circle, rgba(37,99,255,.4), rgba(34,211,238,.25) 50%, transparent 72%); }
@media (min-width: 860px) { .about-hero { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Marquee de autoridad ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--color-line); background: var(--color-bg-soft); }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; padding: 16px 30px; font-weight: 800;
  color: var(--color-muted); letter-spacing: .05em; text-transform: uppercase; font-size: .9rem; white-space: nowrap; }
.marquee__item::after { content: "✦"; margin-left: 30px; color: var(--color-blue); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero: constelación ---------- */
.hero-particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Tipografía cinética (revelado por palabra) ---------- */
.rw-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.rw-word { display: inline-block; transform: translateY(115%); transition: transform .7s var(--ease); will-change: transform; }
.rw-in .rw-word { transform: translateY(0); }

/* ---------- Bento grid de pilares ---------- */
.bento { display: grid; gap: 16px; margin-top: 38px; grid-template-columns: 1fr; }
.bento__tile { display: flex; flex-direction: column; min-height: 168px; }
.bento__tile .card__icon { margin-bottom: auto; }
.bento__tile .card__title { margin-top: 14px; }
@media (min-width: 560px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(172px, auto); }
  .bento__tile--1 { grid-column: span 2; grid-row: span 2; }
  .bento__tile--2 { grid-column: span 2; }
  .bento__tile--3 { grid-column: span 1; }
  .bento__tile--4 { grid-column: span 1; }
}
/* Tile principal inmersivo */
.bento__tile--1 { background: var(--grad-navy); color: #fff; border-color: rgba(255,255,255,.1); justify-content: flex-end; }
.bento__tile--1 .card__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.bento__tile--1 .card__text { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 42ch; }
.bento__tile--1 .card__icon { width: 60px; height: 60px; font-size: 1.7rem; background: rgba(34,211,238,.14); color: var(--color-cyan); }
.bento__tile--1::after { background: radial-gradient(480px circle at var(--mx,50%) var(--my,50%), rgba(34,211,238,.18), transparent 45%); }
.bento__tile--1::before { content:""; position:absolute; width:60%; height:60%; right:-10%; top:-10%; z-index:0; filter: blur(50px);
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 60%); animation: blobDrift 16s ease-in-out infinite; }

/* ---------- Marca / logo ---------- */
.brand { gap: 11px; }
.brand__logo { width: 32px; height: 32px; display: block; filter: drop-shadow(0 0 10px rgba(34,211,238,.35)); }
.brand__name { white-space: nowrap; font-weight: 800; letter-spacing: -0.02em; }
.header { z-index: 130; }

/* ---------- Mega-menú (desktop) ---------- */
.nav { align-items: center; }
.nav__group { position: relative; }
.nav__trigger { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-muted); font-weight: 500; font-size: .95rem; font-family: inherit; padding: 0; }
.nav__group:hover .nav__trigger, .nav__group:focus-within .nav__trigger { color: var(--color-ink); }
.nav__chev { font-size: .68rem; transition: transform .25s var(--ease); }
.nav__group:hover .nav__chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(560px, 88vw); padding: 14px; z-index: 140;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--color-line); border-radius: 20px; box-shadow: 0 30px 70px rgba(11,29,58,.20);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__group:hover .mega, .nav__group:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__item { display: grid; gap: 3px; padding: 13px 15px; border-radius: 13px; transition: background .2s, transform .2s; }
.mega__item:hover { background: rgba(37,99,255,.07); transform: translateY(-2px); }
.mega__label { font-weight: 700; color: var(--color-ink); font-size: .98rem; }
.mega__desc { font-size: .82rem; color: var(--color-muted); }
.mega__item--featured { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(37,99,255,.12), rgba(34,211,238,.10)); border: 1px solid rgba(37,99,255,.22); }
.mega__item--featured .mega__label::after { content: " ★"; color: var(--color-blue); }

/* ---------- Overlay inmersivo (tablet / móvil) ---------- */
.navx {
  position: fixed; inset: 0; z-index: 300; overflow-y: auto; color: #fff;
  background: radial-gradient(120% 90% at 80% 0%, #11294d 0%, #0b1d3a 45%, #07142a 100%);
  padding: 0 24px 40px; transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s ease;
}
.navx.is-open { transform: none; opacity: 1; pointer-events: auto; }
.navx__bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; margin-bottom: 12px; }
.navx__brand { font-weight: 800; }
.navx__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.navx__close:hover { background: rgba(255,255,255,.16); }
.navx__inner { width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.navx__link { font-size: clamp(1.5rem, 7vw, 2rem); font-weight: 800; letter-spacing: -0.02em; padding: 10px 0; }
.navx__group { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
.navx__group-label { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-cyan); margin-bottom: 10px; }
.navx__sub { display: block; font-size: 1.2rem; font-weight: 600; padding: 9px 0; color: rgba(255,255,255,.86); transition: color .2s, transform .2s; }
.navx__sub:hover { color: #fff; transform: translateX(6px); }
.navx__cta { margin-top: 22px; }
.navx__foot { margin-top: 18px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); text-align: center; }
.navx__inner > * { opacity: 0; transform: translateY(18px); }
.navx.is-open .navx__inner > * { animation: navxIn .55s var(--ease) forwards; }
.navx.is-open .navx__inner > *:nth-child(1) { animation-delay: .05s; }
.navx.is-open .navx__inner > *:nth-child(2) { animation-delay: .10s; }
.navx.is-open .navx__inner > *:nth-child(3) { animation-delay: .15s; }
.navx.is-open .navx__inner > *:nth-child(4) { animation-delay: .20s; }
.navx.is-open .navx__inner > *:nth-child(5) { animation-delay: .25s; }
.navx.is-open .navx__inner > *:nth-child(6) { animation-delay: .30s; }
.navx.is-open .navx__inner > *:nth-child(7) { animation-delay: .35s; }
@keyframes navxIn { to { opacity: 1; transform: none; } }

/* Header transparente sobre el overlay abierto (navegadores con :has) */
.header:has(.navx.is-open) { background: transparent; box-shadow: none; border-color: transparent; }
.header:has(.navx.is-open) .brand__name { color: #fff; }
.header:has(.navx.is-open) .nav-toggle span { background: #fff; }

/* ---------- Pulido cinematográfico ---------- */
.hero::before {
  content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 70%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .7;
  background: radial-gradient(50% 60% at 50% 0%, rgba(34,211,238,.18), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.section--dark, .system, .cta-final, .metrics { box-shadow: inset 0 0 160px rgba(0,0,0,.35); }
.hero__title { letter-spacing: -0.035em; }
.cta-final__title, .section__title { letter-spacing: -0.03em; }

/* ---------- HERO cinematográfico (video full-bleed) ---------- */
.hero--cinematic { padding: 0; min-height: clamp(580px, 92vh, 880px); display: flex; align-items: center; overflow: hidden; background: #07142a; }
.hero--cinematic::before { display: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #07142a; }
.hero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,20,42,.95) 0%, rgba(7,20,42,.72) 32%, rgba(7,20,42,.28) 56%, rgba(7,20,42,.55) 100%); }
.hero__inner--cinematic { position: relative; z-index: 2; display: block; }
.hero__inner--cinematic .hero__content { max-width: 640px; }
.eyebrow--light { color: var(--color-cyan); }
.hero__title--light { color: #fff; }
.hero__sub--light { color: rgba(255,255,255,.82); max-width: 54ch; }
.hero--cinematic .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero--cinematic .btn--ghost:hover { border-color: var(--color-cyan); color: var(--color-cyan); }
/* Botón ghost legible sobre fondos oscuros (navy) */
.article__cta .btn--ghost, .diag__card .btn--ghost, .cta-final .btn--ghost,
.audioplayer .btn--ghost, .res-featured .btn--ghost, .bio .btn--ghost, .system .btn--ghost {
  color: #fff; border-color: rgba(255,255,255,.4); background: transparent;
}
.article__cta .btn--ghost:hover, .diag__card .btn--ghost:hover, .cta-final .btn--ghost:hover,
.audioplayer .btn--ghost:hover, .res-featured .btn--ghost:hover, .bio .btn--ghost:hover, .system .btn--ghost:hover {
  border-color: var(--color-cyan); color: var(--color-cyan);
}
.hero__trust { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.hero__trust span { color: rgba(255,255,255,.7); font-size: .92rem; }
.hero__trust strong { color: #fff; font-size: 1.25rem; font-weight: 800; margin-right: 4px; }
.hero__scrollcue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.hero__scrollcue span { width: 4px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.75); animation: scrollcue 1.6s ease-in-out infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }
@media (max-width: 760px) {
  .hero__scrim { background: linear-gradient(180deg, rgba(7,20,42,.55) 0%, rgba(7,20,42,.5) 45%, rgba(7,20,42,.82) 100%); }
  .hero--cinematic { min-height: 88vh; }
  .hero__trust strong { font-size: 1.1rem; }
}

/* ---------- Video de fondo en sección (CTA final) ---------- */
.section-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .42; }
.cta-final .cta-final__bg { z-index: 0; }
.cta-final::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(11,29,58,.35), rgba(7,20,42,.85)); }
.cta-final .cta-final__inner { position: relative; z-index: 2; }

/* ---------- Fix combobox: el listbox no debe recortarse ni quedar debajo ---------- */
/* La tarjeta del formulario no recorta el desplegable. */
.diag__card { overflow: visible; }
/* Quita el blob decorativo que obligaba a overflow:hidden en esta tarjeta. */
.diag__card::before { content: none; }
/* El combo abierto crea su propio contexto de apilado por encima de los demás campos. */
.combo { position: relative; }
.combo.is-open { z-index: 70; }
.combo__panel { z-index: 70; box-shadow: 0 26px 64px rgba(0,0,0,.55); }
/* El teléfono necesita el mismo salto de z-index que el combobox (por .diag__card > * { z-index:1 }) */
.phone { position: relative; }
.phone.is-open { z-index: 80; }
.phone__panel { z-index: 80 !important; box-shadow: 0 26px 64px rgba(0,0,0,.55); }

/* ---------- Diagnóstico Tablero de Crecimiento ---------- */
.tablero__section { padding-top: clamp(96px, 14vw, 140px); }
.tablero__progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 14px; }
.tablero__progress span { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand); transition: width .4s var(--ease); }
.tablero__step { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-cyan); margin-bottom: 16px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale__btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s; min-height: 84px; justify-content: center; }
.scale__btn:hover { background: rgba(37,99,255,.22); border-color: var(--color-blue); transform: translateY(-3px); }
.scale__btn.is-selected { background: rgba(34,211,238,.2); border-color: var(--color-cyan); }
.scale__num { font-size: 1.5rem; font-weight: 800; }
.scale__label { font-size: .68rem; color: rgba(255,255,255,.65); text-align: center; line-height: 1.15; }
.diag__options--row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 540px) { .scale { grid-template-columns: repeat(5, 1fr); gap: 5px; } .scale__btn { padding: 10px 2px; min-height: 76px; } .scale__num { font-size: 1.2rem; } }

/* Marcador del tablero (resultado) */
.pitch { display: grid; gap: 12px; margin: 22px 0; text-align: left; }
.pitch__line { display: grid; grid-template-columns: 1fr; gap: 4px; }
.pitch__name { font-size: .82rem; color: rgba(255,255,255,.75); }
.pitch__bar { display: block; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.pitch__bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad-brand); }
.pitch__score { font-size: .78rem; color: var(--color-cyan); font-weight: 700; }
@media (min-width: 560px) { .pitch__line { grid-template-columns: 160px 1fr 54px; align-items: center; gap: 12px; } .pitch__name { text-align: right; } }
.tablero__highlight { text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.tablero__highlight p { color: rgba(255,255,255,.82); font-size: .92rem; }
.tablero__highlight strong { color: #fff; }
.tablero__offer { color: var(--color-cyan) !important; font-size: 1rem !important; }
.diag__result-mark.diag__result-mark { font-size: 2rem; }

/* Selección múltiple (reto) + hint */
.diag__hint { font-weight: 400; font-size: .8rem; color: rgba(255,255,255,.55); }
.diag__opt--check::after { content: ""; width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid rgba(255,255,255,.35); border-radius: 6px; opacity: 1; transition: background .2s, border-color .2s; }
.diag__opt--check:hover::after { transform: none; }
.diag__opt--check.is-selected::after { content: "✓"; display: flex; align-items: center; justify-content: center; background: var(--color-cyan); color: var(--color-navy); border-color: var(--color-cyan); font-weight: 800; font-size: .8rem; }

/* Campo de teléfono compuesto (bandera + indicativo + número) */
.phone { position: relative; display: flex; gap: 8px; }
.phone__cc { display: flex; align-items: center; gap: 6px; padding: 13px 12px; border-radius: 12px; flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-family: inherit; }
.phone__cc:hover { border-color: var(--color-cyan); }
.phone__flag { font-size: 1.15rem; line-height: 1; }
.phone__dial { color: rgba(255,255,255,.8); font-size: .9rem; }
.phone__caret { color: rgba(255,255,255,.5); font-size: .68rem; }
.phone__num { flex: 1; min-width: 0; padding: 13px 15px; border-radius: 12px; font-family: inherit; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.phone__num::placeholder { color: rgba(255,255,255,.45); }
.phone__num:focus, .phone__cc:focus-visible { outline: none; border-color: var(--color-cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.phone__panel { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; right: 0; max-height: 264px; overflow: auto;
  background: #0c2143; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 6px; box-shadow: 0 26px 64px rgba(0,0,0,.55); }
.phone__search { width: 100%; padding: 10px 12px; margin-bottom: 6px; border-radius: 9px; font-family: inherit;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.phone__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 9px; cursor: pointer;
  background: none; border: 0; color: rgba(255,255,255,.9); font-family: inherit; font-size: .92rem; text-align: left; }
.phone__opt:hover, .phone__opt.is-selected { background: rgba(37,99,255,.25); }
.phone__opt-name { flex: 1; }

/* ---------- Link en Bio (Tablero) ---------- */
.bio { position: relative; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 20px 64px; background: #07142a; color: #fff; overflow: hidden; }
.bio__bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(37,99,255,.35), transparent 60%),
              radial-gradient(50% 40% at 80% 100%, rgba(34,211,238,.22), transparent 60%); filter: blur(20px); }
.bio__inner { position: relative; z-index: 1; width: 100%; max-width: 460px; text-align: center; }
.bio__avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--grad-navy); box-shadow: 0 0 0 3px rgba(34,211,238,.4), 0 0 30px rgba(34,211,238,.35); }
.bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio__avatar span { font-size: 2rem; font-weight: 900; }
.bio__name { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.bio__role { color: var(--color-cyan); font-weight: 600; margin-top: 2px; }
.bio__tags { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 6px; letter-spacing: .02em; }
.bio__msg { color: rgba(255,255,255,.85); margin: 22px 0; line-height: 1.5; }
.bio__buttons { display: grid; gap: 12px; }
.bio__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 17px 20px; border-radius: 16px; font-weight: 700; font-size: 1rem; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: transform .2s, background .2s, border-color .2s; }
.bio__btn:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(34,211,238,.5); }
.bio__btn--primary { background: var(--color-blue); border-color: transparent; box-shadow: 0 14px 40px rgba(37,99,255,.45); }
.bio__btn--primary:hover { background: #1e54e6; }
.bio__btn--ghost { background: transparent; }
.bio__pitch { margin-top: 26px; }
.bio__pitch-title { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.bio__pitch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bio__pitch-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px; text-align: left; }
.bio__pitch-item strong { display: block; color: var(--color-cyan); font-size: .92rem; }
.bio__pitch-item span { font-size: .78rem; color: rgba(255,255,255,.65); }
.bio__pitch-item--btn { width: 100%; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; display: block; }
.bio__pitch-item--btn:hover { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.35); transform: translateY(-2px); }
.bio__pitch-more { display: block; margin-top: 8px; font-size: .72rem; font-weight: 700; color: var(--color-cyan); }
.bio__foot { margin-top: 28px; font-size: .76rem; color: rgba(255,255,255,.4); }

/* ---------- Foto en sección Tonny + ExperientIA ---------- */
.system__photo { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 340px; }
.system__photo img { position: relative; z-index: 2; max-height: 440px; width: auto; object-fit: contain; filter: drop-shadow(0 28px 55px rgba(0,0,0,.5)); }
.system__photo-glow { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); width: 80%; height: 80%; border-radius: 50%; z-index: 0; filter: blur(42px); background: radial-gradient(circle, rgba(34,211,238,.42), rgba(37,99,255,.26) 50%, transparent 72%); animation: glowPulse 7s ease-in-out infinite; }
.system__ring--orbit { inset: 8% 10% !important; border: 1px dashed rgba(34,211,238,.3) !important; animation: spin 34s linear infinite !important; }
.system__ring--orbit::before { display: none; }

/* ---------- FAQ (acordeón) ---------- */
.faq-section { background: var(--color-bg-soft); }
.faq__item { padding: 0; overflow: hidden; }
.faq__q { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--color-blue); font-size: 1.4rem; line-height: 1; transition: transform .25s var(--ease); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__item[open] { border-color: rgba(37,99,255,.3); box-shadow: var(--shadow-soft); }
.faq__a { padding: 0 22px 20px; }

/* ---------- Pulido coherente de páginas internas ---------- */
.page { position: relative; }
.page__hero { position: relative; overflow: hidden; }
.page__hero::before {
  content: ""; position: absolute; top: -35%; right: -12%; width: 52%; height: 130%; z-index: 0; pointer-events: none;
  filter: blur(72px); opacity: .6; background: radial-gradient(circle, rgba(37,99,255,.18), transparent 65%);
}
.page__hero::after {
  content: ""; position: absolute; bottom: -20%; left: -10%; width: 38%; height: 90%; z-index: 0; pointer-events: none;
  filter: blur(70px); opacity: .5; background: radial-gradient(circle, rgba(34,211,238,.14), transparent 65%);
}
.page__hero .container { position: relative; z-index: 1; }
.page__hero .eyebrow, .page__hero .kicker { margin-bottom: 14px; }
.page__lead { line-height: 1.6; }
/* Realce de íconos en tarjetas de servicio */
.card .card__icon { background: linear-gradient(135deg, rgba(37,99,255,.12), rgba(34,211,238,.12)); }

/* ---------- Agenda (reserva tipo Calendly) ---------- */
/* Modal de detalle (casos de uso, temas, programas…) */
.imodal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(6,15,32,.72); backdrop-filter: blur(6px); overflow-y: auto; }
.imodal__card { position: relative; width: min(620px, 100%); background: #fff; border-radius: 22px; padding: clamp(26px, 5vw, 44px);
  box-shadow: 0 40px 90px -30px rgba(6,15,32,.7); border: 1px solid rgba(255,255,255,.5); }
.imodal__x { position: absolute; top: 16px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-line, #e2e8f0);
  background: #fff; color: var(--color-navy, #0B1D3A); font-size: 1rem; cursor: pointer; transition: all .15s; }
.imodal__x:hover { background: var(--color-navy, #0B1D3A); color: #fff; }
.imodal__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.imodal__icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,99,255,.14), rgba(34,211,238,.14)); }
.imodal__kicker { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-blue, #2563FF); margin: 0 0 3px; }
.imodal__title { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; color: var(--color-navy, #0B1D3A); margin: 0; line-height: 1.2; }
.imodal__pain { font-size: 1.02rem; font-style: italic; color: var(--color-ink, #334155); background: rgba(37,99,255,.05); border-left: 3px solid var(--color-blue, #2563FF);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 0 0 16px; }
.imodal__promise { font-size: 1.05rem; font-weight: 600; color: var(--color-navy, #0B1D3A); margin: 0 0 16px; line-height: 1.5; }
.imodal__points { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.imodal__points li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; line-height: 1.5; color: var(--color-ink, #334155); }
.imodal__points li span { color: #10B981; font-weight: 800; flex: none; margin-top: 1px; }
.imodal__note { font-size: .9rem; color: var(--color-muted, #64748b); margin: 0 0 20px; }
.imodal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.imodal-enter-active, .imodal-leave-active { transition: opacity .25s; }
.imodal-enter-active .imodal__card, .imodal-leave-active .imodal__card { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.imodal-enter-from, .imodal-leave-to { opacity: 0; }
.imodal-enter-from .imodal__card, .imodal-leave-to .imodal__card { transform: translateY(24px) scale(.97); }
/* Afordancia: tarjetas con detalle son clicables */
.card--clickable { cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card--clickable:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(11,29,58,.4); border-color: rgba(37,99,255,.3); }
.card__more { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: .82rem; font-weight: 700; color: var(--color-blue, #2563FF); }

/* Barra de compartir en artículos/recursos */
.share-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0; margin: 8px 0; border-top: 1px solid var(--color-line, #e2e8f0); border-bottom: 1px solid var(--color-line, #e2e8f0); }
.share-bar__label { font-size: .82rem; font-weight: 700; color: var(--color-muted, #64748b); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-line, #e2e8f0); background: #fff; color: var(--color-navy, #0B1D3A); font-size: 1rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn--li:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn--x:hover { background: #000; border-color: #000; }
.share-btn--wa:hover { background: #25d366; border-color: #25d366; }
.share-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn--em:hover { background: #64748b; border-color: #64748b; }
.share-btn--copy:hover { background: var(--color-blue, #2563FF); border-color: var(--color-blue, #2563FF); }
.share-bar__state { font-size: .84rem; color: #0f9d58; font-weight: 600; }

.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; flex-wrap: wrap; }
.stepper li { flex: 1 1 120px; text-align: center; font-size: .82rem; font-weight: 600; color: var(--color-muted, #64748b);
  padding: 9px 10px; border-radius: 999px; background: rgba(11,29,58,.05); border: 1px solid transparent; transition: all .3s ease; }
.stepper li.now { color: #fff; background: linear-gradient(100deg, var(--color-blue, #2563FF), #3b6dff); box-shadow: 0 8px 22px -10px rgba(37,99,255,.7); }
.stepper li.on { color: var(--color-blue, #2563FF); background: rgba(37,99,255,.10); border-color: rgba(37,99,255,.2); }

.agenda__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.agenda-card { text-align: left; background: #fff; border: 1px solid var(--color-line, #e6ecf2); border-radius: 16px; padding: 20px;
  cursor: pointer; transition: transform .2s var(--ease, ease), box-shadow .25s, border-color .2s; display: flex; flex-direction: column; gap: 8px; }
.agenda-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(11,29,58,.4); border-color: rgba(37,99,255,.35); }
.agenda-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.agenda-card__top h3 { font-size: 1.05rem; color: var(--color-navy, #0B1D3A); }
.agenda-card__price { font-weight: 800; color: var(--color-blue, #2563FF); font-size: .92rem; white-space: nowrap; }
.agenda-card__desc { color: var(--color-muted, #64748b); font-size: .9rem; line-height: 1.5; }
.agenda-card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--color-muted, #64748b); }
.agenda-card__go { margin-left: auto; color: var(--color-blue, #2563FF); font-weight: 700; }

.agenda__panel { background: #fff; border: 1px solid var(--color-line, #e6ecf2); border-radius: 18px; padding: 24px; box-shadow: 0 20px 50px -30px rgba(11,29,58,.35); }
.agenda__back { background: none; border: 0; color: var(--color-blue, #2563FF); font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 14px; }
.agenda__sel { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--color-line, #e6ecf2); }
.agenda__sel strong { color: var(--color-navy, #0B1D3A); }
.agenda__sel span { color: var(--color-muted, #64748b); font-size: .88rem; }
.agenda__hint { color: var(--color-muted, #64748b); font-size: .9rem; margin-bottom: 14px; }
.agenda__loading { padding: 30px; text-align: center; color: var(--color-muted, #64748b); }
.agenda__days { display: grid; gap: 16px; }
.agenda__day h4 { font-size: .85rem; text-transform: capitalize; color: var(--color-navy, #0B1D3A); margin-bottom: 8px; }
.agenda__times { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-time { padding: 9px 15px; border-radius: 10px; border: 1px solid var(--color-line, #e6ecf2); background: #fff; font-weight: 600; font-size: .9rem;
  color: var(--color-navy, #0B1D3A); cursor: pointer; transition: all .18s ease; }
.chip-time:hover { border-color: var(--color-blue, #2563FF); background: rgba(37,99,255,.06); transform: translateY(-2px); }
.agenda__prefer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.agenda__prefer .field { display: grid; gap: 5px; }
.agenda__prefer .field span { font-size: .8rem; font-weight: 600; color: var(--color-muted, #64748b); }
.agenda__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.agenda__summary > div { background: rgba(37,99,255,.05); border-radius: 12px; padding: 12px; }
.agenda__summary span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted, #64748b); margin-bottom: 3px; }
.agenda__summary strong { color: var(--color-navy, #0B1D3A); font-size: .9rem; }
/* El formulario de agenda va sobre fondo oscuro (.diag__card): texto claro. */
.agenda__prep-title { margin: 10px 0 0; font-size: .9rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.agenda__prep-title::before { content: "✎"; color: var(--color-cyan, #22D3EE); font-size: .95rem; }
.agenda__prep-title .muted { font-weight: 500; color: rgba(255,255,255,.6); font-size: .8rem; }
.agenda__prep-note { margin: 2px 0 4px; font-size: .82rem; color: #6ee7b7; font-weight: 600; }
.agenda__done { text-align: center; }
.agenda__done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 560px) { .agenda__summary { grid-template-columns: 1fr; } .agenda__prefer { grid-template-columns: 1fr; } }

/* ---------- Recursos / Blog ---------- */
.chips-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chipf { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--color-line, #e6ecf2); background: #fff; font-weight: 600; font-size: .85rem;
  color: var(--color-navy, #0B1D3A); cursor: pointer; transition: all .18s ease; }
.chipf:hover { border-color: var(--color-blue, #2563FF); }
.chipf.on { background: linear-gradient(100deg, var(--color-blue, #2563FF), #3b6dff); color: #fff; border-color: transparent; }

.res-featured { display: flex; align-items: center; gap: 20px; justify-content: space-between; background: linear-gradient(120deg, #0d2249, var(--color-navy, #0B1D3A));
  color: #fff; border-radius: 20px; padding: 32px; margin-bottom: 26px; overflow: hidden; position: relative; transition: transform .2s var(--ease, ease), box-shadow .25s; }
.res-featured:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(11,29,58,.7); }
.res-featured::after { content: ""; position: absolute; top: -40%; right: -8%; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.25), transparent 65%); pointer-events: none; }
.res-featured__body { position: relative; z-index: 1; max-width: 640px; }
.res-featured__body h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 8px 0 10px; }
.res-featured__body p { color: rgba(255,255,255,.82); line-height: 1.55; }
.res-featured__meta { display: inline-block; margin-top: 12px; font-size: .82rem; color: rgba(255,255,255,.6); }
.res-featured__go { position: relative; z-index: 1; white-space: nowrap; font-weight: 700; color: var(--color-cyan, #22D3EE); }
.res-featured .recurso__type { color: var(--color-cyan, #22D3EE); }
@media (max-width: 680px) { .res-featured { flex-direction: column; align-items: flex-start; padding: 24px; } }

a.recurso { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s var(--ease, ease), box-shadow .25s, border-color .2s; }
a.recurso:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -26px rgba(11,29,58,.4); border-color: rgba(37,99,255,.35); }
a.recurso .recurso__link { margin-top: auto; }

/* Artículo */
.article__back { display: inline-block; color: var(--color-blue, #2563FF); font-weight: 600; margin-bottom: 14px; }
.article__meta { color: var(--color-muted, #64748b); font-size: .88rem; margin-top: 10px; }
.article__body { font-size: 1.06rem; line-height: 1.8; color: #1f2b45; }
.article__body h2 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--color-navy, #0B1D3A); }
.article__body p { margin-bottom: 16px; }
.article__body ul { margin: 0 0 16px 20px; display: grid; gap: 8px; }
.article__body a { color: var(--color-blue, #2563FF); font-weight: 600; }
.article__body--teaser { position: relative; }
.article__cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; margin-bottom: 22px; }
/* Reproductor de audio premium */
.audioplayer { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 24px; border-radius: 18px;
  background: linear-gradient(120deg, #0d2249, var(--color-navy, #0B1D3A)); color: #fff; box-shadow: 0 20px 45px -26px rgba(11,29,58,.7); }
.audioplayer__btn { width: 50px; height: 50px; flex: none; border: 0; border-radius: 50%; cursor: pointer; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--color-blue, #2563FF), var(--color-cyan, #22D3EE)); box-shadow: 0 8px 22px -8px rgba(37,99,255,.8);
  display: grid; place-items: center; transition: transform .15s; }
.audioplayer__btn:hover { transform: scale(1.06); }
.audioplayer__body { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.audioplayer__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.audioplayer__top strong { font-size: .92rem; }
.audioplayer__time { font-size: .78rem; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.audioplayer__track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.16); cursor: pointer; overflow: hidden; }
.audioplayer__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--color-blue, #2563FF), var(--color-cyan, #22D3EE)); transition: width .15s linear; }
.audioplayer__credit { align-self: flex-end; font-size: .7rem; letter-spacing: .04em; color: var(--color-cyan, #22D3EE); opacity: .85; }
.article__body .reading-here { background: linear-gradient(90deg, rgba(37,99,255,.12), transparent 80%); box-shadow: -12px 0 0 rgba(37,99,255,.12); border-radius: 4px; transition: background .3s; }
.gate { margin-top: 26px; background: #fff; border: 1px solid var(--color-line, #e6ecf2); border-radius: 18px; padding: 26px; box-shadow: 0 20px 50px -30px rgba(11,29,58,.35); }
.gate__title { font-size: 1.25rem; color: var(--color-navy, #0B1D3A); }
.gate__text { color: var(--color-muted, #64748b); margin: 6px 0 16px; }

/* Barra de progreso de lectura */
.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.reading-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--color-blue, #2563FF), var(--color-cyan, #22D3EE)); transition: width .12s linear; }

/* Layout artículo + guía de lectura (TOC). Mobile-first: TOC arriba, sticky. */
.article__wrap { display: block; }
.toc { margin-bottom: 22px; background: #fff; border: 1px solid var(--color-line, #e6ecf2); border-radius: 14px; padding: 14px 16px; }
.toc__title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted, #64748b); margin-bottom: 8px; }
.toc nav { display: flex; flex-direction: column; gap: 4px; }
.toc a { font-size: .88rem; color: var(--color-muted, #64748b); padding: 4px 0 4px 12px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--color-navy, #0B1D3A); }
.toc a.is-active { color: var(--color-blue, #2563FF); border-left-color: var(--color-blue, #2563FF); font-weight: 600; }
.article__cta { margin-top: 34px; padding: 26px; border-radius: 18px; background: linear-gradient(120deg, #0d2249, var(--color-navy, #0B1D3A)); color: #fff; text-align: center; }
.article__cta h3 { font-size: 1.2rem; margin-bottom: 6px; }
.article__cta p { color: rgba(255,255,255,.8); margin-bottom: 16px; }

@media (min-width: 900px) {
  .article__wrap--toc { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
  .article__wrap--toc .toc { position: sticky; top: 96px; margin-bottom: 0; }
}
/* En móvil la guía estorba: primero portada, audio y contenido. */
@media (max-width: 899px) { .toc { display: none; } }

/* ---------- Micro-interacciones globales (percepción premium) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
::selection { background: rgba(37, 99, 255, .22); color: inherit; }

/* Barrido de luz en el botón primario (hover) */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.97); }

/* Foco visible consistente (accesible y elegante) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--color-cyan, #22D3EE); outline-offset: 2px; border-radius: 6px; }

/* Los formularios "responden" al foco: la tarjeta se eleva sutilmente */
.diag__card:focus-within, .gate:focus-within, .agenda__panel:focus-within {
  box-shadow: 0 26px 60px -28px rgba(37, 99, 255, .45); transition: box-shadow .35s var(--ease);
}

/* Tarjetas clicables comunican interacción con el cursor y la sombra */
.agenda-card:active, a.recurso:active, .chip-time:active { transform: scale(.98); }

/* Imágenes del artículo entran con suavidad */
.article__body img { animation: imgIn .6s var(--ease) both; }
@keyframes imgIn { from { opacity: 0; transform: scale(.985); } }

/* ---------- Capa cinematográfica por scroll (motionsites-level) ---------- */
/* Parallax: usa la propiedad `translate` (no choca con animaciones de transform). */
.has-plx { translate: 0 var(--plx, 0); will-change: translate; }

/* Video del hero con zoom-drift controlado por scroll (transform inline desde fx.js) */
.hero__video { transition: transform .1s linear; will-change: transform; }

/* Header inteligente: se esconde al bajar, reaparece al subir */
.header { transition: transform .45s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease); }
.header--hidden { transform: translateY(-100%); }

/* Cortina de marca entre rutas */
.route-curtain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background: linear-gradient(120deg, #0d2249 0%, var(--color-navy, #0B1D3A) 55%, #081730 100%);
  transform: scaleY(0); transform-origin: top;
  transition: transform .42s cubic-bezier(.76, 0, .24, 1);
  display: grid; place-items: center;
}
.route-curtain.is-on { transform: scaleY(1); transform-origin: bottom; }
.route-curtain__dot {
  width: 34px; height: 34px; border-radius: 50%; opacity: 0; transform: scale(.6);
  background: radial-gradient(circle, var(--color-cyan, #22D3EE), var(--color-blue, #2563FF) 55%, transparent 75%);
  transition: opacity .2s ease .15s, transform .3s var(--ease) .15s;
}
.route-curtain.is-on .route-curtain__dot { opacity: 1; transform: scale(1); animation: curtainPulse 1s ease-in-out infinite alternate; }
@keyframes curtainPulse { to { transform: scale(1.25); } }

/* Bento con profundidad 3D real al cursor */
.bento__tile { transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease); transform-style: preserve-3d; }

/* Éxito de formularios: el check se dibuja (recompensa visual) */
.diag__result-mark { animation: markPop .55s var(--ease) both; position: relative; }
.diag__result-mark::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, .55); opacity: 0;
  animation: markRing 1s var(--ease) .25s both;
}
@keyframes markPop { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes markRing { 0% { opacity: 0; transform: scale(.7); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }

/* Kickers con línea que se enciende al entrar en viewport */
.kicker { position: relative; padding-left: 34px; }
.kicker::before { content: ""; position: absolute; left: 0; top: 50%; height: 2px; width: 24px; transform: translateY(-50%) scaleX(0); transform-origin: left; border-radius: 2px; background: linear-gradient(90deg, var(--color-blue, #2563FF), var(--color-cyan, #22D3EE)); animation: kickerLine .8s var(--ease) .15s forwards; }
@keyframes kickerLine { to { transform: translateY(-50%) scaleX(1); } }

/* ---------- UI visible: navegación, CTA y señales de scroll ---------- */
/* Enlaces del nav con subrayado de marca que crece */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-blue, #2563FF), var(--color-cyan, #22D3EE));
  transition: right .32s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

/* Mega-menú: entrada escalonada + flecha que aparece por ítem */
.mega__item { position: relative; padding-right: 36px; }
.mega__item::after {
  content: "→"; position: absolute; right: 14px; top: 50%; transform: translate(-8px, -50%);
  opacity: 0; color: var(--color-blue, #2563FF); font-weight: 700; transition: opacity .22s, transform .25s var(--ease);
}
.mega__item:hover::after { opacity: 1; transform: translate(0, -50%); }
.nav__group:hover .mega__item, .nav__group:focus-within .mega__item { animation: megaIn .4s var(--ease) both; }
.nav__group:hover .mega__item:nth-child(1) { animation-delay: .02s; }
.nav__group:hover .mega__item:nth-child(2) { animation-delay: .06s; }
.nav__group:hover .mega__item:nth-child(3) { animation-delay: .10s; }
.nav__group:hover .mega__item:nth-child(4) { animation-delay: .14s; }
.nav__group:hover .mega__item:nth-child(5) { animation-delay: .18s; }
@keyframes megaIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* CTA primario con halo de marca (contundencia comercial) */
.btn--primary { box-shadow: 0 12px 32px -12px rgba(37, 99, 255, .65); }
.btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(37, 99, 255, .8); }

/* Indicador de scroll en el hero cinematográfico */
.hero--cinematic::after {
  content: ""; position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.55); border-radius: 13px;
  background: radial-gradient(circle, rgba(255,255,255,.95) 2.5px, transparent 3.5px) no-repeat;
  background-size: 100% 10px; background-position: 50% 6px;
  animation: scrollCue 1.9s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 15% { background-position: 50% 6px; opacity: 1; }
  60% { background-position: 50% 22px; opacity: 1; }
  100% { background-position: 50% 22px; opacity: 0; }
}

/* Stepper de la agenda: pasos como pastillas, sin línea conectora
   (la línea generaba ruido visual en los huecos entre pasos). */
@media (min-width: 560px) {
  .stepper li { position: relative; z-index: 1; }
}

/* Consentimiento de datos en formularios */
.diag__consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: .82rem; color: rgba(255,255,255,.82); line-height: 1.5; margin-top: 4px; }
.diag__consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--color-cyan, #22D3EE); }
.diag__consent a { color: var(--color-cyan, #22D3EE); text-decoration: underline; }

/* ---------- Respeto a reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-aurora, .fx-grain, .fx-cursor, .hero__portrait::before, .sticky-cta::before,
  .metrics::before, .system::before, .cta-final::before, .diag__card::before { animation: none !important; }
  .grad, .grad-cyan { animation: none; }
  .reveal { filter: none; transform: none; }
  .has-plx { translate: none; }
  .hero__video { transform: none !important; }
  .header--hidden { transform: none; }
  .route-curtain { display: none; }
  .bento__tile { transform: none; }
  .diag__result-mark, .diag__result-mark::after, .kicker::before { animation: none !important; opacity: 1; }
  .kicker::before { transform: translateY(-50%) scaleX(1); }
  .btn--primary::after { display: none; }
  .hero--cinematic::after { animation: none; opacity: .6; }
  .nav__group:hover .mega__item { animation: none; }
}
