/* Academia JCONCHA — sistema visual
   Marca: azul del logo #1361A7, negro, gris #B3B3B3, blanco.
   Tipo: Inter variable servida en local (la de Google Fonts no trae las
   variantes cv01–cv13; la "a" de un piso es cv11). */
@font-face {
  font-family: 'InterVariable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterVariable.woff2') format('woff2');
}

:root {
  --blue: #1361A7;
  --blue-500: #1a72c4;
  --blue-400: #3b8fe0;
  --blue-300: #7db6ee;
  --blue-100: #e3effb;
  --blue-50: #f1f7fd;
  --navy: #07182c;
  --navy-2: #0b2340;
  --navy-3: #11315a;
  --ink: #0b0f17;
  --body: #3b4452;
  --muted: #6b7482;
  --gray: #B3B3B3;
  --line: #e4e8ee;
  --paper: #f6f8fb;
  --white: #ffffff;
  --star: #ffb400;
  --wa: #25D366;
  --wa-dark: #128C7E;
  --ok: #16a34a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 15, 23, .06), 0 2px 8px rgba(11, 15, 23, .04);
  --shadow: 0 10px 30px -10px rgba(7, 24, 44, .18), 0 2px 6px rgba(7, 24, 44, .06);
  --shadow-lg: 0 30px 80px -20px rgba(7, 24, 44, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'InterVariable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11' 1, 'cv03' 1, 'cv04' 1, 'cv09' 1, 'ss03' 1;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- utilidades ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--blue-300); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--body); max-width: 62ch; }
