/* ==========================================================================
   Yassine Academy — estilos
   Arriba: cabecera + hero con carrusel curvo de reseñas (aprobado).
   Abajo: estilo Speak — bandas blancas y gris claro, frases grandes centradas,
   tarjetas blancas sencillas y el violeta solo como acento.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-hero: #F4F2FE;
  --gray: #F5F5F8;
  --surface: #FFFFFF;
  --ink: #1E1B4B;
  --ink-2: #4A4780;
  --muted: #6B6890;
  --faint: #ABA9BF;
  --line: #E8E6F3;
  --line-2: #DAD7EA;
  --violet: #7452EB;
  --violet-2: #8E74FF;
  --violet-50: #F1EDFE;
  --blue: #3E6BFA;
  --pink: #E04FA8;
  --magenta: #B44CF0;
  --coral: #FF5A6A;
  --orange: #FF8A3D;
  --yellow: #FFB703;
  --gold: #D9A300;
  --wa: #25D366;
  --radius: calc(24px * var(--rs, 1)); /* --rs: esquinas, lo cambia el panel (Diseño) */
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --hand: 'Aref Ruqaa', 'IBM Plex Sans Arabic', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; top: -60px; right: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: calc(10px * var(--rs, 1)); z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(116, 82, 235, .45); outline-offset: 3px; border-radius: calc(8px * var(--rs, 1)); }

