/* Aula Raku · Raku IA. Marca de rakuia.com: Gabarito para titulares, Plus Jakarta Sans para texto, azul→cian, 楽. */
:root {
  --ink: #0b1220; --ink-2: #3a4560; --ink-3: #6b7790;
  --paper: #f6f8fc; --paper-2: #eaeff7; --white: #ffffff; --line: #dbe2ee;
  --night: #070b14; --night-2: #0e1526; --night-3: #151e33; --night-line: rgba(255,255,255,.09); --night-text: #eef2f9; --night-soft: #a6b1c4;
  --blue: #3b82f6; --blue-deep: #1d4ed8; --cyan: #22d3ee; --cyan-deep: #0891b2;
  --grad: linear-gradient(120deg, #3b82f6 0%, #22d3ee 100%);
  --amber: #f5b53a; --amber-soft: #fff4d6; --ok: #15803d; --ok-soft: #dcfce7; --danger: #c81e1e; --danger-soft: #fee2e2;
  --r: 14px; --r-lg: 22px;
  --display: Gabarito, "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sombra: 0 1px 2px rgba(11,18,32,.04), 0 10px 30px -12px rgba(11,18,32,.18);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.noche { background: var(--night); color: var(--night-text); }
a { color: var(--blue-deep); } body.noche a { color: var(--cyan); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .45em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; } h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); } h3 { font-size: 1.18rem; } h4 { font-size: 1rem; }
p { margin: 0 0 .9em; max-width: 68ch; }
.soft { color: var(--ink-3); } body.noche .soft { color: var(--night-soft); }
.peq { font-size: .9rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.estrecho { max-width: 760px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Cabecera */
.cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.marca img { height: 30px; width: auto; display: block; }
.marca .prod { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.1; }
body.noche .marca .prod { border-color: var(--night-line); }
.marca .prod small { display: block; font-family: var(--sans); font-weight: 500; font-size: .74rem; color: var(--ink-3); }
body.noche .marca .prod small { color: var(--night-soft); }
.cab nav { display: flex; align-items: center; gap: 22px; }
.cab nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
body.noche .cab nav a { color: var(--night-soft); }
.cab nav a:hover { color: var(--blue); } body.noche .cab nav a:hover { color: #fff; }
@media (max-width: 720px) { .cab { flex-wrap: wrap; } .cab nav { width: 100%; gap: 14px; flex-wrap: wrap; } .marca .prod { font-size: .95rem; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; min-height: 46px;
  font: inherit; font-family: var(--display); font-weight: 700; font-size: .98rem; cursor: pointer; text-decoration: none; color: #fff;
  background: var(--grad); box-shadow: 0 8px 24px -10px rgba(59,130,246,.7); transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: translateY(1px); }
body.noche a.btn { color: #fff; }   /* en la portada oscura los enlaces son cian: el botón vuelve a blanco (aviso de Joaquín, 28/10/2026) */
.btn.sec { background: var(--paper-2); color: var(--ink); box-shadow: none; } body.noche .btn.sec { background: var(--night-3); color: #fff; }
.btn.lin { background: transparent; color: var(--ink-2); box-shadow: none; border: 1.5px solid var(--line); } body.noche .btn.lin { color: #fff; border-color: var(--night-line); }
.btn.peligro { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn.chico { padding: 8px 14px; min-height: 36px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Formularios y piezas */
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 5px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
textarea { min-height: 90px; resize: vertical; }
.fila { display: grid; gap: 12px 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .fila { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 0 0 18px; }
.card.suave { background: #e9f3ff; border-color: transparent; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--amber-soft); color: #92600a; }
.chip.pri { background: #e0ecff; color: var(--blue-deep); } .chip.mal { background: var(--danger-soft); color: var(--danger); }
.aviso { padding: 13px 16px; border-radius: var(--r); background: var(--amber-soft); color: #7a4e00; font-weight: 600; margin: 0 0 16px; }
.aviso.ok { background: var(--ok-soft); color: var(--ok); } .aviso.mal { background: var(--danger-soft); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: 90vw; }
.toast.ver { opacity: 1; }
.barra { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }
table.lista { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.lista th, table.lista td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lista th { color: var(--ink-3); font-weight: 600; font-size: .85rem; width: 30%; }
.oculto { display: none !important; }
.pie { color: var(--ink-3); font-size: .88rem; padding: 36px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.pie a { color: inherit; } body.noche .pie { color: var(--night-soft); border-top: 1px solid var(--night-line); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--blue-deep); }
.kpi span { color: var(--ink-3); font-size: .85rem; }
.fila-persona { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fila-persona .datos { flex: 1; min-width: 200px; } .fila-persona .datos b { display: block; font-family: var(--display); font-size: 1.05rem; }
.fila-persona .barra { width: 120px; } @media (max-width: 640px) { .fila-persona .barra { width: 100%; } }
.copiar { display: flex; gap: 8px; } .copiar input { flex: 1; font-size: .9rem; }
.hoja { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, 94vw); z-index: 40; max-height: 90vh; overflow: auto; }
.fondo { position: fixed; inset: 0; background: rgba(7,11,20,.55); z-index: 30; }

/* ---------- Portada (fondo noche) ---------- */
.hero { position: relative; padding: 36px 0 48px; overflow: hidden; }
.hero .aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0;
  background: radial-gradient(600px 420px at 78% 40%, rgba(34,211,238,.22), transparent 60%), radial-gradient(700px 500px at 20% 10%, rgba(59,130,246,.22), transparent 60%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.fecha-ley { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(245,181,58,.12); color: #ffd27a; font-weight: 600; font-size: .9rem; margin-bottom: 20px; }
.fecha-ley b { background: var(--amber); color: #2a1a00; border-radius: 999px; padding: 3px 9px; font-family: var(--display); font-size: .82rem; }
.hero h1 { max-width: 13ch; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--night-soft); max-width: 56ch; margin-bottom: 26px; }
.hero .pruebas { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--night-soft); font-size: .92rem; }
.hero .pruebas strong { color: #fff; font-family: var(--display); font-weight: 700; display: block; font-size: 1.15rem; }

/* La profesora: vista previa del reproductor en la portada y reproductor real en el aula */
.profe { position: relative; }
.repro { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(34,211,238,.35); color: #fff; }
.repro .escena { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(900px 500px at 20% 0%, #16223f, #0b1120 60%); overflow: hidden; }
.repro .diapo { position: absolute; inset: 0; padding: 7% 36% 8% 7%; display: flex; flex-direction: column; justify-content: center; }
.repro .diapo .cap { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.4cqw, 1.7rem); line-height: 1.15; margin-bottom: .5em; }
.repro .diapo .mod { color: var(--cyan); font-weight: 600; font-size: clamp(.68rem, 1.5cqw, .85rem); margin-bottom: .8em; letter-spacing: .01em; }
.repro .diapo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.repro .diapo li { padding-left: 1.1em; position: relative; font-size: clamp(.78rem, 1.9cqw, 1.05rem); color: #d6def0; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.repro .diapo li.ver { opacity: 1; transform: none; }
.repro .diapo li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5em; height: .5em; border-radius: 50%; background: var(--grad); }
.repro .escena { container-type: inline-size; }
.repro .raku { position: absolute; right: 0; top: 0; bottom: 0; width: 38%; pointer-events: none; overflow: hidden; }
.repro .raku img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.repro .raku .prov { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); white-space: nowrap; font-size: clamp(.6rem, 1.3cqw, .78rem); font-weight: 600; color: #fff; background: rgba(7,11,20,.65); padding: .35em .7em; border-radius: 999px; }
.repro .diapo { padding-right: 41%; }
.repro .sub { right: 40%; }
.repro .profe-video { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.repro.con-video .profe-video { display: block; }
.repro.con-video .raku, .repro.con-video .diapo { display: none; }
.repro.con-video .sub { right: 4%; left: 4%; text-align: center; font-size: clamp(.8rem, 2cqw, 1.15rem); }
.repro .raku svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2%); } }
.repro .sub { position: absolute; left: 4%; right: 36%; bottom: 5%; font-size: clamp(.72rem, 1.8cqw, 1rem); line-height: 1.35; color: #fff;
  background: rgba(7,11,20,.72); padding: .5em .8em; border-radius: 8px; display: none; }
.repro .sub.ver { display: block; }
.repro .velo { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,11,20,.35); cursor: pointer; border: 0; color: #fff; font: inherit; }
.repro .velo .play { width: 74px; height: 74px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(34,211,238,.45); transition: transform .15s; }
.repro .velo:hover .play { transform: scale(1.06); }
.repro .velo .play svg { width: 30px; height: 30px; margin-left: 4px; }
.repro .escena:has(.velo:not(.oculto)) .sub { display: none; }
.repro .velo span.t { position: absolute; left: 0; right: 0; bottom: 10%; text-align: center; font-weight: 600; font-size: .9rem; color: #cfe6ff; }
.repro .mandos { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--night-3); }
.repro .mandos button { background: transparent; border: 0; color: #fff; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.repro .mandos button:hover { background: rgba(255,255,255,.08); }
.repro .mandos button svg { width: 22px; height: 22px; }
.repro.completa, .repro:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; border-radius: 0; border: 0; background: #000; }
.repro.completa .escena, .repro:fullscreen .escena { flex: 1; aspect-ratio: auto; min-height: 0; }
.repro.completa .profe-video, .repro:fullscreen .profe-video { object-fit: contain; background: #000; }
.repro.completa .mandos, .repro:fullscreen .mandos { padding: 14px 28px; }
.repro .mandos .linea { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.15); position: relative; cursor: pointer; }
.repro .mandos .linea > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 999px; width: 0; }
.repro .mandos .donde { font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.repro .aviso-escena { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); background: rgba(7,11,20,.85); color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(.8rem, 2cqw, 1.1rem); padding: .5em 1em; border-radius: 999px; opacity: 0; transition: opacity .25s; pointer-events: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.repro .aviso-escena.ver { opacity: 1; }
@media (max-width: 640px) { .repro .mandos .tiempo { display: none; } }
.repro .mandos .tiempo { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--night-soft); min-width: 86px; text-align: right; }
.repro .mandos .vel { font-size: .82rem; font-weight: 700; width: auto; padding: 0 8px; border-radius: 8px; }
.repro .mandos .cc { font-size: .78rem; font-weight: 800; width: auto; padding: 0 6px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.5) !important; height: 24px; }
.repro .mandos .cc.off { opacity: .45; }
.escenas-lista { display: grid; gap: 4px; margin-top: 14px; }
.escenas-lista button { display: flex; gap: 12px; align-items: center; text-align: left; background: transparent; border: 0; font: inherit; color: var(--ink); padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.escenas-lista button:hover { background: var(--paper-2); }
.escenas-lista button.on { background: #e0ecff; color: var(--blue-deep); font-weight: 600; }
.escenas-lista button.hecha .n { background: var(--ok-soft); color: var(--ok); }
.escenas-lista .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--paper-2); color: var(--ink-3); flex: none; }
.escenas-lista .d { margin-left: auto; color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }

.secc { padding: 56px 0; } .secc + .secc { border-top: 1px solid var(--night-line); }
.secc h2 { max-width: 24ch; } .secc > .wrap > p.intro { color: var(--night-soft); font-size: 1.05rem; margin-bottom: 28px; }
.pasos { counter-reset: paso; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--night-line); }
@media (max-width: 860px) { .pasos { grid-template-columns: 1fr; } }
.pasos > div { counter-increment: paso; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--night-line); }
.pasos > div::before { content: counter(paso); font-family: var(--display); font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 10px; }
.pasos h3 { font-size: 1.08rem; } .pasos p { color: var(--night-soft); font-size: .95rem; margin: 0; }
.programa { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-line); }
.programa li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.programa .p { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--night-line); display: grid; place-items: center; color: var(--cyan); }
.programa .p svg { width: 18px; height: 18px; margin-left: 2px; }
.programa h3 { font-size: 1.08rem; margin: 0 0 3px; } .programa p { margin: 0; color: var(--night-soft); font-size: .93rem; }
.programa .min { color: var(--night-soft); font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; }
@media (max-width: 640px) { .programa li { grid-template-columns: 44px 1fr; } .programa .min { grid-column: 2; } }
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .planes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .planes { grid-template-columns: 1fr; } }
.plan { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.plan.destacado { border-color: rgba(34,211,238,.6); background: linear-gradient(180deg, rgba(34,211,238,.08), var(--night-2) 40%); }
.plan .nombre { font-family: var(--display); font-weight: 700; font-size: 1.2rem; } .plan .para { color: var(--night-soft); font-size: .92rem; min-height: 2.8em; }
.plan .precio { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.02em; margin: 14px 0 2px; }
.plan .precio small { font-family: var(--sans); font-weight: 500; font-size: .9rem; color: var(--night-soft); letter-spacing: 0; }
.plan .cond { color: var(--night-soft); font-size: .85rem; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; display: grid; gap: 8px; }
.plan li { padding-left: 24px; position: relative; font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 100% no-repeat; }
.claro { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .claro { grid-template-columns: 1fr; } }
.claro p { color: var(--night-soft); margin: 0; } .claro h3 { color: #fff; }
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }
.contacto .kanji { font-size: 7rem; font-family: "Noto Sans JP", sans-serif; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }

/* ---------- Aula (fondo claro) ---------- */
.aula-cab { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.pasos-aula { display: flex; gap: 6px; margin: 0 0 20px; flex-wrap: wrap; }
.pasos-aula span { flex: 1; min-width: 100px; text-align: center; font-size: .8rem; font-weight: 700; padding: 7px 6px; border-radius: 8px; background: var(--paper-2); color: var(--ink-3); }
.pasos-aula span.on { background: #e0ecff; color: var(--blue-deep); } .pasos-aula span.ok { background: var(--ok-soft); color: var(--ok); }
.mod-lista { display: grid; gap: 10px; }
.mod { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); width: 100%; }
.mod:hover { border-color: var(--blue); }
.mod .num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--paper-2); color: var(--ink-3); flex: none; }
.mod.hecho .num { background: var(--ok-soft); color: var(--ok); }
.mod .tit { font-family: var(--display); font-weight: 700; font-size: 1.05rem; } .mod .sub { color: var(--ink-3); font-size: .88rem; }
.mod.bloqueado { opacity: .5; cursor: not-allowed; }
.contenido h3 { margin-top: 26px; color: var(--blue-deep); }
.contenido p, .contenido li { font-size: 1.03rem; } .contenido ul, .contenido ol { padding-left: 22px; } .contenido li { margin: 6px 0; }
.idea { background: #e9f3ff; color: var(--blue-deep); border-radius: var(--r); padding: 12px 16px; font-weight: 600; }
.preg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; }
.preg .tx { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.opc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin: 6px 0; cursor: pointer; }
.opc:hover { border-color: var(--blue); } .opc input { width: auto; margin-top: 3px; }
.opc.bien { border-color: var(--ok); background: var(--ok-soft); } .opc.mal { border-color: var(--danger); background: var(--danger-soft); }
.expl { font-size: .9rem; color: var(--ink-2); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.firma { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; } .firma input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
.cert { text-align: center; padding: 34px 20px; }
.cert .cod { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--blue-deep); letter-spacing: .04em; }
.pol h3 { font-size: 1rem; margin: 16px 0 4px; } .pol p { font-size: .95rem; }
.leccion { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .leccion { grid-template-columns: 1fr; } }
.leccion .repro { color: #fff; }
.texto-leccion details { margin-top: 14px; } .texto-leccion summary { cursor: pointer; font-weight: 600; color: var(--blue-deep); }

/* Cuadernos de ejercicios: recorrido de una pregunta por pantalla (28/10/2026) */
.cu { max-width: 640px; margin: 0 auto; --cu-ok: #15803d; --cu-ok-bg: #e7f6ec; --cu-mal: #b91c1c; --cu-mal-bg: #fdecec; --cu-sun: #fff4cc; }
.cu-cab { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; }
.cu-atras { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 1.1rem; cursor: pointer; color: var(--ink); flex: none; }
.cu-atras:hover { border-color: var(--blue); }
.cu-prog { flex: 1; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.cu-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s ease; }
.cu-etq { font-size: .82rem; color: var(--muted, #6b7280); white-space: nowrap; }
.cu-img { width: 100%; max-height: 230px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin-bottom: 18px; box-shadow: 0 12px 30px -18px rgba(0,0,0,.5); }
body.modo-cuaderno .pasos-aula, body.modo-cuaderno .pie { display: none; }
body.modo-cuaderno .cab { margin-bottom: 10px; }
.cu-op:focus-visible, .cu-atras:focus-visible, .cu-tok:focus-visible, .cu-sig:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cu-color { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; margin-right: 2px; }
.cu-eyebrow { margin: 0 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); }
.cu-h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.1; margin: 0 0 10px; }
.cu-h2 { font-size: clamp(1.4rem, 3.6vw, 1.8rem); line-height: 1.15; margin: 0 0 10px; }
.cu-preg { font-size: clamp(1.25rem, 3.4vw, 1.55rem); line-height: 1.25; margin: 0 0 18px; }
.cu-lead { font-size: 1.1rem; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.cu-lista { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.cu-lista li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.cu-ico { font-size: 1.3rem; width: 32px; text-align: center; flex: none; }
.cu-min { margin-left: auto; color: var(--muted, #6b7280); font-size: .88rem; white-space: nowrap; }
.cu-ops { display: grid; gap: 10px; margin: 6px 0 10px; }
.cu-ops.fila { grid-template-columns: 1fr 1fr; }
.cu-op { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 13px 16px; font: inherit; font-size: 1.05rem; line-height: 1.35; text-align: left; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: transform .08s ease, border-color .15s, background .15s; }
.cu-op:hover:not([disabled]) { border-color: var(--blue); }
.cu-op:active:not([disabled]) { transform: scale(.985); }
.cu-op[disabled] { cursor: default; }
.cu-op.sel { background: #e8f0ff; border-color: var(--blue); font-weight: 600; }
.cu-op.ok { background: var(--cu-ok-bg); border-color: var(--cu-ok); color: var(--cu-ok); font-weight: 600; }
.cu-op.mal { background: var(--cu-mal-bg); border-color: var(--cu-mal); color: var(--cu-mal); }
.cu-op.ok-suave { border-color: var(--cu-ok); border-style: dashed; }
.cu-op.apagada { opacity: .55; }
.cu-marca { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); flex: none; }
.cu-op.sel .cu-marca { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.cu-ayuda { color: var(--muted, #6b7280); font-size: .9rem; margin: 0; }
.cu-fb { margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 1rem; line-height: 1.4; animation: cu-sube .25s ease; }
.cu-fb.bien { background: var(--cu-ok-bg); color: var(--cu-ok); }
.cu-fb.mal { background: var(--cu-mal-bg); color: var(--cu-mal); }
.cu-fb.neutra { background: var(--paper-2); color: var(--ink); }
@keyframes cu-sube { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cu-caso { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: .9rem; color: var(--ink-3); }
.cu-puntos { display: flex; gap: 6px; }
.cu-contexto { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.cu-instr { margin: -8px 0 14px; color: var(--ink-3); font-size: .95rem; }
.cu-puntos i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-2); border: 1.5px solid var(--line); }
.cu-puntos i.ahora { border-color: var(--blue); background: #e8f0ff; }
.cu-puntos i.bien { background: var(--cu-ok); border-color: var(--cu-ok); }
.cu-puntos i.mal { background: var(--cu-mal); border-color: var(--cu-mal); }
.cu-item { font-family: Gabarito, "Plus Jakarta Sans", sans-serif; font-size: 1.3rem; line-height: 1.3; padding: 18px 20px; border-radius: 16px; background: var(--paper-2); margin: 0 0 14px; }
.cu-tachar { font-size: 1.15rem; line-height: 2.2; margin: 0 0 10px; }
.cu-tok { display: inline-block; padding: 2px 8px; border-radius: 8px; cursor: pointer; border: 1.5px solid transparent; user-select: none; }
.cu-tok:hover { background: var(--paper-2); }
.cu-tok.sel { background: #1f2937; color: #fff; text-decoration: line-through; }
.cu-tok.falta { border-color: var(--cu-mal); background: var(--cu-mal-bg); }
.cu-tok.sobra { background: #e5e7eb; color: #6b7280; }
.cu-acciones { margin: 8px 0; }
.cu-orden { padding-left: 26px; margin: 0 0 12px; }
.cu-orden li { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: #e8f0ff; font-size: 1.02rem; }
.cu-orden li.bien { background: var(--cu-ok-bg); color: var(--cu-ok); }
.cu-orden li.mal { background: var(--cu-mal-bg); color: var(--cu-mal); }
.cu-cierre { text-align: center; padding: 10px 0; }
.cu-nota { font-family: Gabarito, "Plus Jakarta Sans", sans-serif; font-size: 1.4rem; margin: 6px 0 18px; }
.cu-nota b { font-size: 2.6rem; color: var(--blue-deep); }
.cu-recordar { background: var(--cu-sun); border-radius: 18px; padding: 20px 22px; text-align: left; }
.cu-recordar span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #92400e; margin-bottom: 6px; }
.cu-recordar p { margin: 0; font-family: Gabarito, "Plus Jakarta Sans", sans-serif; font-size: 1.25rem; line-height: 1.35; color: #431407; }
.cu-pie { display: flex; gap: 10px; align-items: center; margin: 22px 0 10px; }
.cu-sig { min-width: 200px; padding: 14px 26px; font-size: 1.05rem; }
.cu-sig[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) {
  .cu-img { max-height: 170px; }
  .cu-pie { position: sticky; bottom: 0; background: var(--paper); box-shadow: 0 -14px 18px -14px rgba(0,0,0,.12); padding: 12px 0 12px; margin-top: 16px; }
  .cu-cuerpo { padding-bottom: 8px; }
  .cu-sig { flex: 1; }
  .cu-ops.fila { grid-template-columns: 1fr; }
}

/* Precios (28/10/2026): un solo precio, calculadora de FUNDAE y tabla por tamaño de empresa */
.precios { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .precios { grid-template-columns: 1fr; } }
.precios .plan .precio { font-size: 3rem; }
.calc { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.calc h3 { margin: 0; color: #fff; }
.calc .entradas { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.calc label { display: grid; gap: 6px; font-size: .88rem; color: var(--night-soft); font-weight: 600; }
.calc input { width: 170px; max-width: 100%; font: 600 1.1rem var(--display); color: #fff; background: var(--night-3); border: 1px solid var(--night-line); border-radius: var(--r); padding: 10px 12px; }
.calc .res { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 520px) { .calc .res { grid-template-columns: 1fr; } }
.calc .dato { background: var(--night-3); border-radius: var(--r); padding: 14px 16px; }
.calc .dato span { display: block; font-size: .8rem; color: var(--night-soft); margin-bottom: 4px; }
.calc .dato b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.calc .dato.bueno b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc .nota { margin: 0; font-size: .88rem; color: var(--night-soft); max-width: none; min-height: 2.6em; }
.tramos { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .95rem; }
.tramos th, .tramos td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--night-line); vertical-align: top; }
.tramos th { color: var(--night-soft); font-weight: 600; font-size: .82rem; }
.tramos td:first-child { font-family: var(--display); font-weight: 700; color: #fff; white-space: nowrap; }
.tramos .num { white-space: nowrap; }
.tramos tr.act td { background: rgba(34,211,238,.08); }
.tramos tr.act td:first-child { color: var(--cyan); }
@media (max-width: 700px) {
  .tramos, .tramos tbody, .tramos tr, .tramos td { display: block; }
  .tramos thead { display: none; }
  .tramos tr { border: 1px solid var(--night-line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 10px; background: var(--night-2); }
  .tramos tr.act { border-color: rgba(34,211,238,.6); }
  .tramos td, .tramos tr.act td { padding: 6px 0; border: 0; white-space: normal; background: transparent; }
  .tramos td:first-child { font-size: 1.05rem; padding-bottom: 8px; border-bottom: 1px solid var(--night-line); margin-bottom: 4px; }
  .tramos td[data-l]::before { content: attr(data-l); display: block; font-family: var(--sans); font-size: .78rem; color: var(--night-soft); font-weight: 600; }
}