.on-dark { color: #c9d6e6; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lead { color: #c9d6e6; }
.mark {
  position: relative; white-space: nowrap; color: var(--blue);
}
.on-dark .mark { color: #fff; }
.mark::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em; z-index: -1;
  background: linear-gradient(90deg, rgba(59,143,224,.35), rgba(59,143,224,.12));
  border-radius: 4px; transform-origin: left; transform: scaleX(0);
  transition: transform 1s var(--ease) .35s;
}
.on-dark .mark::after { background: linear-gradient(90deg, rgba(19,97,167,.95), rgba(59,143,224,.55)); }
.is-visible .mark::after, .mark.is-visible::after, .hero .mark::after { transform: scaleX(1); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec-tight { padding: clamp(56px, 7vw, 88px) 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: 1rem; letter-spacing: -.01em;
  box-shadow: 0 8px 24px -8px rgba(19,97,167,.55), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.28) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(19,97,167,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn:hover::before { transform: translateX(120%); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.on-dark .btn-ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.on-dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.btn-wa { --bg: var(--wa); --fg: #fff; box-shadow: 0 8px 24px -8px rgba(37,211,102,.55); }
.btn-wa:hover { box-shadow: 0 14px 34px -10px rgba(37,211,102,.7); }
.btn-white { --bg: #fff; --fg: var(--blue); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .93rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--blue); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- barra superior ---------- */
.topbar {
  background: var(--navy); color: #b9c7d9; font-size: .82rem; position: relative; z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-news { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.topbar-news span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: live 2s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.topbar-links { display: flex; gap: 1.25rem; flex: none; }
.topbar-links a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar-links svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .topbar-links .hide-m { display: none; } .topbar { font-size: .78rem; } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50; padding: 12px 0;
  transition: padding .35s var(--ease);
}
.hdr-bar {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  background: rgba(255,255,255,.78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(228,232,238,.9); border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: var(--shadow-sm); transition: box-shadow .35s, background .35s;
}
.hdr.is-scrolled { padding: 8px 0; }
.hdr.is-scrolled .hdr-bar { box-shadow: var(--shadow); background: rgba(255,255,255,.92); }
.hdr-logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: .15rem; position: relative; }
.nav > a, .nav-dd > button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .9rem; border-radius: 999px; color: var(--ink); font-weight: 560; font-size: .95rem;
  background: none; border: 0; transition: color .2s;
}
.nav > a[aria-current="page"], .nav-dd.is-current > button { color: var(--blue); }
.nav-pill { position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 999px; background: var(--blue-50); opacity: 0; transition: left .35s var(--ease), width .35s var(--ease), opacity .25s; pointer-events: none; }
.nav-dd { position: static; }
.nav-dd svg { width: 14px; height: 14px; transition: transform .3s; }
.nav-dd.open svg, .nav-dd:hover svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: min(760px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.mega::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dd:hover .mega, .nav-dd.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem; border-radius: 14px; transition: background .2s; }
.mega a:hover { background: var(--paper); }
.mega-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.mega-ic svg { width: 20px; height: 20px; transform: none !important; }
.mega b { display: block; color: var(--ink); font-weight: 650; font-size: .95rem; letter-spacing: -.01em; }
.mega small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 6px; padding: .9rem 1rem; border-radius: 14px; background: var(--navy); color: #c9d6e6; font-size: .88rem; }
.mega-foot a { padding: 0; color: #fff; font-weight: 650; background: none !important; }
.hdr-cta { display: flex; align-items: center; gap: .5rem; }
.btn-aula { --bg: var(--paper); --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-aula:hover { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1060px) {
  .nav, .hdr-cta .btn-aula { display: none; }
  .burger { display: block; }
  .hdr-logo img { height: 30px; }
}
@media (max-width: 520px) { .hdr-cta .btn-trial .t-long { display: none; } .hdr-bar { padding-left: 14px; } }
@media (min-width: 521px) { .hdr-cta .btn-trial .t-short { display: none; } }

/* menú móvil */
.mnav {
  position: fixed; inset: 0; z-index: 45; background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  padding: 120px var(--gut) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav a { display: block; padding: .8rem 0; font-size: 1.35rem; font-weight: 650; color: var(--ink); letter-spacing: -.02em; border-bottom: 1px solid var(--line); transform: translateY(10px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.mnav a.sub { font-size: 1.02rem; font-weight: 550; color: var(--body); padding-left: 1rem; }
.menu-open .mnav a { transform: none; opacity: 1; }
.mnav .btn { margin-top: 1.25rem; width: 100%; font-size: 1.05rem; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--navy); color: #c9d6e6; overflow: hidden; isolation: isolate;
  margin-top: -96px; padding: calc(96px + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 110px);
}
.hero:not(.hero-sub) h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.hero canvas.glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 110%, rgba(7,24,44,.0), rgba(7,24,44,.55) 70%),
              linear-gradient(180deg, rgba(7,24,44,.35), rgba(7,24,44,0) 30%, rgba(7,24,44,.6));
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { color: #c9d6e6; margin-bottom: 1.6rem; }
.hero-grid > * { min-width: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.rot { display: inline-grid; vertical-align: top; color: var(--blue-300); max-width: 100%; }
.rot > span { grid-area: 1 / 1; }
.rot .w { display: inline-block; white-space: nowrap; }
.rot .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-70deg); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.rot .on .ch { opacity: 1; transform: none; }
.rot .off .ch { opacity: 0; transform: translateY(-.45em) rotateX(70deg); }
.hero-ticks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 2rem; padding: 0; list-style: none; font-size: .95rem; color: #dbe6f3; }
.hero-ticks li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-ticks svg { width: 18px; height: 18px; color: #3ddc84; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-sub { padding: calc(96px + clamp(36px, 5vw, 64px)) 0 clamp(56px, 7vw, 90px); }
.hero-sub h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: #93a8c2; margin-bottom: 1.25rem; padding: 0; list-style: none; }
.crumbs a { color: #c9d6e6; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }

/* píldora de confianza con avatares */
.trust {
  display: inline-flex; align-items: center; gap: .8rem; padding: 6px 16px 6px 6px; margin-bottom: 1.5rem;
  border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); color: #fff; font-size: .9rem; transition: background .3s, transform .3s var(--ease);
}
.trust:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.avs { display: flex; }
.av {
  --h: 210; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: 0;
  background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 30) 70% 38%));
  border: 2px solid var(--navy); margin-left: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  animation: avIn .6s var(--ease) both;
}
.avs .av:first-child { margin-left: 0; }
@keyframes avIn { from { opacity: 0; transform: translateX(-8px) scale(.7); } }
.trust-txt b { font-weight: 700; }
.trust-stars { color: var(--star); letter-spacing: 1px; margin-right: .25rem; }
.gmark { width: 18px; height: 18px; flex: none; }

/* símbolos flotantes */
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters span {
  position: absolute; font-weight: 600; color: rgba(125,182,238,.22); font-size: clamp(1rem, 2vw, 1.6rem);
  animation: drift var(--d, 14s) ease-in-out infinite alternate; letter-spacing: 0;
}
@keyframes drift { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(var(--x, 20px), var(--y, -30px)) rotate(6deg); } }
@media (max-width: 760px) { .floaters span:nth-child(n+5) { display: none; } }

/* ---------- formulario ---------- */
.form-card {
  position: relative; background: rgba(255,255,255,.98); color: var(--body); border-radius: 26px; padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.2);
}
.form-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 27px; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), rgba(59,143,224,.0), rgba(59,143,224,.9), rgba(255,255,255,.6), rgba(59,143,224,.0) 40%);
  animation: spin 6s linear infinite; filter: blur(8px); opacity: .8;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }
.form-badge {
  position: absolute; top: -14px; right: 22px; background: #16a34a; color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; box-shadow: 0 6px 16px -4px rgba(22,163,74,.6);
}
.form-card h2, .form-card h3, .on-dark .form-card h2, .on-dark .form-card h3 { font-size: 1.45rem; margin-bottom: .25rem; color: var(--ink); }
.form-card .fsub { color: var(--muted); font-size: .93rem; margin-bottom: 1.1rem; }
.field { position: relative; margin-bottom: .75rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 1.35rem .95rem .5rem; min-height: 56px; outline: none; appearance: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field select { padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7482' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; }
.field label { position: absolute; left: 1rem; top: 1.05rem; font-size: 1rem; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(19,97,167,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-val + label { top: .45rem; font-size: .72rem; font-weight: 600; color: var(--blue); letter-spacing: .02em; }
.field.err input, .field.err select { border-color: #dc2626; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.frow .field { margin-bottom: .75rem; }
@media (max-width: 440px) { .frow { grid-template-columns: 1fr; gap: 0; } }
.chips-in { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .9rem; }
.chips-in button { border: 1.5px solid var(--line); background: #fff; color: var(--body); border-radius: 999px; padding: .38rem .8rem; font-size: .84rem; font-weight: 560; transition: all .2s; }
.chips-in button:hover { border-color: var(--blue-300); }
.chips-in button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips-lab { font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.legal-chk { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: .25rem 0 1rem; line-height: 1.45; }
.legal-chk input { margin-top: .15rem; width: 16px; height: 16px; accent-color: var(--blue); flex: none; }
.legal-chk a { color: var(--blue); text-decoration: underline; }
.form-foot { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: .85rem; font-size: .8rem; color: var(--muted); }
.form-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.form-foot svg { width: 15px; height: 15px; color: var(--ok); }
.form-ok { display: none; text-align: center; padding: 1.5rem .5rem; }
.form-ok .okic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: var(--ok); animation: pop .6s var(--ease); }
.form-ok .okic svg { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.form-card.sent form { display: none; }
.form-card.sent .form-ok { display: block; }

/* ---------- franja de cifras ---------- */
.stats { position: relative; z-index: 2; margin-top: -48px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.stat { padding: clamp(20px, 3vw, 32px); text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 750; color: var(--ink); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b em { font-style: normal; color: var(--star); font-size: .7em; margin-left: .1em; }
.stat > span { display: block; margin-top: .5rem; font-size: .88rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- marquesina ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap, 20px); width: max-content; animation: marq var(--dur, 40s) linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - var(--gap, 20px) / 2)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.inst { display: flex; align-items: center; gap: .9rem; padding: .75rem 1.3rem .75rem .75rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.inst img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.inst b { color: var(--ink); font-weight: 650; font-size: .98rem; letter-spacing: -.01em; }
.inst small { display: block; color: var(--muted); font-size: .8rem; }
.school { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); white-space: nowrap; font-weight: 560; color: var(--ink); font-size: .93rem; }
.school svg { width: 16px; height: 16px; color: var(--blue); }
.logos-label { text-align: center; font-size: .85rem; color: var(--muted); font-weight: 560; margin-bottom: 1.25rem; }

/* ---------- tarjetas de cursos (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(19,97,167,.10), transparent 45%);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcec; }
.card:hover::before { opacity: 1; }
.bento .card { grid-column: span 2; }
.bento .card.w3 { grid-column: span 3; }
.bento .card.w4 { grid-column: span 4; }
.card-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 1.2rem; transition: transform .5s var(--ease), background .3s, color .3s; }
.card:hover .card-ic { transform: rotate(-6deg) scale(1.06); background: var(--blue); color: #fff; }
.card-ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.card p { font-size: .98rem; margin-bottom: 1.1rem; }
.card .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.card .tags li { font-size: .78rem; font-weight: 600; color: var(--body); background: var(--paper); border: 1px solid var(--line); padding: .25rem .6rem; border-radius: 999px; }
.card .more { margin-top: auto; }
.card .price-hint { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
.card .price-hint b { color: var(--ink); }
.card.hot { background: linear-gradient(160deg, var(--navy-2), var(--navy)); border-color: transparent; color: #c9d6e6; }
.card.hot h3 { color: #fff; }
.card.hot .card-ic { background: rgba(255,255,255,.08); color: var(--blue-300); }
.card.hot:hover .card-ic { background: var(--blue); color: #fff; }
.card.hot .tags li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #dbe6f3; }
.card.hot .link-arrow { color: #fff; }
.card.hot .price-hint { color: #93a8c2; } .card.hot .price-hint b { color: #fff; }
.card.hot::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(59,143,224,.22), transparent 45%); }
.flag { position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1a1300; background: var(--star); padding: .3rem .65rem; border-radius: 999px; }
.card-art { position: absolute; right: -20px; bottom: -30px; font-size: 9rem; font-weight: 800; letter-spacing: -.06em; color: rgba(19,97,167,.05); line-height: 1; z-index: -1; pointer-events: none; transition: transform .8s var(--ease); }
.card.hot .card-art { color: rgba(255,255,255,.05); }
.card:hover .card-art { transform: translate(-10px, -10px) rotate(-4deg); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .card, .bento .card.w3, .bento .card.w4 { grid-column: span 1; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }

/* ---------- método (pasos con progreso) ---------- */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.method-sticky { position: sticky; top: 120px; }
.steps { position: relative; padding-left: 64px; }
.steps-rail { position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-rail i { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: linear-gradient(var(--blue-400), var(--blue)); border-radius: 2px; transition: height .15s linear; }
.step { position: relative; padding: 0 0 clamp(36px, 5vw, 56px); }
.step:last-child { padding-bottom: 0; }
.step-n {
  position: absolute; left: -64px; top: -4px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: 1rem;
  transition: all .5s var(--ease);
}
.step.is-on .step-n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(19,97,167,.12); transform: scale(1.05); }
.step h3 { font-size: 1.4rem; margin-bottom: .4rem; transition: color .3s; }
.step p { margin: 0; max-width: 52ch; }
.step .pill { display: inline-block; margin-top: .75rem; font-size: .8rem; font-weight: 650; color: var(--blue); background: var(--blue-50); padding: .3rem .7rem; border-radius: 999px; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } .method-sticky { position: static; } }

/* tarjeta visual del método: "ficha de seguimiento" */
.tracker { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; margin-top: 28px; }
.tracker-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tracker-h b { color: var(--ink); font-size: .98rem; }
.tracker-h span { font-size: .78rem; color: var(--ok); background: #dcfce7; padding: .2rem .55rem; border-radius: 999px; font-weight: 650; }
.tr-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.tr-row .bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.tr-row .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue-400), var(--blue)); transition: width 1.6s var(--ease); }
.tr-row b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.is-visible .tr-row .bar i { width: var(--w); }

/* ---------- galería de fotos ---------- */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--navy); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.14); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; color: #fff; font-size: .85rem; font-weight: 600; padding: .45rem .75rem; border-radius: 10px; background: rgba(7,24,44,.55); backdrop-filter: blur(8px); width: fit-content; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
}

/* ---------- reseñas ---------- */
.reviews { background: var(--navy); overflow: hidden; }
.reviews .glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; filter: blur(120px); opacity: .35; pointer-events: none; }
.rv-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.score {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px; padding: 28px 32px; min-width: 300px; backdrop-filter: blur(10px); text-align: center; position: relative;
}
.score-g { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.score-g svg { width: 22px; height: 22px; }
.score-n { font-size: 5rem; font-weight: 750; color: #fff; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stars { position: relative; display: inline-block; font-size: 1.6rem; letter-spacing: 3px; line-height: 1; margin: .5rem 0 .6rem; color: rgba(255,255,255,.18); }
.stars::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--fill, 0%); overflow: hidden; color: var(--star); transition: width 1.8s var(--ease) .3s; white-space: nowrap; }
.score p { margin: 0; color: #c9d6e6; font-size: .95rem; }
.score p b { color: #fff; }
.score .btn { margin-top: 1rem; }
.rv-quote { font-size: clamp(1.35rem, 2.6vw, 2.05rem); color: #fff; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; margin: 0 0 1rem; }
.rv-quote-by { color: #93a8c2; font-size: .95rem; display: flex; align-items: center; gap: .6rem; }
.rv-rows { display: grid; gap: 18px; }
.rv {
  width: 380px; flex: none; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 22px;
  color: #c9d6e6; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.rv:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }
.rv-h { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.rv-h .av { margin: 0; border-color: transparent; width: 40px; height: 40px; font-size: .9rem; animation: none; }
.rv-h b { display: block; color: #fff; font-weight: 650; font-size: .95rem; }
.rv-h small { display: block; color: #93a8c2; font-size: .78rem; }
.rv-h .g { margin-left: auto; width: 20px; height: 20px; opacity: .9; }
.rv-s { color: var(--star); letter-spacing: 2px; font-size: .95rem; margin-bottom: .4rem; }
.rv p { margin: 0; font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 28px; }
.rv-tabs button { border: 1px solid rgba(255,255,255,.16); background: transparent; color: #c9d6e6; border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 560; transition: all .25s; }
.rv-tabs button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.rv-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.rv-tabs em { font-style: normal; opacity: .6; margin-left: .3rem; font-size: .8em; }
@media (max-width: 820px) { .rv-top { grid-template-columns: 1fr; } .score { min-width: 0; } .rv { width: 300px; } }
.light-reviews .rv { background: #fff; border-color: var(--line); color: var(--body); box-shadow: var(--shadow-sm); }
.light-reviews .rv-h b { color: var(--ink); } .light-reviews .rv-h small { color: var(--muted); }

/* ---------- tarifas ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.price .sub { font-size: .88rem; color: var(--muted); min-height: 1.4em; }
.price .amt { margin: 1rem 0 1rem; display: flex; align-items: baseline; gap: .35rem; }
.price .amt small { font-size: .85rem; color: var(--muted); font-weight: 560; }
.price .amt b { font-size: 2.7rem; font-weight: 750; color: var(--ink); letter-spacing: -.045em; line-height: 1; }
.price .amt span { color: var(--muted); font-size: .95rem; }
.price ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.price li { display: flex; gap: .55rem; align-items: center; }
.price li svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.price .btn { margin-top: auto; }
.price.feat { background: linear-gradient(165deg, var(--navy-2), var(--navy)); color: #c9d6e6; border-color: transparent; box-shadow: var(--shadow-lg); }
.price.feat h3, .price.feat .amt b { color: #fff; }
.price.feat .sub, .price.feat .amt small, .price.feat .amt span { color: #93a8c2; }
.price.feat li svg { color: var(--blue-300); }
@media (max-width: 980px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .prices { grid-template-columns: 1fr; } }
.modes { margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; background: var(--blue-50); border: 1px solid #d3e4f6; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.modes-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.modes-list span { background: #fff; border: 1px solid #d3e4f6; border-radius: 999px; padding: .5rem .95rem; font-weight: 600; color: var(--ink); font-size: .92rem; display: inline-flex; gap: .45rem; align-items: center; }
.modes-list svg { width: 16px; height: 16px; color: var(--blue); }
@media (max-width: 820px) { .modes { grid-template-columns: 1fr; } }

/* ---------- por qué / features ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat .card-ic { margin-bottom: 1rem; }
.feat h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feat p { margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }

/* split texto+imagen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.media-frame { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--navy); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.95); border-radius: 16px; padding: .8rem 1rem; display: flex; gap: .75rem; align-items: center; box-shadow: var(--shadow); max-width: calc(100% - 36px); }
.media-badge b { display: block; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
.media-badge small { color: var(--muted); font-size: .8rem; }
.media-badge .bic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.media-badge .bic svg { width: 22px; height: 22px; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: .12rem; }
.on-dark .checks svg { color: var(--blue-300); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* chips de asignaturas */
.subjects { display: flex; flex-wrap: wrap; gap: .55rem; }
.subj { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .96rem; transition: all .3s var(--ease); }
a.subj:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.subj .sd { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.subj-group { margin-bottom: 1.75rem; }
.subj-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 650; margin-bottom: .8rem; }

/* niveles cambridge */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level { position: relative; border-radius: var(--radius); padding: 28px; color: #fff; overflow: hidden; isolation: isolate; min-height: 250px; display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.level:hover { transform: translateY(-5px) rotate(-.4deg); }
.level::after { content: attr(data-lv); position: absolute; right: -8px; bottom: -34px; font-size: 9rem; font-weight: 800; letter-spacing: -.06em; opacity: .14; z-index: -1; }
.level.b1 { background: linear-gradient(150deg, #f08a24, #c4600d); }
.level.b2 { background: linear-gradient(150deg, #1f9d55, #13703b); }
.level.c1 { background: linear-gradient(150deg, var(--blue-500), #0b3f73); }
.level.ap { background: linear-gradient(150deg, #7c4ddb, #4c2a9c); }
.level.slp { background: linear-gradient(150deg, #1d3557, #0b1a2e); }
.level h3 { color: #fff; font-size: 1.5rem; margin-bottom: .2rem; }
.level .lv-k { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 1rem; }
.level p { color: rgba(255,255,255,.9); font-size: .98rem; }
.level a { margin-top: auto; color: #fff; font-weight: 650; display: inline-flex; gap: .4rem; align-items: center; }
.level a svg { width: 18px; height: 18px; transition: transform .3s; }
.level a:hover svg { transform: translateX(4px); }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr; } .level { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.3rem 0; font-weight: 650; color: var(--ink); font-size: 1.07rem; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--paper); position: relative; transition: background .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .4s var(--ease), background .3s; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--blue); transform: rotate(180deg); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 3rem 1.3rem 0; margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- CTA final + contacto ---------- */
.cta-final { position: relative; background: var(--navy); overflow: hidden; isolation: isolate; }
.cta-final canvas.glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cta-grid { display: grid; grid-template-columns: 1fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--blue-300); border: 1px solid rgba(255,255,255,.1); }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: #fff; font-weight: 650; }
.contact-list small { color: #93a8c2; font-size: .88rem; }
.contact-list a:hover b { text-decoration: underline; }
.map {
  margin-top: 1.5rem; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); height: 240px; background: var(--navy-2);
  position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.map-load { position: absolute; inset: 0; display: grid; place-items: center; color: #c9d6e6; background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); border: 0; width: 100%; font-weight: 600; gap: .5rem; }
.map-load span { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; background: rgba(255,255,255,.1); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.ftr { background: #050f1c; color: #93a8c2; padding: 72px 0 110px; font-size: .93rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr img { height: 36px; width: auto; margin-bottom: 1rem; }
.ftr h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 650; margin-bottom: 1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ftr a:hover { color: #fff; }
.ftr-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .84rem; }
.ftr-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .25s, transform .3s var(--ease); }
.social a:hover { background: var(--blue); transform: translateY(-2px); color: #fff; }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: span 2; } }

/* ---------- WhatsApp flotante ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: flex-end; gap: 12px; }
.wa-btn {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; border: 0;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7), 0 4px 10px rgba(0,0,0,.15); position: relative; transition: transform .35s var(--ease);
}
.wa-btn:hover { transform: scale(1.08) rotate(-6deg); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-btn::before, .wa-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s var(--ease) infinite; }
.wa-btn::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.wa-dot { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; font-size: .6rem; color: #fff; display: grid; place-items: center; font-weight: 700; }
.wa-bubble {
  position: relative; background: #fff; border-radius: 18px 18px 4px 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); width: 260px; font-size: .9rem; color: var(--body);
  opacity: 0; transform: translateY(10px) scale(.95); transform-origin: bottom right; pointer-events: none; transition: opacity .4s, transform .5s var(--ease);
  margin-bottom: 8px;
}
.wa-fab.show .wa-bubble { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble b { display: block; color: var(--ink); margin-bottom: .15rem; }
.wa-bubble .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 4px; }
.wa-bubble .typing { display: inline-flex; gap: 3px; margin-left: .3rem; }
.wa-bubble .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--wa); animation: typ 1.2s infinite; }
.wa-bubble .typing i:nth-child(2) { animation-delay: .15s; } .wa-bubble .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* barra inferior móvil */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 65;
    background: rgba(7,24,44,.94); backdrop-filter: blur(14px); padding: 8px; border-radius: 20px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.5);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .mbar.show { transform: none; }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 14px; color: #fff; font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.07); }
  .mbar a svg { width: 20px; height: 20px; }
  .mbar a.wa svg { color: var(--wa); }
  .mbar a.main { background: var(--blue); flex-direction: row; gap: .45rem; font-size: .92rem; }
  .wa-fab { bottom: 88px; right: 14px; }
  .wa-btn { width: 56px; height: 56px; }
  .ftr { padding-bottom: 130px; }
}

/* ---------- modal de formulario ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(7,24,44,.6); backdrop-filter: blur(6px); }
.modal .form-card { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; transform: translateY(20px) scale(.97); transition: transform .45s var(--ease); }
.modal.open .form-card { transform: none; }
.modal .form-badge { position: static; display: inline-block; margin-bottom: .75rem; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.3rem; line-height: 1; z-index: 2; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--dl, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-l { transform: translateX(-30px); } .reveal-r { transform: translateX(30px); }
.reveal-s { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- artículo / legales ---------- */
.prose { max-width: 740px; margin: 0 auto; font-size: 1.08rem; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--blue); text-decoration: underline; }
.post-meta { display: flex; gap: 1rem; align-items: center; color: #93a8c2; font-size: .92rem; }
.post-card { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; }
.post-card .media-frame { aspect-ratio: 16/10; }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }

/* bloque de cita con pasos numerados */
.num-list { counter-reset: n; list-style: none; padding: 0; display: grid; gap: 14px; }
.num-list li { counter-increment: n; position: relative; padding: 18px 18px 18px 70px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.num-list li::before { content: counter(n); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.num-list b { color: var(--ink); display: block; margin-bottom: .15rem; }

/* tabla simple */
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.tbl th, .tbl td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--paper); color: var(--ink); font-weight: 650; }

/* aula virtual */
.aula-card { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.aula-card .card-ic { margin: 0 auto 1.25rem; width: 72px; height: 72px; border-radius: 22px; }
.aula-card .card-ic svg { width: 36px; height: 36px; }

/* errores de formulario y estado de carga */
.field.err::after,.legal-chk.err::after{content:attr(data-msg);display:block;color:#dc2626;font-size:.78rem;font-weight:600;margin-top:.3rem}
.field.err::after{position:absolute;left:2px;top:100%}.field.err{margin-bottom:1.5rem}
.legal-chk.err{color:#dc2626}.legal-chk.err span{color:#dc2626}
.btn.is-loading{pointer-events:none;opacity:.85}.btn.is-loading .arr{display:none}
.btn.is-loading::after{content:'';width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin2 .7s linear infinite;margin-left:.5rem}
@keyframes spin2{to{transform:rotate(360deg)}}
.ty{max-width:640px;margin:0 auto;text-align:center}.ty .okic{width:76px;height:76px;margin:0 auto 1.25rem;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#16a34a}.ty .okic svg{width:38px;height:38px}
.ty-steps{text-align:left;margin:2rem 0}

.ftr .fh{color:#fff;font-size:.82rem;text-transform:uppercase;letter-spacing:.12em;font-weight:650;margin:0 0 1rem}

/* ---- Móvil: el formulario del hero sube y se compacta ---- */
@media (max-width: 960px) {
  .hero:not(.hero-sub) { padding: calc(96px + 10px) 0 76px; }
  .hero:not(.hero-sub) .hero-grid { gap: 14px; }
  .hero:not(.hero-sub) .hero-grid > div:first-child { display: contents; }
  .hero:not(.hero-sub) .trust { order: 1; margin: 0; padding: 5px 12px 5px 5px; font-size: .8rem; gap: .5rem; align-self: start; justify-self: start; }
  .hero:not(.hero-sub) .trust .avs { display: none; }
  .hero:not(.hero-sub) .trust-txt { display: block; padding-left: 8px; }
  .hero:not(.hero-sub) h1 { order: 2; font-size: clamp(1.75rem, 8vw, 2.3rem); line-height: 1.08; margin: 0; }
  .hero:not(.hero-sub) .hero-grid > div:last-child { order: 3; margin-top: 6px; }
  .hero:not(.hero-sub) .lead { order: 4; font-size: 1rem; margin: 10px 0 0; }
  .hero:not(.hero-sub) .hero-ticks { order: 5; margin: 0; font-size: .88rem; }
  .hero:not(.hero-sub) .hero-actions { order: 6; }
  .hero:not(.hero-sub) .hero-actions .btn-ghost { display: none; }
  .hero .form-card { padding: 20px 16px 16px; border-radius: 22px; }
  .hero .form-card h2, .hero .form-card h3 { font-size: 1.2rem; margin-bottom: .75rem; padding-right: 0; }
  .hero .form-card .fsub, .hero .form-card .chips-lab, .hero .form-card .chips-in, .hero .form-card .form-foot { display: none; }
  .hero .form-card .field { margin-bottom: .55rem; }
  .hero .form-card .field input, .hero .form-card .field select { min-height: 50px; padding-top: 1.2rem; padding-bottom: .35rem; }
  .hero .form-card .field label { top: .9rem; }
  .hero .form-card .frow { grid-template-columns: 1fr; gap: 0; }
  .hero .form-card .legal-chk { font-size: .74rem; margin: .1rem 0 .55rem; line-height: 1.35; }
  .hero .form-card .btn-block { min-height: 52px; }
}

@media (max-width: 960px) {
  .hero:not(.hero-sub) .trust .t-long { display: none; }
  .hero:not(.hero-sub) .trust { max-width: 100%; }
  .wa-fab { opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s; }
  html.scrolled .wa-fab { opacity: 1; pointer-events: auto; transform: none; }
}

/* ---- Móvil v2: más aire. Reseñas debajo del formulario, sin solapes ---- */
@media (max-width: 960px) {
  .hero:not(.hero-sub) { padding: calc(96px + 18px) 0 84px; }
  .hero:not(.hero-sub) .hero-grid { gap: 0; }
  .hero:not(.hero-sub) h1 { font-size: clamp(1.7rem, 7.6vw, 2.1rem); line-height: 1.1; margin-bottom: 20px; }
  .hero:not(.hero-sub) .hero-grid > div:last-child { margin-top: 0; }
  .hero:not(.hero-sub) .trust { order: 4; margin: 22px 0 0; }
  .hero:not(.hero-sub) .lead { order: 5; margin: 18px 0 0; }
  .hero:not(.hero-sub) .hero-ticks { order: 6; margin: 18px 0 0; gap: .6rem 1.2rem; }
  .hero:not(.hero-sub) .hero-actions { order: 7; margin-top: 22px; }
  .hero .form-card { padding: 22px 18px 20px; }
  .hero .form-card .form-badge { position: static; display: inline-block; margin: 0 0 12px; box-shadow: none; }
  .hero .form-card h2, .hero .form-card h3 { margin-bottom: 16px; }
  .hero .form-card .field { margin-bottom: 12px; }
  .hero .form-card .legal-chk { font-size: .78rem; margin: 6px 0 10px; line-height: 1.4; }
  .hero .form-card .legal-chk + .legal-chk { margin-top: 0; }
}
@media (max-width: 960px) {
  .hero .form-card .form-badge { display: none; }
  .hero .form-card { padding-top: 20px; }
  .hero .form-card .field input, .hero .form-card .field select { min-height: 52px; }
  .hero .form-card .field { margin-bottom: 10px; }
  .hero:not(.hero-sub) { padding-top: calc(96px + 12px); }
  .hero:not(.hero-sub) h1 { margin-bottom: 16px; }
}
@media (max-width: 960px) {
  .hero:not(.hero-sub) h1 { font-size: clamp(1.55rem, 7vw, 1.9rem); }
  .hero .form-card .legal-chk { font-size: .74rem; margin: 4px 0 8px; }
  .hero .form-card h2, .hero .form-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
  .hero .form-card .field input, .hero .form-card .field select { min-height: 50px; }
}

/* ---- Móvil v3: cabecera fina, sin barra superior, botones del menú, reseñas y badge de vuelta ---- */
.mnav a.btn { display: inline-flex; padding: .85rem 1.5rem; font-size: 1.05rem; color: var(--fg); border-bottom: 0; letter-spacing: -.01em; gap: .6rem; }
.mnav a.btn-wa { margin-top: .75rem; }
@media (max-width: 960px) {
  .topbar { display: none; }
  .hdr { padding: 8px 0; }
  .hdr-bar { padding: 5px 5px 5px 14px; }
  .hdr-logo img { height: 26px; }
  .hdr-cta .btn-sm { min-height: 38px; padding: .4rem 1rem; font-size: .9rem; }
  .burger { transform: scale(.88); transform-origin: center; }
  .mnav { padding-top: 84px; }
  .hero:not(.hero-sub) { padding: calc(64px + 14px) 0 84px; margin-top: -64px; }
  .hero:not(.hero-sub) .trust { order: 1; margin: 0 0 14px; padding: 4px 12px 4px 4px; font-size: .78rem; justify-self: start; }
  .hero:not(.hero-sub) .trust .avs { display: flex; }
  .hero:not(.hero-sub) .trust .av { width: 26px; height: 26px; font-size: .62rem; margin-left: -8px; }
  .hero:not(.hero-sub) .trust .av:nth-child(n+5) { display: none; }
  .hero:not(.hero-sub) .trust-txt { display: block; padding-left: 4px; line-height: 1.25; }
  .hero:not(.hero-sub) h1 { margin-bottom: 30px; }
  .hero .form-card .form-badge { display: inline-block; position: absolute; top: -14px; right: 18px; margin: 0; box-shadow: 0 6px 16px -4px rgba(22,163,74,.6); }
  .hero .form-card h2, .hero .form-card h3 { padding-right: 0; }
  .hero:not(.hero-sub) .lead { order: 5; } .hero:not(.hero-sub) .hero-ticks { order: 6; } .hero:not(.hero-sub) .hero-actions { order: 7; }
}
@media (max-width: 960px) { .hero-sub { margin-top: -64px; padding-top: calc(64px + 32px); } }

@media (max-width: 960px) {
  .hero:not(.hero-sub) { margin-top: -74px; padding: calc(74px + 10px) 0 84px; }
  .hero-sub { margin-top: -74px; padding-top: calc(74px + 28px); }
  .hero:not(.hero-sub) .trust .t-long { display: none; }
  .hero:not(.hero-sub) .trust { margin-bottom: 12px; }
  .hero:not(.hero-sub) h1 { margin-bottom: 28px; }
}
@media (max-width: 960px) {
  .hero .form-card .field input, .hero .form-card .field select { min-height: 48px; }
  .hero .form-card .field { margin-bottom: 9px; }
  .hero .form-card h2, .hero .form-card h3 { margin-bottom: 12px; }
  .hero .form-card { padding-bottom: 16px; }
}
@media (max-width: 960px) {
  .hero-sub .trust { margin: 0 0 14px; padding: 4px 12px 4px 4px; font-size: .78rem; gap: .5rem; }
  .hero-sub .trust .av { width: 26px; height: 26px; font-size: .62rem; margin-left: -8px; }
  .hero-sub .trust .av:nth-child(n+5) { display: none; }
  .hero-sub .trust .t-long { display: none; }
  .hero-sub .trust-txt { line-height: 1.25; }
}

/* ---- Reseñas: marca de Google en vez de iniciales; titular con presencia ---- */
.trust { padding: 7px 16px 7px 8px; gap: .6rem; }
.trust .gmark { width: 26px; height: 26px; flex: none; background: #fff; border-radius: 50%; padding: 5px; }
@media (max-width: 960px) {
  .hero .trust { padding: 6px 14px 6px 7px; font-size: .84rem; margin: 0 0 16px; }
  .hero .trust .t-long { display: none; }
  .hero:not(.hero-sub) h1 { font-size: clamp(2.05rem, 9.4vw, 2.5rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 26px; }
  .hero-sub h1 { font-size: clamp(1.9rem, 8.6vw, 2.3rem); line-height: 1.06; }
}
@media (max-width: 960px) {
  .hero:not(.hero-sub) { padding-top: calc(74px + 2px); }
  .hero .trust { margin-bottom: 12px; }
  .hero:not(.hero-sub) h1 { margin-bottom: 24px; }
  .hero .form-card { padding: 16px 16px 14px; }
  .hero .form-card h2, .hero .form-card h3 { margin-bottom: 10px; }
  .hero .form-card .field { margin-bottom: 8px; }
  .hero .form-card .field input, .hero .form-card .field select { min-height: 46px; }
  .hero .form-card .legal-chk { margin: 2px 0 6px; }
  .hero .form-card .btn-block { min-height: 50px; }
}

/* ---- Reseñas v2: avatares con iniciales bien colocados, barra a todo el ancho ---- */
.trust { padding: 8px 18px 8px 10px; gap: .75rem; }
.avs { padding-left: 2px; }
.av { width: 34px; height: 34px; margin-left: -6px; border: 2px solid #12263f; font-size: .72rem; }
.avs .av:first-child { margin-left: 0; }
@media (max-width: 960px) {
  .hero .trust { display: flex; width: 100%; justify-content: center; padding: 7px 14px; gap: .65rem; font-size: .82rem; }
  .hero .trust .avs { flex: none; }
  .hero .trust .av { width: 28px; height: 28px; font-size: .62rem; margin-left: -5px; }
  .hero .trust .av:first-child { margin-left: 0; }
  .hero .trust .av:nth-child(n+5) { display: none; }
  .hero .trust-txt { display: block; padding: 0; white-space: nowrap; }
}
/* iniciales completas: círculos juntos pero sin taparse */
.avs .av, .hero .trust .av { margin-left: 4px; }
.avs .av:first-child, .hero .trust .av:first-child { margin-left: 0; }
/* reseñas: una sola línea siempre; iniciales sin taparse (misma especificidad que las reglas anteriores) */
.trust { white-space: nowrap; max-width: 100%; }
.trust-txt { white-space: nowrap; }
.hero:not(.hero-sub) .trust .av, .hero-sub .trust .av, .hero .trust .av, .avs .av { margin-left: 4px; }
.hero:not(.hero-sub) .trust .av:first-child, .hero-sub .trust .av:first-child, .hero .trust .av:first-child, .avs .av:first-child { margin-left: 0; }
@media (max-width: 400px) { .trust-txt { font-size: .78rem; } }

/* reseñas: en ordenador una línea; en móvil dos líneas ordenadas junto a los avatares */
.trust-txt .tl2::before { content: " · "; }
@media (max-width: 960px) {
  .hero .trust { width: 100%; justify-content: flex-start; gap: .75rem; padding: 7px 14px 7px 10px; }
  .hero .trust .av:nth-child(n+4) { display: none; }
  .hero .trust-txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; font-size: .82rem; white-space: nowrap; }
  .hero .trust-txt .tl2::before { content: none; }
  .hero .trust-txt .tl2 { color: #c9d6e6; font-size: .78rem; }
  .hero .trust-stars { margin-right: .35rem; }
}
@media (max-width: 960px) {
  .hero:not(.hero-sub) .trust-txt, .hero-sub .trust-txt, .hero .trust-txt { display: flex; flex-direction: column; gap: 1px; padding: 0; }
  .hero .trust-txt .tl1, .hero .trust-txt .tl2 { display: block; }
}
@media (max-width: 960px) { .hero .trust { justify-content: center; gap: 1rem; } }

/* pie del formulario: una sola línea */
.form-foot { flex-wrap: nowrap; gap: .7rem; font-size: .76rem; white-space: nowrap; }
.form-foot svg { width: 13px; height: 13px; }
.form-foot span { gap: .25rem; }
@media (max-width: 400px) { .form-foot { gap: .45rem; font-size: .7rem; } }
/* móvil: reseñas como una línea limpia, sin píldora ni avatares */
@media (max-width: 960px) {
  .hero .trust { background: none; border: 0; backdrop-filter: none; padding: 0; width: auto; justify-content: flex-start; margin: 2px 0 12px; gap: 0; }
  .hero .trust .avs { display: none; }
  .hero .trust:hover { background: none; transform: none; }
  .hero:not(.hero-sub) .trust-txt, .hero-sub .trust-txt, .hero .trust-txt { display: block; font-size: .9rem; line-height: 1.2; white-space: nowrap; }
  .hero .trust-txt .tl1, .hero .trust-txt .tl2 { display: inline; }
  .hero .trust-txt .tl2 { color: #c9d6e6; font-size: inherit; }
  .hero .trust-txt .tl2::before { content: " · "; }
  .hero .trust-stars { margin-right: .4rem; font-size: .95rem; }
}
/* móvil: reseñas idénticas a ordenador (avatares + una línea), solo más compactas */
@media (max-width: 960px) {
  .hero:not(.hero-sub) .trust, .hero-sub .trust, .hero .trust { display: inline-flex; width: auto; max-width: 100%; justify-content: flex-start; align-items: center; gap: .5rem; padding: 6px 12px 6px 6px; margin: 0 0 14px; font-size: .78rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
  .hero .trust .avs { display: flex; }
  .hero .trust .av, .hero:not(.hero-sub) .trust .av, .hero-sub .trust .av { width: 24px; height: 24px; font-size: .56rem; margin-left: 3px; border-width: 1.5px; }
  .hero .trust .av:first-child, .hero:not(.hero-sub) .trust .av:first-child, .hero-sub .trust .av:first-child { margin-left: 0; }
  .hero .trust .av:nth-child(n+5), .hero:not(.hero-sub) .trust .av:nth-child(n+5) { display: none; }
  .hero:not(.hero-sub) .trust-txt, .hero-sub .trust-txt, .hero .trust-txt { display: block; padding: 0; font-size: .78rem; line-height: 1.2; white-space: nowrap; }
  .hero .trust-txt .tl1, .hero .trust-txt .tl2 { display: inline; }
  .hero .trust-txt .tl2::before { content: " · "; }
  .hero .trust-stars { margin-right: .3rem; font-size: .8rem; letter-spacing: 0; }
}
/* RESEÑAS — versión final: 5 avatares apilados (solapados) en ordenador y móvil, barra a todo el ancho, una línea */
html body .hero .trust { display: flex; width: 100%; max-width: none; justify-content: space-between; align-items: center; gap: .9rem; padding: 8px 20px 8px 10px; white-space: nowrap; }
html body .hero .trust .avs { display: flex; flex: none; padding: 0; }
html body .hero .trust .av { display: grid; width: 34px; height: 34px; font-size: .72rem; margin-left: -10px; border: 2px solid #12263f; }
html body .hero .trust .av:first-child { margin-left: 0; }
html body .hero .trust .trust-txt { display: block; flex: 1; text-align: right; padding: 0; line-height: 1.2; font-size: .92rem; white-space: nowrap; }
html body .hero .trust .tl1, html body .hero .trust .tl2 { display: inline; }
html body .hero .trust .tl2::before { content: " · "; }
html body .hero .trust .trust-stars { margin-right: .35rem; font-size: .9rem; }
@media (max-width: 960px) {
  html body .hero .trust { gap: .6rem; padding: 6px 12px 6px 8px; margin: 0 0 14px; }
  html body .hero .trust .av { width: 28px; height: 28px; font-size: .6rem; margin-left: -9px; border-width: 1.5px; }
  html body .hero .trust .av:first-child { margin-left: 0; }
  html body .hero .trust .trust-txt { font-size: .76rem; }
  html body .hero .trust .trust-stars { font-size: .78rem; margin-right: .25rem; }
}
@media (max-width: 380px) { html body .hero .trust .trust-txt { font-size: .7rem; } html body .hero .trust .av { width: 26px; height: 26px; } }
/* reseñas: reglas finales con prioridad (apilado solapado, 5 avatares siempre) */
.hero .trust .av { display: grid !important; margin-left: -10px !important; }
.hero .trust .av:first-child { margin-left: 0 !important; }
@media (max-width: 960px) { .hero .trust .av { margin-left: -9px !important; } .hero .trust .av:first-child { margin-left: 0 !important; } }
/* reseñas en ordenador: la barra se ajusta al contenido (sin hueco en medio) */
@media (min-width: 961px) {
  html body .hero .trust { display: inline-flex; width: auto; justify-content: flex-start; gap: 1rem; padding: 8px 22px 8px 10px; }
  html body .hero .trust .trust-txt { flex: none; text-align: left; }
}
/* móvil: las animaciones laterales no ensanchan la página */
@media (max-width: 960px) { .reveal-l, .reveal-r { transform: translateY(24px); } .reveal-l.is-visible, .reveal-r.is-visible { transform: none; } }
html { overflow-x: clip; }

/* ================= Cifras con más fuerza ================= */
.stats .wrap { position: relative; }
.stats-glow { position: absolute; inset: 10% 6% -18%; background: radial-gradient(60% 80% at 50% 40%, rgba(19,97,167,.38), transparent 70%); filter: blur(34px); z-index: -1; animation: glowPulse 5s ease-in-out infinite; pointer-events: none; }
@keyframes glowPulse { 50% { opacity: .55; transform: scale(1.04); } }
.stats-grid { position: relative; overflow: hidden; border: 0; background: linear-gradient(180deg, #ffffff, #f3f8fe); box-shadow: 0 30px 80px -24px rgba(19,97,167,.55), 0 0 0 1px rgba(19,97,167,.16); }
.stats-grid::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang, 0deg), rgba(19,97,167,0), rgba(19,97,167,.95), rgba(120,185,255,.9), rgba(19,97,167,0) 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 5s linear infinite; }
.stats-grid::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-18deg); animation: sheen 6s ease-in-out infinite; pointer-events: none; z-index: 1; }
@keyframes sheen { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
.stat { transition: background .35s, transform .35s var(--ease); z-index: 0; }
.stat:hover { background: linear-gradient(180deg, rgba(19,97,167,.06), rgba(19,97,167,.0)); }
.stat-ic { width: 38px; height: 38px; margin: 0 auto .7rem; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), #3b8fe0); color: #fff; box-shadow: 0 10px 22px -8px rgba(19,97,167,.7); transition: transform .5s var(--ease); }
.stat-ic svg { width: 20px; height: 20px; }
.stat:hover .stat-ic { transform: rotate(-8deg) scale(1.12); }
.stat b { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -.05em; background: linear-gradient(135deg, #0b2a4a 10%, var(--blue) 55%, #3b8fe0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 14px rgba(19,97,167,.28)); }
.stat b em { -webkit-text-fill-color: var(--star); filter: drop-shadow(0 0 10px rgba(251,191,36,.7)); animation: starPulse 2.4s ease-in-out infinite; display: inline-block; }
@keyframes starPulse { 50% { transform: scale(1.18) rotate(8deg); } }
.stat > .stat-l { color: #4a5a70; font-weight: 560; }
@media (max-width: 760px) { .stat-ic { width: 32px; height: 32px; margin-bottom: .5rem; } .stat b { font-size: clamp(2rem, 9vw, 2.6rem); } }
@media (prefers-reduced-motion: reduce) { .stats-glow, .stats-grid::before, .stats-grid::after, .stat b em { animation: none; } }

/* ================= Cursos desplegables SOLO en móvil ================= */
.card-k, .card-chev { display: none; }
@media (max-width: 760px) {
  .bento { gap: 12px; }
  .bento .card, .bento .card.w3, .bento .card.w4 { display: grid; grid-template-columns: 46px 1fr 28px; grid-template-areas: "ic t ch" "ic k ch" "body body body"; column-gap: 14px; align-items: center; padding: 16px 16px 14px; cursor: pointer; }
  .bento .card .card-ic { grid-area: ic; width: 46px; height: 46px; border-radius: 14px; margin: 0; }
  .bento .card .card-ic svg { width: 23px; height: 23px; }
  .bento .card h3 { grid-area: t; font-size: 1.12rem; margin: 0; align-self: end; }
  .bento .card .card-k { grid-area: k; display: block; font-size: .84rem; color: var(--muted); align-self: start; }
  .bento .card.hot .card-k { color: #93a8c2; }
  .bento .card .card-chev { grid-area: ch; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--blue); transition: transform .4s var(--ease), background .3s; }
  .bento .card.hot .card-chev { background: rgba(255,255,255,.1); color: #fff; }
  .bento .card .card-chev svg { width: 16px; height: 16px; }
  .bento .card.open .card-chev { transform: rotate(180deg); background: var(--blue); color: #fff; }
  .bento .card .card-body { grid-area: body; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .bento .card.open .card-body { grid-template-rows: 1fr; }
  .bento .card .card-body-in { overflow: hidden; min-height: 0; }
  .bento .card .card-body-in > :first-child { margin-top: 1rem; }
  .bento .card .flag { top: 8px; right: 52px; font-size: .62rem; padding: .2rem .5rem; }
  .bento .card .card-art { font-size: 6rem; right: 40px; bottom: -22px; }
  .bento .card:hover { transform: none; }
}

.stat > .stat-ic { color: #fff; margin-top: 0; font-size: 0; }
.stat > .stat-ic svg { stroke-width: 2.2; }
@media (max-width: 760px) { .bento .card .k-in { display: none; } }

/* ---- Fondo de marca (símbolos + red de puntos) ---- */
.bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body { background: #fff; }
main, .ftr { position: relative; z-index: 1; }
.bg-paper { background: rgba(246,248,251,.55); }
@media print { .bgfx { display: none; } }

/* cifras: icono centrado, etiqueta «Desde», signo + */
.stat > .stat-ic { display: grid; place-items: center; line-height: 0; }
.stat > .stat-ic svg { display: block; margin: 0; }
.stat > .stat-tag { display: inline-block; margin: 0 0 .35rem; padding: .18rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); background: rgba(19,97,167,.1); border: 1px solid rgba(19,97,167,.22); }
.stat b .plus { font-style: normal; margin-right: .04em; -webkit-text-fill-color: #3b8fe0; }
.eyebrow { display: none; }

/* ================= Bloques con más fuerza (mismo lenguaje que las cifras) ================= */
/* «Desde» no altera la altura de la celda */
.stat { position: relative; }
.stat > .stat-tag { position: absolute; top: clamp(22px, 3.2vw, 34px); left: calc(50% + 26px); margin: 0; }
@media (max-width: 760px) { .stat > .stat-tag { top: 20px; left: calc(50% + 22px); font-size: .6rem; padding: .14rem .5rem; } }

/* iconos: cuadrado azul degradado con brillo, bien centrado */
.card-ic, .stat-ic { line-height: 0; }
.card-ic { background: linear-gradient(135deg, var(--blue), #3b8fe0); color: #fff; box-shadow: 0 12px 24px -10px rgba(19,97,167,.75), inset 0 1px 0 rgba(255,255,255,.28); }
.card:hover .card-ic { background: linear-gradient(135deg, #0f5290, var(--blue)); }
.card.hot .card-ic { background: linear-gradient(135deg, #3b8fe0, #1b6fc0); color: #fff; box-shadow: 0 12px 26px -8px rgba(59,143,224,.65), inset 0 1px 0 rgba(255,255,255,.3); }
.card.hot:hover .card-ic { background: linear-gradient(135deg, #5aa5ee, #2a7ed0); }

/* anillo de luz que gira al pasar el ratón por tarjetas, características y precios */
.card, .feats .feat, .price { position: relative; }
.card::after, .feats .feat::after, .price::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .45s;
  background: conic-gradient(from var(--ang, 0deg), rgba(19,97,167,0), rgba(19,97,167,.95), rgba(120,185,255,.95), rgba(19,97,167,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4.5s linear infinite; animation-play-state: paused; }
.card:hover::after, .feats .feat:hover::after, .price:hover::after, .price.feat::after { opacity: 1; animation-play-state: running; }
.card:hover, .feats .feat:hover, .price:hover { box-shadow: 0 28px 60px -26px rgba(19,97,167,.55); }
.tilt-on { transition: transform .14s ease-out, box-shadow .4s !important; will-change: transform; }

/* entrada más marcada de los bloques */
@media (prefers-reduced-motion: no-preference) {
  .bento .reveal, .feats .reveal, .prices .reveal, .steps .reveal, .gallery figure.reveal { opacity: 0; transform: translateY(46px) scale(.95); filter: blur(7px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease), box-shadow .5s var(--ease); transition-delay: var(--dl, 0s); }
  .bento .reveal.is-visible, .feats .reveal.is-visible, .prices .reveal.is-visible, .steps .reveal.is-visible, .gallery figure.reveal.is-visible { opacity: 1; transform: none; filter: none; }
  .bento .reveal.is-visible:hover, .feats .reveal.is-visible:hover, .prices .reveal.is-visible:hover { transform: translateY(-5px); }
}

/* luz de fondo que se desplaza detrás de cada sección clara */
.sec { isolation: isolate; }
.sec:not(.on-dark)::before { content: ''; position: absolute; width: 560px; height: 560px; right: -160px; top: 4%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(59,143,224,.16), rgba(19,97,167,0) 66%); animation: blobDrift 16s ease-in-out infinite alternate; }
.sec:not(.on-dark):nth-of-type(even)::before { right: auto; left: -180px; top: 30%; }
@keyframes blobDrift { to { transform: translate(-70px, 90px) scale(1.12); } }

/* subrayado de los titulares: más grueso, con brillo y movimiento */
.mark::after { height: .4em; background-image: linear-gradient(90deg, rgba(19,97,167,.3), rgba(59,143,224,.62), rgba(19,97,167,.3)); background-size: 200% 100%; box-shadow: 0 8px 20px -8px rgba(19,97,167,.55); animation: markFlow 4.5s linear infinite; }
@keyframes markFlow { to { background-position: 200% 0; } }
.on-dark .mark::after { animation: markFlow 4.5s linear infinite; }

/* precios y pasos */
.price:not(.feat) .amt b { background: linear-gradient(135deg, #0b2a4a, var(--blue) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.price.feat .amt b { background: linear-gradient(135deg, #fff, #9fd0ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step-n { transition: background .4s, color .4s, box-shadow .4s, transform .4s; }
.step.is-on .step-n { background: linear-gradient(135deg, var(--blue), #3b8fe0); animation: ringPulse 2.4s ease-out infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(19,97,167,.45); } 100% { box-shadow: 0 0 0 16px rgba(19,97,167,0); } }
.gallery figure { transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.gallery figure:hover { box-shadow: 0 26px 56px -24px rgba(19,97,167,.6); transform: translateY(-4px); }
.gallery figcaption { transition: transform .5s var(--ease), background .3s; }
.gallery figure:hover figcaption { transform: translateY(-4px); background: rgba(19,97,167,.85); }

/* barra de progreso de lectura */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--blue), #6db3ff, var(--blue)); box-shadow: 0 0 12px rgba(59,143,224,.8); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .sec:not(.on-dark)::before, .mark::after, .step.is-on .step-n, .card::after, .feats .feat::after, .price::after { animation: none; } }

/* ===== Revisión del cliente (12-oct): reseñas sin tarjeta fuera de la portada, Aula Virtual gratuita, azul claro opcional ===== */
.rv-top.no-score { grid-template-columns: 1fr; }
.free-tag { display: inline-block; margin-left: .35rem; padding: .08rem .42rem; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; vertical-align: middle; background: #16a34a; color: #fff; }
.topbar .free-tag { background: #22c55e; }
.aula-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: 30px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #c9d6e6; box-shadow: 0 40px 90px -36px rgba(7,24,44,.8), 0 0 0 1px rgba(120,185,255,.18); }
.aula-hero::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), rgba(120,185,255,0), rgba(120,185,255,.9), rgba(19,97,167,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
.aula-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(59,143,224,.45), transparent 65%); animation: blobDrift 14s ease-in-out infinite alternate; pointer-events: none; }
.aula-main, .aula-cta { position: relative; z-index: 1; }
.aula-free { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: #052e16; background: #4ade80; box-shadow: 0 10px 26px -10px rgba(74,222,128,.8); margin-bottom: 1rem; }
.aula-free svg { width: 15px; height: 15px; }
.aula-hero h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: .55rem; }
.aula-hero h2 .mark { color: #fff; }
.aula-hero p { margin: 0 0 1.2rem; max-width: 52ch; font-size: 1.05rem; }
.aula-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.aula-chips span { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: #e6eef8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.aula-chips svg { width: 15px; height: 15px; color: #7fc0ff; }
.aula-cta { display: grid; justify-items: center; gap: .9rem; text-align: center; }
.aula-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; line-height: 0; color: #fff; background: linear-gradient(135deg, var(--blue), #3b8fe0); box-shadow: 0 22px 46px -16px rgba(59,143,224,.9); animation: float 5s ease-in-out infinite; }
.aula-ic svg { width: 40px; height: 40px; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.aula-cta small { color: #93a8c2; }
@media (max-width: 860px) { .aula-hero { grid-template-columns: 1fr; border-radius: 24px; } .aula-cta { justify-items: start; text-align: left; } .aula-ic { width: 64px; height: 64px; border-radius: 20px; } .aula-ic svg { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .aula-hero::before, .aula-glow, .aula-ic { animation: none; } }

/* Azul más claro (versión de comparación): https://www.academiajconcha.es/?azul=claro  ·  volver: ?azul=normal */
html[data-azul="claro"] { --navy: #123a6b; --navy-2: #1a4d8c; --navy-3: #2461ab; }
html[data-azul="claro"] .ftr { background: #0e2f58; }
/* cabecera: el menú nunca se parte en dos líneas (la etiqueta GRATIS del Aula Virtual ocupa sitio) */
.hdr .nav > a, .hdr .nav-dd > button, .hdr .btn { white-space: nowrap; }
@media (min-width: 1061px) and (max-width: 1500px) {
  .hdr .nav > a, .hdr .nav-dd > button { padding-left: .62rem; padding-right: .62rem; font-size: .93rem; }
  .hdr-bar { gap: .5rem; padding-left: 16px; }
  .hdr .btn-aula, .hdr .btn-trial { padding-left: .85rem; padding-right: .85rem; }
}
@media (min-width: 1061px) and (max-width: 1180px) { .hdr .btn-aula .free-tag { display: none; } }

/* ===== Preguntas frecuentes en formato chat: la familia pregunta, el profesor contesta ===== */
.faq { display: grid; gap: 12px; }
.faq details.qa, .faq details.qa:first-child { border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .3s, box-shadow .35s, transform .35s var(--ease); }
.faq details.qa:hover { border-color: #cfdcec; }
.faq details.qa[open] { border-color: rgba(19,97,167,.45); box-shadow: 0 24px 56px -28px rgba(19,97,167,.55); }
.faq details.qa summary { padding: 1.1rem 1.25rem; gap: .9rem; justify-content: flex-start; }
.qa-n { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--blue); background: var(--blue-50); }
.qa-t { flex: 1; font-weight: 650; color: var(--ink); line-height: 1.35; }
.faq details.qa summary i { margin-left: auto; }
.qa-chat { display: flex; flex-direction: column; gap: .7rem; padding: .2rem 1.25rem 1.3rem; }
.qa-q { align-self: flex-end; display: flex; align-items: flex-end; gap: .55rem; max-width: 86%; }
.qa-q > span { padding: .7rem 1rem; border-radius: 18px 18px 4px 18px; background: var(--blue); color: #fff; font-size: .95rem; line-height: 1.45; box-shadow: 0 10px 22px -12px rgba(19,97,167,.8); }
.qa-u { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; line-height: 0; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.qa-u svg { width: 18px; height: 18px; }
.qa-typing, .qa-a { align-self: flex-start; display: flex; align-items: flex-end; gap: .55rem; max-width: 92%; }
.qa-p { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(7,24,44,.5); }
.qa-p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qa-typing > span { display: flex; gap: 4px; padding: .85rem 1rem; border-radius: 18px 18px 18px 4px; background: var(--blue-50); border: 1px solid #cfe0f3; }
.qa-typing > span i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: rfDot 1s infinite; }
.qa-typing > span i:nth-child(2) { animation-delay: .15s; } .qa-typing > span i:nth-child(3) { animation-delay: .3s; }
.qa-a > div { padding: .75rem 1rem .85rem; border-radius: 18px 18px 18px 4px; background: var(--blue-50); border: 1px solid #cfe0f3; }
.qa-a small { display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.qa-a p { margin: 0; padding: 0; color: var(--body); font-size: .98rem; line-height: 1.6; }
.qa-a a { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@keyframes rfDot { 50% { transform: translateY(-4px); opacity: .4; } }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes chatType { 0% { opacity: 1; } 99% { opacity: 1; } 100% { opacity: 0; height: 0; overflow: hidden; margin: -.35rem 0; padding: 0; display: none; } }
.faq details.qa[open] .qa-q { animation: chatIn .35s ease both; }
.faq details.qa[open] .qa-typing { animation: chatIn .3s ease .35s both, chatType 1s steps(1) .65s both; }
.faq details.qa[open] .qa-a { animation: chatIn .45s ease 1.65s both; }
@media (prefers-reduced-motion: reduce) { .faq details.qa[open] .qa-typing { display: none; } .faq details.qa[open] .qa-q, .faq details.qa[open] .qa-a { animation: none; } }
@media (max-width: 600px) { .faq details.qa summary { padding: 1rem; } .qa-chat { padding: .1rem 1rem 1.1rem; } .qa-q { max-width: 94%; } .qa-typing, .qa-a { max-width: 98%; } .qa-n { width: 30px; height: 30px; } }
/* la respuesta ocupa sitio solo cuando aparece (sin hueco en blanco mientras el profesor «escribe») */
@keyframes chatGrow { from { opacity: 0; max-height: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; max-height: 520px; transform: none; } }
.qa-a { overflow: hidden; }
.faq details.qa[open] .qa-a { animation: chatGrow .55s ease 1.65s both; }
@media (prefers-reduced-motion: reduce) { .faq details.qa[open] .qa-a { animation: none; max-height: none; } }