/* ---------- Botones y enlaces ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; font-weight: 600; font-size: 1rem; padding: 8px 24px 8px 8px; white-space: nowrap; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.pill:hover { transform: translateY(-1px); }
.pill .arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--violet); flex: none; }
.pill .arrow svg { width: 18px; height: 18px; }
.pill-main { background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; box-shadow: 0 16px 34px -14px rgba(116, 82, 235, .7); }
.pill-dark { background: var(--ink); color: #fff; padding: 6px 18px 6px 6px; font-size: .92rem; }
.pill-dark .arrow { width: 30px; height: 30px; background: var(--violet); color: #fff; }
.link-more { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--violet-2); padding-bottom: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet); }
.text-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(-4px); }
.inline-link { color: var(--violet); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Cabecera ---------- */
.hdr { position: relative; z-index: 5; background: var(--bg-hero); }
.hdr .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 78px; }
.hdr nav { display: flex; gap: 26px; font-size: .92rem; color: var(--muted); font-weight: 500; }
.hdr nav a:not(.pill):hover { color: var(--ink); }
.hdr nav.end { justify-content: flex-end; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 42px; height: 42px; border-radius: calc(13px * var(--rs, 1)); overflow: hidden; flex: none; box-shadow: 0 10px 20px -10px rgba(116, 82, 235, .8); }
.logo img { width: 100%; height: 100%; }
.brand b { font-weight: 700; font-size: 1.12rem; line-height: 1.1; display: block; }
.brand small { display: block; font-size: .64rem; letter-spacing: .16em; color: var(--muted); direction: ltr; text-align: right; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 34px 0 40px; text-align: center; overflow: hidden; background: linear-gradient(var(--bg-hero), var(--bg)); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: 0; pointer-events: none;
  background: radial-gradient(420px 300px at 20% 30%, rgba(62, 107, 250, .18), transparent 70%),
              radial-gradient(460px 320px at 82% 20%, rgba(224, 79, 168, .14), transparent 70%),
              radial-gradient(380px 260px at 50% 75%, rgba(255, 183, 3, .12), transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 16px; font-size: .88rem; font-weight: 500; box-shadow: 0 8px 20px -14px rgba(30, 27, 75, .35); }
.avs { display: flex; direction: ltr; }
.avs span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; }
.avs span:first-child { margin-left: 0; }
h1 { margin: 22px auto 14px; max-width: 900px; line-height: 1.25; }
h1 .l1 { display: block; font-weight: 200; font-size: clamp(2.1rem, 5vw, 3.6rem); color: var(--ink-2); }
h1 .l2 { display: block; font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h1 .l2 em { font-style: normal; background: linear-gradient(90deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.ctas { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }

/* Valoración con laureles (idea de Praktika) */
.proof { display: flex; justify-content: center; gap: 34px; margin-top: 24px; flex-wrap: wrap; }
.laurel-badge { display: flex; align-items: center; gap: 6px; }
.laurel { width: 20px; height: 44px; color: var(--gold); flex: none; }
.laurel.flip { transform: scaleX(-1); }
.laurel-badge > span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 74px; }
.laurel-badge b { font-size: 1.45rem; font-weight: 700; }
.laurel-badge b i { font-style: normal; color: var(--yellow); font-size: 1.1rem; }
.laurel-badge small { font-size: .78rem; color: var(--muted); margin-top: 4px; }

.note { position: absolute; z-index: 2; font-family: var(--hand); font-size: 1.35rem; color: var(--violet); line-height: 1.2; pointer-events: none; }
.note svg { width: 70px; height: 52px; }
.note-1 { top: 250px; right: max(24px, calc(50% - 560px)); transform: rotate(6deg); }
.note-1 svg { margin: 4px 22px 0 0; }
.note-2 { top: 160px; left: max(24px, calc(50% - 560px)); transform: rotate(-7deg); color: var(--pink); }
.note-2 svg { margin: 4px 0 0 40px; transform: scaleX(-1); }

/* ---------- Carrusel curvo de reseñas (CSS 3D) ---------- */
.stage { --persp: 2000px; --r: 600px; --w: 290px; --h: 360px;
  position: relative; height: 470px; margin-top: 18px; perspective: var(--persp); perspective-origin: 50% 50%; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; animation: spin 60s linear infinite; }
.stage:hover .ring { animation-play-state: paused; }
@keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
.rv { position: absolute; width: var(--w); height: var(--h); left: calc(var(--w) / -2); top: calc(var(--h) / -2);
  transform: rotateY(calc(var(--i) * 30deg)) translateZ(calc(var(--r) * -1));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 22px; color: #fff; direction: rtl; text-align: right; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  box-shadow: 0 24px 40px -22px rgba(30, 27, 75, .55); }
.rv::after { content: ""; position: absolute; inset: auto -30% -40% auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv .av { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .6); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.rv .av img { width: 100%; height: 100%; object-fit: cover; }
.rv b { display: block; font-size: 1.08rem; line-height: 1.3; }
.rv small { display: block; font-size: .84rem; opacity: .85; }
.stars { color: #FFD66B; letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.rv p { font-size: 1.04rem; line-height: 1.7; flex: 1; position: relative; z-index: 1; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 8px 3px 10px; position: relative; z-index: 1; }
.chip svg { width: 18px; height: 13px; border-radius: 2px; }
.rv--violet { background: linear-gradient(150deg, var(--violet-2), var(--violet)); }
.rv--blue   { background: linear-gradient(150deg, #5C8BFF, var(--blue)); }
.rv--pink   { background: linear-gradient(150deg, var(--magenta), var(--pink)); }
.rv--coral  { background: linear-gradient(150deg, #FF7A59, var(--coral)); }
.rv--sun    { background: linear-gradient(150deg, var(--yellow), var(--orange)); color: #3A1E00; }
.rv--sun .stars { color: #fff; }
.rv--sun .av { background: rgba(255, 255, 255, .35); border-color: #fff; }
.rv--white  { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.rv--white .av { background: var(--violet-50); border-color: var(--violet-2); color: var(--violet); }
.rv--white .stars { color: var(--yellow); }
.rv--white .chip { background: var(--violet-50); color: var(--violet); }
.rv--white::after { background: rgba(116, 82, 235, .06); }
.rv--video { justify-content: flex-end; background: linear-gradient(180deg, rgba(30, 27, 75, 0) 30%, rgba(30, 27, 75, .75)), linear-gradient(150deg, #8E7CFF, var(--magenta)); background-size: cover; background-position: center; }
.rv--video .play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -52px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--violet); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); }
.rv--video .play svg { width: 22px; height: 22px; margin-left: 4px; }
.rv--video .tag { position: absolute; top: 16px; right: 16px; font-size: .74rem; font-weight: 600; background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 999px; }

/* ---------- Tarjeta de reseña en AUDIO con subtítulos ---------- */
.ring.is-paused { animation-play-state: paused; }
/* Control manual: arrastrar / deslizar (el scroll vertical sigue funcionando) */
.stage.is-js { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.stage.is-js.is-dragging { cursor: grabbing; }
.stage.is-js:focus-visible { outline: none; }
.ring-nav { display: flex; justify-content: center; gap: 12px; margin: 0 0 6px; direction: ltr; position: relative; z-index: 2; }
.rn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -14px rgba(30, 27, 75, .4); transition: border-color .2s ease, color .2s ease, transform .15s ease; }
.rn:hover { border-color: var(--violet); color: var(--violet); }
.rn:active { transform: scale(.94); }
.rn svg { width: 18px; height: 18px; }
.rn-right svg { transform: scaleX(-1); }
.ring-nav { align-items: center; }
.rv-hint { margin: 0 6px; font-size: .95rem; font-weight: 500; color: var(--ink-2); direction: rtl; text-align: center; }
.stage.is-flat + .rv-hint { margin: -14px auto 10px; }

/* Toda la tarjeta se puede tocar; el ▶ "late" hasta que se escucha el primer audio */
.rv--audio { cursor: pointer; }
.pp { position: relative; }
.pp::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; animation: pp-pulse 1.8s ease-out infinite; }
.rv--white .pp::after { border-color: var(--violet); }
.rv--sun .pp::after { border-color: #fff; }
.is-playing .pp::after, .has-listened .pp::after { animation: none; opacity: 0; }
@keyframes pp-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pp::after { animation: none; } }
/* Con pocas reseñas: fila plana en vez de carrusel curvo */
.stage.is-flat { height: auto; perspective: none; overflow: visible; -webkit-mask-image: none; mask-image: none; padding: 16px 20px 40px; }
.stage.is-flat .ring { position: static; width: auto; height: auto; animation: none; transform: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.stage.is-flat .rv { position: relative; left: auto; top: auto; transform: none; }
.rv--audio { gap: 14px; }
.rv--audio .rv-top .chip { margin-inline-start: auto; align-self: center; }
.rv--audio .rv-top small { display: flex; align-items: center; gap: 4px; }
.rv--audio .rv-top small svg { width: 12px; height: 12px; }
.player { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px; padding-inline-end: 14px; }
.pp { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--violet); display: grid; place-items: center; flex: none; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.pp:hover { transform: scale(1.06); }
.pp svg { width: 14px; height: 14px; }
.pp .i-pause { display: none; }
.is-playing .pp .i-play { display: none; }
.is-playing .pp .i-pause { display: block; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; }
.wave i { flex: 1; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); transform-origin: center; }
.wave i.on { background: #fff; }
.time { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; text-align: left; direction: ltr; opacity: .95; }
.subs { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(15, 10, 40, .22); border-radius: calc(18px * var(--rs, 1)); padding: 16px 14px 14px; }
.subs .cc { position: absolute; top: 8px; left: 10px; font: 700 .62rem/1 system-ui, sans-serif; letter-spacing: .06em; padding: 3px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .7; direction: ltr; }
.subs p { font-size: 1.3rem; font-weight: 600; line-height: 1.8; }
.subs .w { opacity: .42; transition: opacity .12s ease; }
.subs .w.said { opacity: 1; }
.subs .w.now { opacity: 1; color: #2A1600; background: #FFD66B; border-radius: calc(6px * var(--rs, 1)); padding: 0 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rv--white.rv--audio .player { background: var(--violet-50); }
.rv--white.rv--audio .pp { background: var(--violet); color: #fff; }
.rv--white.rv--audio .wave i { background: rgba(116, 82, 235, .28); }
.rv--white.rv--audio .wave i.on { background: var(--violet); }
.rv--white.rv--audio .subs { background: var(--gray); }
.rv--white.rv--audio .subs .w.now { background: var(--yellow); }
.rv--sun.rv--audio .player { background: rgba(255, 255, 255, .35); }
.rv--sun.rv--audio .pp { color: #B35A00; }
.rv--sun.rv--audio .wave i { background: rgba(58, 30, 0, .25); }
.rv--sun.rv--audio .wave i.on { background: #3A1E00; }
.rv--sun.rv--audio .subs { background: rgba(255, 255, 255, .35); }
.rv--sun.rv--audio .subs .w.now { background: #fff; }

/* ---------- Ventajas bajo el carrusel ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px auto 0; max-width: 980px; }
.feat { padding: 10px 30px 0; text-align: center; }
.feat + .feat { border-inline-start: 1px solid var(--line); }
.feat h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.feat p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ==========================================================================
   Secciones estilo Speak
   ========================================================================== */
.band-gray, .band-white { padding: 130px 0; }
.band-gray { background: var(--gray); }

.statement { text-align: center; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 300; line-height: 1.3; color: var(--faint); max-width: 900px; margin: 0 auto; }
.statement b { font-weight: 600; color: var(--ink); }
.statement-sm { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 60px; }
.statement-sub { text-align: center; color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 20px auto 64px; }
.title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.25; }
.title .thin { font-weight: 200; color: var(--ink-2); }
.sub { color: var(--muted); font-size: 1.05rem; margin-top: 16px; max-width: 46ch; }
.step-label { display: inline-block; font-size: .84rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }

/* Dos tarjetas "de producto" */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1020px; margin: 0 auto; }
.ui-card { background: #fff; border-radius: calc(30px * var(--rs, 1)); padding: 36px; box-shadow: 0 1px 2px rgba(30, 27, 75, .04); display: flex; flex-direction: column; }
.ui-card h3 { font-size: 1.25rem; font-weight: 600; }
.ui-card > p { color: var(--muted); font-size: .96rem; margin-top: 4px; }
.situations { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.situations li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: calc(16px * var(--rs, 1)); background: var(--gray); font-weight: 500; font-size: .98rem; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; }
.tick svg { width: 14px; height: 14px; }
.situations .done .tick { background: var(--violet); border-color: var(--violet); color: #fff; }
.situations li:not(.done) { color: var(--muted); }

/* Partes de una clase con vídeo (Vimeo) */
.parts { display: grid; gap: 10px; margin-top: 24px; }
.part { background: var(--gray); border-radius: calc(18px * var(--rs, 1)); overflow: hidden; transition: background .2s ease; }
.part[open] { background: var(--violet-50); }
.part summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.part summary::-webkit-details-marker { display: none; }
.pi { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--violet); display: grid; place-items: center; flex: none; transition: all .2s ease; }
.pi svg { width: 11px; height: 11px; margin-left: 2px; }
.part[open] .pi { background: var(--violet); border-color: var(--violet); color: #fff; }
.pt { flex: 1; min-width: 0; }
.pt b { display: block; font-weight: 600; line-height: 1.4; }
.pt small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.lesson-tag { display: inline-block; align-self: flex-start; margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--violet); background: var(--violet-50); border-radius: 999px; padding: 4px 12px; }
.parts-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 -10px; font-size: 1.02rem; font-weight: 600; }
.parts-title span { width: 24px; height: 24px; border-radius: calc(8px * var(--rs, 1)); background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.pi.pn { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pd { font-size: .82rem; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; flex: none; }
.vbox { padding: 0 12px 12px; }
.vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: calc(12px * var(--rs, 1)); background: #1E1B4B center / cover no-repeat; cursor: pointer; overflow: hidden; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(30, 27, 75, .45)); }
.vplay { position: absolute; inset: 0; margin: auto; z-index: 1; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--violet); display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); transition: transform .2s ease; }
.vthumb:hover .vplay { transform: scale(1.07); }
.vplay svg { width: 20px; height: 20px; margin-left: 3px; }
.vbox iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: calc(12px * var(--rs, 1)); background: #000; }

.phrase-stack { position: relative; margin: auto 8px; padding-top: 30px; padding-bottom: 28px; width: calc(100% - 16px); }
.phrase-stack::before, .phrase-stack::after { content: ""; position: absolute; inset: 30px 22px 28px; border-radius: calc(24px * var(--rs, 1)); background: #fff; border: 1px solid var(--line); }
.phrase-stack::before { transform: translateY(14px); z-index: 1; }
.phrase-stack::after { transform: translateY(28px); inset: 30px 44px 28px; z-index: 0; opacity: .7; }
.phrase { position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: calc(24px * var(--rs, 1)); padding: 34px 26px 30px; text-align: center; box-shadow: 0 24px 44px -28px rgba(30, 27, 75, .3); }
.phrase mark { background: linear-gradient(transparent 58%, rgba(255, 183, 3, .38) 0); color: var(--ink); padding: 0 2px; }
.phrase-src { font-size: 1.45rem; font-weight: 500; color: var(--faint); line-height: 1.4; }
.phrase-line { display: block; height: 1px; background: var(--line); margin: 20px 0; }
.phrase-tr { font-size: 1.2rem; font-weight: 500; }
.phrase-play { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; }
.phrase-play svg { width: 12px; height: 12px; margin-left: 2px; }

/* Niveles A0–C2 (idea de Praktika) */
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.levels-text .title { margin-top: 10px; }
.levels-text .text-link { margin-top: 28px; }
.levels-visual { background: var(--violet-50); border-radius: calc(36px * var(--rs, 1)); padding: 56px 40px; display: grid; place-items: center; }
.phone { width: 300px; padding: 10px; background: #16142E; border-radius: calc(46px * var(--rs, 1)); box-shadow: 0 40px 80px -30px rgba(30, 27, 75, .45); }
.screen { background: #fff; border-radius: calc(37px * var(--rs, 1)); padding: 0 14px 20px; }
.notch { display: block; width: 96px; height: 24px; margin: 0 auto 18px; background: #16142E; border-radius: 0 0 16px 16px; }
.screen-q { text-align: center; font-weight: 600; margin-bottom: 14px; }
.lvls { list-style: none; display: grid; gap: 8px; }
.lvls li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: calc(14px * var(--rs, 1)); background: var(--gray); font-size: .84rem; line-height: 1.45; transition: transform .25s ease; }
.lvls b { width: 32px; flex: none; text-align: center; color: var(--violet); font-weight: 700; font-size: .95rem; direction: ltr; }
.lvls span { color: var(--muted); }
.lvls li.is-on { background: #fff; border: 1px solid #E4DCFF; box-shadow: 0 16px 34px -12px rgba(116, 82, 235, .45); transform: translateX(28px) scale(1.06); }
.lvls li.is-on span { color: var(--ink); font-weight: 500; }

/* Cita grande */
.quote-band { text-align: center; padding-top: 40px; }
.quote-who { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px 4px 6px; font-size: .9rem; color: var(--muted); }
.av-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.big-quote { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.55; max-width: 880px; margin: 24px auto 0; color: var(--ink); }

/* Idiomas */
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lang { position: relative; background: #fff; border-radius: calc(30px * var(--rs, 1)); padding: 34px; display: flex; flex-direction: column; min-height: 300px; transition: transform .2s ease, box-shadow .2s ease; }
.lang:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(30, 27, 75, .35); }
.lang .flag { width: 42px; height: 30px; border-radius: calc(7px * var(--rs, 1)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); margin-bottom: 24px; }
.lang h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.latin { direction: ltr; text-align: right; color: var(--muted); font-size: .92rem; }
.lang p { color: var(--muted); margin: 12px 0 24px; }
.lang .text-link { margin-top: auto; }
.lang.is-soon .flag, .lang.is-soon h3 { opacity: .5; }
.soon { position: absolute; top: 30px; left: 30px; font-size: .76rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 12px; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { border-top: 1px solid var(--line-2); padding-top: 24px; }
.step h3 { font-size: 1.2rem; font-weight: 600; margin-top: 18px; }
.step p { color: var(--muted); margin-top: 6px; }

/* Preguntas frecuentes */
.faq-wrap { max-width: 820px; }
.faq-list { border-bottom: 1px solid #E3E1EE; }
.faq-list details { border-top: 1px solid #E3E1EE; }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-weight: 600; font-size: 1.08rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; transition: transform .25s ease, background .25s ease, color .25s ease; }
.plus svg { width: 16px; height: 16px; }
.faq-list details[open] .plus { transform: rotate(45deg); background: var(--violet); color: #fff; }
.faq-list details p { color: var(--muted); padding: 0 0 24px; max-width: 62ch; }
.faq-more { text-align: center; color: var(--muted); margin-top: 32px; }

/* ---------- Contacto ---------- */
.contact-card { background: var(--gray); border-radius: calc(34px * var(--rs, 1)); padding: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.wa-line { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 12px 22px 12px 14px; background: #fff; border-radius: calc(18px * var(--rs, 1)); transition: box-shadow .2s ease; }
.wa-line:hover { box-shadow: 0 16px 30px -22px rgba(30, 27, 75, .4); }
.wa-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; flex: none; }
.wa-ico svg { width: 24px; height: 24px; }
.wa-line small { display: block; color: var(--muted); font-size: .82rem; }
.wa-line b { display: block; font-size: 1.08rem; font-weight: 600; }

.lead-form { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { border: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 8px; }
.req { color: var(--violet); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: calc(14px * var(--rs, 1)); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(116, 82, 235, .12); }
.field input::placeholder { color: #A9A6C4; }
.lead-form .is-invalid { border-color: #E5484D; background: #FFF7F7; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; cursor: pointer; transition: all .2s ease; background: #fff; }
.choice .flag { width: 20px; height: 14px; border-radius: 3px; }
.choice input:checked + span { border-color: var(--violet); background: var(--violet-50); color: var(--violet); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(116, 82, 235, .2); }
.choices.is-invalid span { border-color: #E5484D; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--violet); flex: none; }
.consent a { color: var(--violet); text-decoration: underline; }
.consent.is-invalid { color: #C4282D; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pill-submit { justify-self: start; font-size: 1rem; padding: 7px 22px 7px 7px; }
.pill-submit .arrow { width: 36px; height: 36px; }
.pill-submit[disabled] { opacity: .6; cursor: wait; }
.form-status { display: none; padding: 14px 18px; border-radius: calc(14px * var(--rs, 1)); font-size: .95rem; }
.form-status.is-ok { display: block; background: #ECFDF3; color: #05603A; }
.form-status.is-error { display: block; background: #FEF3F2; color: #B42318; }
.form-status a { font-weight: 600; text-decoration: underline; }

/* ---------- Cierre y pie ---------- */
.final { text-align: center; }
.final .pill { margin-top: 40px; }
.ftr { border-top: 1px solid var(--line); padding: 30px 0 100px; }
.ftr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-sm img { width: 34px; height: 34px; }
.brand-sm b { font-size: 1rem; }
.ftr-links { display: flex; gap: 22px; font-size: .9rem; color: var(--muted); }
.ftr-links a:hover { color: var(--ink); }
.copy { font-size: .85rem; color: var(--muted); direction: ltr; }

.wa-float { position: fixed; bottom: 22px; left: 22px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .65); z-index: 20; transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Página legal ---------- */
.legal { padding: 60px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 0 0 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-inline-start: 22px; }
.legal .updated { color: var(--muted); font-size: .92rem; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 600; margin-bottom: 30px; }
.back svg { width: 18px; height: 18px; transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring { animation: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hdr .wrap { grid-template-columns: auto 1fr; }
  .hdr nav.start { display: none; }
  .hdr nav.end a:not(.pill) { display: none; }
  .brand { order: -1; }
  .note { display: none; }
  .feats { grid-template-columns: 1fr; gap: 18px; }
  .feat + .feat { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .duo, .levels, .lang-grid, .steps { grid-template-columns: 1fr; }
  .levels { gap: 44px; }
  .lang { min-height: 0; }
  .contact-card { grid-template-columns: 1fr; gap: 36px; padding: 36px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 18px; }
  .lead { font-size: 1rem; }
  .proof { gap: 18px; }
  .laurel-badge b { font-size: 1.25rem; }
  .stage { --persp: 1700px; --r: 420px; --w: 200px; --h: 262px; height: 330px; }
  .rv { padding: 14px; gap: 6px; border-radius: calc(20px * var(--rs, 1)); }
  .rv .av { width: 34px; height: 34px; font-size: .85rem; }
  .rv b { font-size: .92rem; }
  .rv small { font-size: .74rem; }
  .stars { font-size: .9rem; }
  .rv p { font-size: .88rem; line-height: 1.6; }
  .chip { font-size: .7rem; }
  .rv--video .play { width: 48px; height: 48px; margin: -40px 0 0 -24px; }
  .rv--audio { gap: 8px; }
  .rv-hint { font-size: .82rem; line-height: 1.5; max-width: 200px; }
  .rn { width: 40px; height: 40px; flex: none; }
  .player { gap: 6px; padding: 4px; padding-inline-end: 10px; }
  .pp { width: 32px; height: 32px; }
  .pp svg { width: 11px; height: 11px; }
  .wave { height: 22px; gap: 1.5px; }
  .time { font-size: .68rem; min-width: 26px; }
  .subs { padding: 12px 8px 8px; border-radius: calc(14px * var(--rs, 1)); }
  .subs p { font-size: .95rem; line-height: 1.65; }
  .subs .cc { top: 5px; left: 6px; font-size: .5rem; }
  .band-gray, .band-white { padding: 96px 0; }
  .quote-band { padding-top: 20px; }
  .statement-sub { margin-bottom: 44px; }
  .ui-card { padding: 26px 22px; border-radius: calc(26px * var(--rs, 1)); }
  .phrase-src { font-size: 1.2rem; }
  .levels-visual { padding: 40px 18px; border-radius: calc(28px * var(--rs, 1)); }
  .phone { width: 270px; }
  .lvls li.is-on { transform: translateX(14px) scale(1.05); }
  .lang { padding: 28px; }
  .pill-main { width: 100%; justify-content: space-between; }
  .contact-card { padding: 28px 20px; border-radius: calc(26px * var(--rs, 1)); }
  .grid-2 { grid-template-columns: 1fr; }
  .pill-submit { justify-self: stretch; justify-content: space-between; }
  .ftr .wrap { flex-direction: column; text-align: center; }
}

/* ---------- Lo que se cambia desde el panel (yassineacademy.com/admin) ---------- */
[data-off] { display: none !important; }                /* sección ocultada en el panel */
main em { font-style: normal; color: var(--violet); }   /* palabras «en color» (botón A del editor) */
