/* SubeNota — portada B (index-b.html): el mismo contenido con el aspecto de la referencia.
   Fondo gris claro, bloques en tarjetas blancas muy redondeadas, colores pastel por modo, Plus Jakarta Sans.
   Se carga después de subenota.css y solo en index-b.html. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); }

:root {
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --ink: #1b2230;
  --ink-2: #4a5466;
  --muted: #5f6878;
  --line: #e7eaef;
  --line-strong: #d3d8e0;
  --accent: #2f6bf6;
  --accent-hover: #2257d6;
  --on-accent: #ffffff;
  --accent-soft: #e6eeff;
  --focus: #2f6bf6;
  --shadow-1: 0 6px 20px rgba(27, 34, 48, 0.06);
  --header-bg: rgba(238, 240, 243, 0.86);
  --r-1: 12px;
  --r-2: 18px;
  --font-sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  /* pastel de cada modo: fondo y color fuerte */
  --b-azul: #e3ecfe;  --b-azul-i: #2f6bf6;
  --b-verde: #d6f2de; --b-verde-i: #1f8a4c;
  --b-rosa: #f6dcf0;  --b-rosa-i: #b0479a;
  --b-naranja: #fce4d2; --b-naranja-i: #c5631d;
  --b-lila: #e4ddf9;  --b-lila-i: #6a4bd6;
}
:root[data-theme="dark"] { --font-sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif; --accent: #6b97ff; --accent-hover: #87abff; --on-accent: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --font-sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif; } }

body { background: var(--bg); }
h1, h2, h3 { letter-spacing: -0.03em; font-weight: 800; }

/* ---------- botones: redondeados; los de la cabecera, en píldora ---------- */
.btn { border-radius: var(--r-1); font-weight: 700; }
.btn--primary { box-shadow: 0 6px 16px -6px rgba(47, 107, 246, 0.55); }
.site-header .btn { border-radius: 22px; }
.site-header .btn--ghost { background: var(--surface); border-color: var(--surface); }
.input, .select, .textarea { border-radius: var(--r-1); border-color: var(--line-strong); }
.seg { border-radius: 14px; background: var(--surface-2); border-color: var(--line); }
.seg span { border-radius: 11px; }

/* ---------- sin franjas: todo sobre el gris, en tarjetas ---------- */
.section--tint, .cifras { background: transparent; border-block: 0; }
.qcard, .panel, .tipo, .pcard, .plan, .testi { border-color: var(--surface); box-shadow: var(--shadow-1); }
.qcard, .panel, .pcard, .testi { border-radius: 22px; }

/* ---------- portada: tarjeta con degradado suave y etiquetas flotando ---------- */
.hero.hero--centro { padding-top: clamp(16px, 3vw, 28px); }
.hero.hero--centro > .wrap { position: relative; background: linear-gradient(120deg, #f4f7ff 0%, #fff7ee 45%, #fdf0f7 100%); border: 1px solid var(--surface); border-radius: 28px; box-shadow: var(--shadow-1); padding-block: clamp(36px, 6vw, 72px); }
.hero .hl { color: var(--accent); background: none; text-decoration: none; }
.hero .hl::after, .hero .hl::before { display: none; }
.b-chips { position: absolute; inset: 0; pointer-events: none; }
.b-chip { position: absolute; border-radius: 12px; padding: 9px 12px; font-weight: 800; font-size: 13px; color: #fff; box-shadow: 0 8px 20px rgba(27, 34, 48, 0.16); letter-spacing: .02em; }
.b-chip--pdf { background: #ec4a5c; top: 9%;  right: 7%;  transform: rotate(-6deg); }
.b-chip--doc { background: #2f6bf6; top: 30%; right: 3%;  transform: rotate(-4deg); }
.b-chip--txt { background: #8a5cf6; top: 13%; left: 5%;   transform: rotate(-10deg); }
.b-chip--url { background: #f08a2c; top: 34%; left: 3%;   transform: rotate(8deg); }
@media (max-width: 1100px) { .b-chips { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .b-chip { animation: b-flota 6s ease-in-out infinite; }
  .b-chip--doc { animation-delay: -1.5s; } .b-chip--txt { animation-delay: -3s; } .b-chip--url { animation-delay: -4.5s; }
}
@keyframes b-flota { 50% { translate: 0 -8px; } }

/* modos de la portada: cajas pastel, como los modos de la referencia */
.mh a { border-radius: 18px; border: 1.5px solid transparent; }
.mh--1 a { background: var(--b-azul); }    .mh--1 .mh__t { color: var(--b-azul-i); }
.mh--2 a { background: var(--b-verde); }   .mh--2 .mh__t { color: var(--b-verde-i); }
.mh--3 a { background: var(--b-lila); }    .mh--3 .mh__t { color: var(--b-lila-i); }
.mh--4 a { background: var(--b-naranja); } .mh--4 .mh__t { color: var(--b-naranja-i); }
.mh a:hover { border-color: currentColor; box-shadow: none; }
.mh__card { border-radius: 12px; border: 0; }

/* cifras: una tarjeta blanca */
.cifras__grid { background: var(--surface); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-1); }

/* ---------- para estudiar / para enseñar: tarjetas blancas ---------- */
#roles .feat { background: var(--surface); border-color: var(--surface); border-radius: 28px; box-shadow: var(--shadow-1); }
#roles .mock { border-radius: 18px; box-shadow: none; border: 1px solid var(--line); background: var(--surface-2); }
.feat__tag, .eyebrow { font-family: var(--font-sans); font-weight: 700; color: var(--accent); letter-spacing: 0; text-transform: none; }

/* ---------- tipos de examen: tarjetas con icono pastel ---------- */
.tipo { border-radius: 18px; padding: 18px 20px; }
.tipo b { font-weight: 700; }
.tipo__d, .tipo__tag { font-family: var(--font-sans); color: var(--muted); font-weight: 500; }
.tipo:hover { border-color: var(--accent); }

/* ---------- opiniones, precios, preguntas ---------- */
.testi--destacada { border-color: var(--accent); }
.testi__res { color: var(--ink); }
.testi--destacada .testi__res { color: var(--accent); }
.testi__shot { border-radius: 16px; background: var(--surface-2); border-color: var(--line); }
.op-tabs { border-radius: 22px; }
.plan { background: var(--surface); border-radius: 24px; }
.plan--pro { border: 2px solid var(--accent); }
.faq details { background: var(--surface); border: 0 !important; border-radius: 16px; padding-inline: 14px; margin-bottom: 10px; box-shadow: var(--shadow-1); }

/* estrellas en ámbar, como siempre; el azul solo para acciones */
.testi__stars, .op-nota__estrellas { color: #f5a400; }
/* cabecera: la letra es más ancha, ajusto huecos para que quepa el botón del tema */
.nav a { padding: 0 9px; font-size: 0.9rem; }
.site-header .btn { padding-inline: 16px; }
/* tarjetas de examen del catálogo: blancas, como las certificaciones de la referencia */
.ex { background: var(--surface); border-color: var(--surface); border-radius: 22px; box-shadow: var(--shadow-1); }

/* comunidad y cierre: tarjetas grandes sobre el gris, como la portada */
.comu, .cierre { background: transparent; border-top: 0; }
.comu > .wrap, .cierre > .wrap { background: linear-gradient(120deg, #eef3ff 0%, #f6f0ff 100%); border: 1px solid var(--surface); border-radius: 28px; box-shadow: var(--shadow-1); padding-block: clamp(32px, 5vw, 56px); }
.cierre > .wrap { background: linear-gradient(120deg, #f4f7ff 0%, #fff7ee 45%, #fdf0f7 100%); padding-block: clamp(44px, 7vw, 80px); }
.comu .hl, .cierre h2 .hl { box-shadow: none; color: var(--accent); }

/* las tarjetas grandes, alineadas con el resto y con margen en el móvil */
.hero.hero--centro > .wrap, .comu > .wrap, .cierre > .wrap { max-width: var(--maxw); width: calc(100% - 2 * var(--gutter)); padding-inline: clamp(18px, 4vw, 48px); }
@media (max-width: 700px) { .hero.hero--centro > .wrap, .comu > .wrap, .cierre > .wrap { width: calc(100% - 24px); border-radius: 22px; padding-inline: 14px; } }

/* ---------- repaso 1: tarjetas sin borde, solo sombra; las pantallas de ejemplo, sin «cuadrado gris» ---------- */
.testi, .ex, .contacto__form, .comu__caja, .plan, .qcard, .tipo, .cifras__grid, .faq details { border: 0; box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); }
.testi--destacada { box-shadow: 0 0 0 2px var(--accent), 0 12px 28px -10px rgba(47, 107, 246, 0.35); }
.plan--pro { border: 0; box-shadow: 0 0 0 2px var(--accent), 0 12px 28px -10px rgba(47, 107, 246, 0.35); }
.testi__shot, #roles .mock { background: var(--surface-2); border: 0; }
.mt__btn, .mt .btn--primary { color: var(--on-accent); }

/* ---------- repaso 2: opiniones más contenidas ---------- */
#opiniones .testi__res { font-size: 1rem; line-height: 1.35; letter-spacing: -0.01em; }
#opiniones .testi__txt { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
#opiniones h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }

/* ---------- repaso 3: academias y colegios, tarjeta blanca como las demás ---------- */
.planes__centros { background: var(--surface); border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); }

/* ---------- repaso 5: luz en 4 niveles (js/luz.js) ---------- */
:root { --b-hero: linear-gradient(120deg, #f4f7ff 0%, #fff7ee 45%, #fdf0f7 100%); --b-comu: linear-gradient(120deg, #eef3ff 0%, #f6f0ff 100%); }
.hero.hero--centro > .wrap, .cierre > .wrap { background: var(--b-hero); }
.comu > .wrap { background: var(--b-comu); }
.hero.hero--centro > .wrap, .comu > .wrap, .cierre > .wrap { border-color: var(--surface); }

/* Suave: un punto menos de brillo */
:root[data-luz="suave"] {
  --bg: #e3e6eb; --surface: #f5f6f8; --surface-2: #e9ecf0; --line: #d9dee5; --line-strong: #c4cad4;
  --header-bg: rgba(227, 230, 235, 0.88);
  --b-hero: linear-gradient(120deg, #e9edf6 0%, #f3ede6 45%, #f2e8ee 100%); --b-comu: linear-gradient(120deg, #e4e9f4 0%, #ebe6f3 100%);
  --b-azul: #d9e3f8; --b-verde: #cfe8d6; --b-lila: #dcd6f0; --b-naranja: #f1ddcc;
}
/* Tenue: luz baja, sin llegar a noche */
:root[data-luz="tenue"] {
  --bg: #cdd2da; --surface: #e2e6ec; --surface-2: #d6dbe2; --line: #c3c9d2; --line-strong: #aab2be;
  --ink-2: #3e4757; --muted: #4d5666; --header-bg: rgba(205, 210, 218, 0.9);
  --b-hero: linear-gradient(120deg, #d7dde9 0%, #e1dbd4 45%, #e0d6dd 100%); --b-comu: linear-gradient(120deg, #d3d9e6 0%, #dbd5e3 100%);
  --b-azul: #c9d5ef; --b-verde: #c0dcc8; --b-lila: #cdc6e6; --b-naranja: #e5cfbd;
  --shadow-1: 0 6px 20px rgba(27, 34, 48, 0.10);
}
/* Noche: el tema oscuro, con las tarjetas grandes también oscuras */
:root[data-theme="dark"] {
  --b-hero: linear-gradient(120deg, #141f36 0%, #1a1d33 50%, #201a30 100%); --b-comu: linear-gradient(120deg, #142039 0%, #1b1b36 100%);
  --b-azul: #1b2a4a; --b-azul-i: #8db0ff; --b-verde: #15302a; --b-verde-i: #6fd39a;
  --b-lila: #251f45; --b-lila-i: #b6a2ff; --b-naranja: #35241a; --b-naranja-i: #ffaa6b;
}
:root[data-theme="dark"] .hero.hero--centro > .wrap, :root[data-theme="dark"] .comu > .wrap, :root[data-theme="dark"] .cierre > .wrap { border-color: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .testi, :root[data-theme="dark"] .ex, :root[data-theme="dark"] .contacto__form, :root[data-theme="dark"] .comu__caja,
:root[data-theme="dark"] .plan, :root[data-theme="dark"] .qcard, :root[data-theme="dark"] .tipo, :root[data-theme="dark"] .cifras__grid,
:root[data-theme="dark"] .faq details, :root[data-theme="dark"] .planes__centros { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .b-chip { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
body, .site-header, .hero.hero--centro > .wrap, .comu > .wrap, .cierre > .wrap, .testi, .ex, .plan, .qcard, .tipo { transition: background-color .25s ease, color .25s ease; }

/* el panel de la luz */
.luz { position: fixed; z-index: 60; width: 248px; padding: 14px 16px 12px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 40px -12px rgba(15, 27, 45, 0.35), 0 0 0 1px var(--line); }
.luz__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .9375rem; }
.luz__val { color: var(--accent); font-weight: 700; font-size: .875rem; }
.luz__barra { width: 100%; accent-color: var(--accent); height: 28px; margin: 0; cursor: pointer; }
.luz__barra:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.luz__marcas { display: flex; justify-content: space-between; margin-top: 2px; font-size: .75rem; color: var(--muted); }
:root[data-theme="dark"] { --accent-soft: #1b2a4a; }
:root[data-theme="dark"] .testi--destacada, :root[data-theme="dark"] .plan--pro, .testi--destacada, .plan--pro { box-shadow: 0 0 0 2px var(--accent), 0 12px 28px -10px rgba(47, 107, 246, 0.35); }

/* ---------- «Si estudias» / «Si enseñas»: fondo pastel suave y la pantalla en blanco, flotando (sin gris) ---------- */
#roles .feat { background: var(--b-comu); }
#roles .feat--rev { background: var(--b-hero); }
#roles .mock { background: var(--surface); border: 0; box-shadow: 0 1px 2px rgba(27, 34, 48, 0.05), 0 18px 40px -16px rgba(27, 34, 48, 0.22); }
:root[data-theme="dark"] #roles .mock { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px -16px rgba(0, 0, 0, 0.5); }

/* ---------- opiniones: repaso ---------- */
/* el carrusel deja aire para el borde de la destacada y la sombra (antes los cortaba) */
#opiniones .carrusel__pista { padding: 6px 6px 28px; margin: -6px -6px -28px; scroll-padding-inline: 6px; }
/* la pantalla de ejemplo: sin gris; fondo pastel muy suave y lo de dentro en blanco, centrado */
#opiniones .testi__shot { --surface-2: #ffffff; background: linear-gradient(135deg, #f1f5ff 0%, #f7f2ff 100%); border: 0; display: grid; align-content: center; }
#op-p-alumnos .testi:nth-child(even) .testi__shot, #op-p-docentes .testi:nth-child(even) .testi__shot { background: linear-gradient(135deg, #fff5ec 0%, #fdf1f6 100%); }
#opiniones .testi__shot .mock__chip, #opiniones .testi__shot [class*="mp__op"]:not([class*="--a"]):not([class*="--b"]):not([class*="--c"]):not([class*="--d"]) { box-shadow: 0 1px 2px rgba(27, 34, 48, 0.06); }
:root[data-luz="suave"] #opiniones .testi__shot { --surface-2: #f8f9fb; filter: saturate(.85); }
:root[data-luz="tenue"] #opiniones .testi__shot { --surface-2: #eceff3; filter: saturate(.7) brightness(.96); }
:root[data-theme="dark"] #opiniones .testi__shot, :root[data-theme="dark"] #opiniones .testi:nth-child(even) .testi__shot { --surface-2: #1a2540; background: linear-gradient(135deg, #16213a 0%, #1c1b36 100%); }
/* la respuesta correcta en las pantallas de sala: marco azul, no dorado */
.mp__op--ok { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
/* móvil: se pasa con el dedo; las flechas sobran */
@media (max-width: 600px) { #opiniones .carrusel__btns { display: none; } #opiniones .carrusel__head { min-height: 0; margin: 0; } }
#opiniones .testi { background: var(--surface); }
#opiniones .testi__shot { --bg: #ffffff; }
:root[data-theme="dark"] #opiniones .testi__shot { --bg: #1a2540; }
:root[data-luz="tenue"] #opiniones .testi__shot { --bg: #eceff3; }

/* ---------- paleta de la referencia: fondo gris, tarjetas blancas; el pastel, solo en los modos ----------
   El degradado se queda solo en la portada (como en la referencia). Fuera los de adorno. */
#roles .feat, #roles .feat--rev, .comu > .wrap, .cierre > .wrap { background: var(--surface); }
#roles .mock, #opiniones .testi__shot, #opiniones .testi:nth-child(even) .testi__shot {
  background: var(--surface); --surface-2: #f6f7f9; --bg: #f6f7f9;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -14px rgba(27, 34, 48, 0.18);
}
:root[data-theme="dark"] #roles .mock, :root[data-theme="dark"] #opiniones .testi__shot, :root[data-theme="dark"] #opiniones .testi:nth-child(even) .testi__shot {
  background: #16213a; --surface-2: #1c2844; --bg: #1c2844; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}
:root[data-luz="suave"] #opiniones .testi__shot, :root[data-luz="tenue"] #opiniones .testi__shot { filter: none; }

/* ---------- preguntas frecuentes: columna con ayuda + tarjetas con icono, respuesta corta y puntos ---------- */
#faq .faq-grid { align-items: start; }
.faq__lado { display: grid; gap: 12px; align-content: start; }
@media (min-width: 900px) { .faq__lado { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq__lado h2 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); line-height: 1.08; }
.faq__lede { color: var(--ink-2); font-size: 1.0625rem; }
.faq__ayuda { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; margin-top: 12px; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); }
.faq__ayuda div { display: grid; gap: 2px; }
.faq__ayuda b { font-size: .9375rem; }
.faq__ayuda span:not(.faq__ic) { color: var(--muted); font-size: .875rem; }
.faq__ayuda .btn { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.faq__ic { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.faq__ic .icon { width: 20px; height: 20px; }

#faq .faq details { padding: 0; margin-bottom: 12px; border-radius: 18px; overflow: hidden; transition: box-shadow .2s ease; }
#faq .faq details[open] { box-shadow: 0 0 0 1.5px var(--accent), 0 12px 28px -14px rgba(47, 107, 246, 0.35); }
#faq .faq summary { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; }
#faq .faq summary:hover { text-decoration: none; }
#faq .faq summary:hover .faq__q { color: var(--accent); }
.faq__q { flex: 1; }
.faq__mas { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); transition: background-color .2s ease, transform .25s ease; }
.faq__mas::before, .faq__mas::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .25s ease; }
.faq__mas::after { transform: rotate(90deg); }
#faq details[open] .faq__mas { background: var(--accent); transform: rotate(180deg); }
#faq details[open] .faq__mas::before, #faq details[open] .faq__mas::after { background: #fff; }
#faq details[open] .faq__mas::after { transform: rotate(0deg); }
#faq .faq details > div { max-width: none; padding: 0 18px 20px 72px; }
.faq__corta { font-size: 1.125rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.faq__puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.faq__puntos li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.45; }
.faq__puntos .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
@media (max-width: 600px) { #faq .faq details > div { padding-left: 18px; } #faq .faq summary { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .faq__mas, .faq__mas::before, .faq__mas::after { transition: none; } }
:root[data-theme="dark"] .faq__ic { background: #1b2a4a; }
#faq .faq summary .faq__ic .icon { color: var(--accent); transform: none; }
.faq__lede { margin-bottom: 4px; }

/* ---------- títulos de sección: todos iguales (el tamaño de «SubeNota para tu centro»), con etiqueta ---------- */
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
#roles > .wrap > .eyebrow { display: block; }
#prueba .demo-manual h2, #roles .roles__title, #certificaciones h2, #opiniones h2, #precios h2, #faq h2, #comunidad h2, #contacto h2, .cierre h2 { font-weight: 800; text-wrap: balance; }
.section__head p, .faq__lede, .comu__copy p, .contacto__copy p { font-size: 1.125rem; line-height: 1.55; }

#prueba .demo-manual h2, #roles .roles__title, #certificaciones h2, #opiniones h2,
#precios h2, #faq h2, #comunidad h2, #contacto h2, .cierre h2 {
  font-size: clamp(2.25rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em;
}
#roles > .wrap > .eyebrow { text-align: center; }
.section__head--centro .eyebrow { display: block; }
.section__head h2 + p { margin-top: 14px; }


/* ---------- «SubeNota para tu centro»: el título acompaña al bajar mientras el formulario se despliega (js/movimiento-b.js) ---------- */
@media (min-width: 900px) {
  #contacto .contacto { align-items: start; }
  #contacto .contacto__copy { position: sticky; top: calc(var(--header-h) + 48px); }
}
#contacto .contacto__form.mov { will-change: clip-path, opacity; }
#contacto .contacto__form.mov > * { will-change: transform, opacity; }

/* FAQ: la respuesta corta, en gris, a la derecha de la pregunta; el «+» abre el detalle */
.faq__r { flex: none; color: var(--muted); font-weight: 500; font-size: 1rem; text-align: right; }
#faq .faq details > div { padding-top: 2px; }
#faq details[open] .faq__r { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) {
  #faq .faq summary { flex-wrap: wrap; row-gap: 2px; }
  .faq__q { flex: 1 1 calc(100% - 110px); }
  .faq__r { order: 3; flex-basis: 100%; padding-left: 54px; text-align: left; font-size: .9375rem; }
}
.faq__demo { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; vertical-align: 1px; }
.faq__demo:hover { background: var(--accent); color: #fff; }
.faq__demo span { font-size: .625rem; }

/* ---------- tarjetas de modos: 3 ideas para comparar (1-9) ---------- */
.mh-idea { width: 100%; max-width: var(--maxw); }
.mh-idea + .mh-idea { margin-top: 28px; }
.mh-idea__t { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; color: var(--muted); text-align: left; }
.mh a, .ms { position: relative; }
.mh-num { position: absolute; top: -10px; left: -10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 800; box-shadow: 0 0 0 3px var(--bg); }
.mh__cab { display: grid; gap: 2px; justify-items: center; text-align: center; }
.mh__p { font-size: .875rem; font-weight: 600; color: var(--ink-2); }

/* Idea 2: cada pantallita hace su gesto al verla o al pasar por encima */
.mh--anim .mh__bar i { transition: background-size .9s cubic-bezier(.2,.8,.2,1); background-size: 0 100%, auto; }
.mh--anim.is-on .mh__bar i { background-size: var(--w) 100%, auto; }
.mh--anim .mh__bar:nth-child(2) i { transition-delay: .12s; } .mh--anim .mh__bar:nth-child(3) i { transition-delay: .24s; }
.mh--anim .mh__ok, .mh--anim .mh__tip { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.mh--anim.is-on .mh__ok { opacity: 1; transform: none; }
.mh--anim.is-on .mh__tip { opacity: 1; transform: none; transition-delay: .35s; }
.mh--anim .mh__rank { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.mh--anim.is-sube .mh__tu { transform: translateY(calc(-100% - 8px)); }
.mh--anim.is-sube .mh__rank:first-child { transform: translateY(calc(100% + 8px)); }
.mh--anim.is-sube .mh__tu { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .mh--anim *, .mh--anim { transition: none !important; } }

/* Idea 3: pestañas y una pantalla grande */
.ms { display: grid; gap: 16px; padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(27, 34, 48, 0.04), 0 8px 24px -8px rgba(27, 34, 48, 0.10); text-align: left; }
.ms__tabs { justify-self: center; flex-wrap: wrap; }
.ms__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: center; padding: clamp(16px, 2.4vw, 24px); border-radius: 18px; }
.ms__panel[hidden] { display: none; }
.ms__panel.ms--1 { background: var(--b-azul); } .ms__panel.ms--2 { background: var(--b-verde); } .ms__panel.ms--3 { background: var(--b-lila); } .ms__panel.ms--4 { background: var(--b-naranja); }
.ms__txt { display: grid; gap: 6px; justify-items: start; }
.ms__t { font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; }
.ms__panel.ms--1 .ms__t { color: var(--b-azul-i); } .ms__panel.ms--2 .ms__t { color: var(--b-verde-i); } .ms__panel.ms--3 .ms__t { color: var(--b-lila-i); } .ms__panel.ms--4 .ms__t { color: var(--b-naranja-i); }
.ms__txt p { color: var(--ink-2); font-size: 1.0625rem; margin-bottom: 8px; }
.ms__vista .mh__card { min-height: 150px; font-size: 1rem; padding: 18px; }
@media (max-width: 700px) { .ms__panel { grid-template-columns: 1fr; } }
.hero__pie, .mh-idea, .ms { min-width: 0; max-width: 100%; }
.ms__tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ms__tabs::-webkit-scrollbar { display: none; }
.ms__tab { white-space: nowrap; }
@media (max-width: 600px) { .ms__tab { padding-inline: 12px; font-size: .875rem; } .ms__vista .mh__card { font-size: .9375rem; } }
.ms { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .ms__tabs { justify-self: stretch; } }

/* ---------- pantallitas fieles a la app (tarjetas de modos) ---------- */
.mh__card.rv, .mh__card.rp, .mh__card.rt, .mh__card.rk { gap: 6px; font-size: .75rem; line-height: 1.3; text-align: left; min-height: 150px; }
/* simulacro: piel de examen oficial (barra azul marino, radios, Next) */
.mh__card.rv { padding: 0; overflow: hidden; gap: 0; font-family: Arial, Helvetica, sans-serif; color: #111; }
.rv__top { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px; background: #1f3a5f; color: #fff; font-size: .6875rem; }
.rv__top b { font-weight: 700; } .rv__top .num { font-family: ui-monospace, Menlo, monospace; }
.rv__sub { padding: 5px 9px; border-bottom: 1px solid #d0d0d0; font-weight: 700; font-size: .6875rem; }
.rv__q { padding: 8px 9px 4px; }
.rv__o { display: flex; align-items: center; gap: 6px; padding: 3px 12px; }
.rv__o i { width: 10px; height: 10px; border: 1px solid #777; border-radius: 50%; flex: none; }
.rv__o i.is-on { border: 3px solid #1f3a5f; }
.rv__foot { display: flex; justify-content: flex-end; margin-top: 6px; padding: 5px 9px; background: #f5f5f5; border-top: 1px solid #d0d0d0; }
.rv__foot span { padding: 3px 12px; background: #1f3a5f; color: #fff; border-radius: 2px; font-size: .6875rem; }
/* práctica: opciones A/B con caja de letra, la correcta en verde y el bloque «Correcta» */
.rp__q { font-weight: 700; color: var(--ink); }
.rp__o { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); }
.rp__o b { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: .625rem; }
.rp__o .icon { width: 13px; height: 13px; margin-left: auto; color: var(--ok); }
.rp__o.is-ok { background: var(--ok-bg); border-color: var(--ok); }
.rp__o.is-ok b { background: var(--ok); border-color: var(--ok); color: #fff; }
.rp__fb { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid var(--ok); border-radius: 6px; background: var(--ok-bg); }
.rp__fb .mh__ok { font-size: .75rem; } .rp__fb .mh__ok .icon { width: 13px; height: 13px; }
.rp__fb .mh__tip { font-size: .6875rem; }
/* por temas: la lista real (M1 · nombre · n preguntas · flecha) */
.rt__r { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rt__r:last-child { border-bottom: 0; }
.rt__ic { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 5px; font-family: var(--font-mono); font-size: .625rem; font-weight: 600; }
.rt__r b { display: block; font-size: .75rem; } .rt__r small { color: var(--muted); font-size: .6875rem; }
.rt__r .icon { width: 13px; height: 13px; color: var(--muted); }
/* en clase: el móvil del alumno (cuenta atrás, pregunta oscura, 4 colores) */
.rk__meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .6875rem; }
.rk__meta b { font-size: 1rem; color: var(--ink); }
.rk__q { padding: 7px 8px; border-radius: 6px; background: #0f1b2d; color: #fff; font-weight: 600; text-align: center; }
.rk__ops { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rk__o { padding: 6px 7px; border-radius: 5px; color: #fff; font-weight: 700; font-size: .6875rem; transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease; }
.rk__o.k0 { background: #e21b3c; } .rk__o.k1 { background: #1368ce; } .rk__o.k2 { background: #d89e00; } .rk__o.k3 { background: #26890c; }
.mh--anim .rk__ops.is-pick .rk__o:not(.mh__pick) { opacity: .35; }
.mh--anim .rk__ops.is-pick .mh__pick { transform: translateY(2px); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1368ce; }
.mh--anim .rt__r { opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease; }
.mh--anim.is-on .rt__r { opacity: 1; transform: none; }
.mh--anim.is-on .rt__r:nth-child(2) { transition-delay: .15s; } .mh--anim.is-on .rt__r:nth-child(3) { transition-delay: .3s; }
.ms__vista .mh__card.rv, .ms__vista .mh__card.rp, .ms__vista .mh__card.rt, .ms__vista .mh__card.rk { font-size: .875rem; }
.ms__vista .rv__top, .ms__vista .rv__sub, .ms__vista .rv__foot span, .ms__vista .rk__o { font-size: .8125rem; }
:root[data-theme="dark"] .mh__card.rv { background: #fff; }

/* ---------- preguntas frecuentes: título centrado arriba, preguntas debajo y «¿No está tu pregunta?» al final ---------- */
#faq .faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 860px; margin-inline: auto; }
#faq .faq__lado { display: contents; }
#faq .faq__lado .eyebrow { order: 1; justify-self: center; }
#faq .faq__lado h2 { order: 2; text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
#faq #faq-list { order: 3; }
#faq .faq__ayuda { order: 4; grid-template-columns: auto 1fr auto; margin-top: 8px; padding: 14px 18px; }
#faq .faq__ayuda .btn { grid-column: auto; margin-top: 0; justify-self: end; }
@media (max-width: 560px) { #faq .faq__ayuda { grid-template-columns: auto 1fr; } #faq .faq__ayuda .btn { grid-column: 1 / -1; justify-self: start; } }


/* ---------- luz fluida (js/luz.js + noUiSlider): la página se atenúa de forma continua con --dim (0 claro → 1 tenue) ---------- */
:root[data-luz="fluida"] {
  --pc: calc(var(--dim, 0) * 100%);
  --bg: color-mix(in oklab, #eef0f3, #aeb6c2 var(--pc));
  --surface: color-mix(in oklab, #ffffff, #c9cfd8 var(--pc));
  --surface-2: color-mix(in oklab, #f2f4f8, #bcc3cd var(--pc));
  --line: color-mix(in oklab, #e7eaef, #a5aebb var(--pc));
  --line-strong: color-mix(in oklab, #d3d8e0, #8f99a8 var(--pc));
  --ink-2: color-mix(in oklab, #4a5466, #2c3340 var(--pc));
  --muted: color-mix(in oklab, #5f6878, #394150 var(--pc));
  --header-bg: color-mix(in oklab, rgba(238, 240, 243, .86), rgba(174, 182, 194, .92) var(--pc));
  --b-hero: linear-gradient(120deg, color-mix(in oklab, #f4f7ff, #bcc4d3 var(--pc)) 0%, color-mix(in oklab, #fff7ee, #c8c0b6 var(--pc)) 45%, color-mix(in oklab, #fdf0f7, #c7bcc4 var(--pc)) 100%);
  --b-azul: color-mix(in oklab, #e3ecfe, #aebcdc var(--pc)); --b-verde: color-mix(in oklab, #d6f2de, #a6c7b0 var(--pc));
  --b-lila: color-mix(in oklab, #e4ddf9, #b4abd4 var(--pc)); --b-naranja: color-mix(in oklab, #fce4d2, #d3baa6 var(--pc));
}
body, .site-header { transition: background-color .12s linear; }
.luz { width: 290px; padding: 14px 16px 18px; border-radius: 18px; }
.luz__fila { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding-bottom: 26px; }
.luz__ic { font-size: 1.125rem; color: var(--ink-2); line-height: 1; } .luz__ic--luna { font-size: .9375rem; }
/* noUiSlider, con la cara de SubeNota: pista gruesa y redonda, tirador blanco grande */
.luz .noUi-target { height: 10px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.luz .noUi-connect { background: var(--accent); border-radius: 999px; }
.luz .noUi-horizontal .noUi-handle, .luz .noUi-handle { width: 26px; height: 26px; right: -13px; top: -8px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15, 27, 45, .3), 0 0 0 1px rgba(15, 27, 45, .08); cursor: grab; transition: transform .12s ease; }
.luz .noUi-handle:active { cursor: grabbing; transform: scale(1.08); }
.luz .noUi-handle::before, .luz .noUi-handle::after { display: none; }
.luz .noUi-handle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.luz .noUi-pips-horizontal { padding-top: 6px; height: 28px; }
.luz .noUi-marker { display: none; }
.luz .noUi-value { font-size: .75rem; color: var(--muted); font-weight: 600; }
.luz .noUi-value:hover { color: var(--accent); }
.luz .noUi-value[data-value="0"] { transform: translateX(-10%); } .luz .noUi-value[data-value="100"] { transform: translateX(-90%); }
.planes__comu { font-weight: 700; color: var(--accent); }
.luz .noUi-value, .luz .noUi-value-large, .luz .noUi-value-sub { top: 10px !important; margin-top: 0 !important; line-height: 1; }
.luz__fila { align-items: start; } .luz__ic { margin-top: -5px; }
.luz__fila { padding-bottom: 6px; align-items: center; } .luz__ic { margin-top: 0; }
.luz__marcas { display: flex; justify-content: space-between; padding: 0 22px; margin-top: 4px; }
.luz__marcas button { padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.luz__marcas button:hover { color: var(--accent); }

/* ---------- tarjetas de examen (portadas nuevas): lo justo para decidir ---------- */
.exb { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: var(--surface); transition: transform .15s ease, box-shadow .15s ease; }
.exb:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(27, 34, 48, 0.05), 0 18px 34px -16px rgba(27, 34, 48, 0.25); }
.exb__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.exb__val { margin-left: auto; font-size: .875rem; color: #c98a00; } .exb__val b { color: var(--ink); }
.exb__t { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.exb__t a { color: var(--ink); text-decoration: none; } .exb__t a:hover { color: var(--accent); }
.exb__datos { color: var(--muted); font-size: .875rem; }
.exb__cifras { display: flex; gap: 14px; font-size: .875rem; color: var(--ink-2); }
.exb__cifras span { display: inline-flex; align-items: center; gap: 5px; } .exb__cifras .icon { width: 15px; height: 15px; }
.exb__autor { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.exb__autor > span:nth-child(2) { display: grid; min-width: 0; margin-right: auto; }
.exb__autor small { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.exb__autor b { font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exb__centro { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exb__av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 800; }
.exb__seguir { flex: none; padding: 5px 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.exb__seguir[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.exb__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* vista rápida: como la ficha de la App Store (meta arriba, título grande, autor, franja de datos, botones abajo fijos) */
dialog.dlg.ql { width: min(94vw, 620px); padding: 0; overflow: auto; border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(15, 27, 45, .3); }
.ql > * { margin: 0; padding-inline: clamp(20px, 4vw, 32px); }
.ql__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 20px; }
.ql__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.ql .comu-dlg__x { position: static; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); font-size: 1.375rem; }
.ql__t { margin-top: 14px; font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.15; letter-spacing: -0.035em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ql__autor { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ql__autor > span:last-child { display: grid; } .ql__autor b { font-size: .9375rem; } .ql__autor small { color: var(--muted); font-size: .8125rem; }
.ql__cifras { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 20px; padding-block: 14px; border-block: 1px solid var(--line); }
.ql__cifras li { display: grid; justify-items: center; gap: 2px; text-align: center; }
.ql__cifras li + li { border-left: 1px solid var(--line); }
.ql__cifras b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ql__cifras small { color: var(--muted); font-size: .75rem; }
.ql__lider { margin-top: 14px; color: var(--ink-2); font-size: .9375rem; }
.ql__desc { margin-top: 14px; color: var(--ink-2); line-height: 1.55; }
.ql__ver { margin-top: 16px; margin-inline: clamp(20px, 4vw, 32px); padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; }
.ql__ver summary { padding: 12px 0; font-weight: 700; cursor: pointer; color: var(--accent); list-style: none; }
.ql__ver summary::-webkit-details-marker { display: none; }
.ql__ver summary::after { content: " ↓"; } .ql__ver[open] summary::after { content: " ↑"; }
.ql__ver[open] { padding-bottom: 12px; }
.ql__q { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.ql__q + .ql__q { margin-top: 8px; }
.ql__q p { font-weight: 600; margin-bottom: 8px; }
.ql__q ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9375rem; color: var(--ink-2); }
.ql__q li span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: .6875rem; font-weight: 700; }
.ql__acts { position: sticky; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 20px; padding-block: 16px 20px; background: var(--surface); border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .ql__t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ql__cifras { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } .ql__cifras li:nth-child(4) { border-left: 0; }
  .ql__acts { grid-template-columns: 1fr; }
}
dialog.dlg.ql h2.ql__t { margin-top: 16px; font-size: clamp(1.625rem, 3.8vw, 2.125rem); line-height: 1.12; letter-spacing: -0.04em; font-weight: 800; padding-right: 0; }
dialog.dlg.ql .ql__autor { margin-top: 14px; }
dialog.dlg.ql .ql__cifras { margin-top: 22px; }
dialog.dlg.ql .ql__lider { margin-top: 18px; }
dialog.dlg.ql .ql__desc { margin-top: 8px; }
dialog.dlg.ql .ql__ver { margin-top: 18px; }
dialog.dlg.ql .ql__acts { margin-top: 22px; }
dialog.dlg.ql h2.ql__t { padding-right: clamp(20px, 4vw, 32px); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }

/* ---------- vista rápida: dos modelos (A por defecto · B con ?ql=b) ---------- */
dialog.dlg.ql h2.ql__t { margin-top: 14px; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; }
dialog.dlg.ql .ql__desc { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ql__meta > span:not(.badge) { color: var(--muted); }
/* ficha (A): una línea con iconos, como «8 clases · 2 h» de Udemy */
.ql__ficha { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.ql__ficha li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: .9375rem; color: var(--ink-2); }
.ql__ficha .icon { width: 18px; height: 18px; color: var(--accent); } .ql__ficha b { color: var(--ink); font-weight: 800; }
.ql__estrellas { color: #c98a00 !important; }
/* fila: autor a la izquierda; personas + trofeo, juntos, a la derecha */
.ql__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px !important; padding-block: 14px; border-block: 1px solid var(--line); }
.ql__fila .ql__autor { margin: 0; }
.ql__social { position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.ql__gente { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: .9375rem; } .ql__gente .icon { width: 16px; height: 16px; }
.ql__trofeo { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface); font-size: 1.0625rem; cursor: pointer; box-shadow: 0 1px 2px rgba(27, 34, 48, .1); }
.ql__trofeo[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--accent); }
.ql__rank { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; min-width: 200px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 14px 34px -10px rgba(15, 27, 45, .35), 0 0 0 1px var(--line); font-size: .9375rem; }
.ql__rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .ql__rank li { display: flex; justify-content: space-between; gap: 12px; }
.ql__rank p { color: var(--muted); }
/* B: cabecera de color y tres datos grandes */
dialog.dlg.ql .ql__banda { padding: 20px clamp(20px, 4vw, 32px) 22px; background: var(--b-azul); }
.ql__banda--carne { background: var(--b-naranja) !important; } .ql__banda--oposiciones { background: var(--b-lila) !important; } .ql__banda--selectividad, .ql__banda--eso { background: var(--b-verde) !important; }
dialog.dlg.ql .ql__banda .ql__cab { padding: 0; }
dialog.dlg.ql .ql__banda .badge { background: rgba(255, 255, 255, .7); }
dialog.dlg.ql .ql__banda .comu-dlg__x { background: rgba(255, 255, 255, .7); }
.ql__grandes { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 18px !important; }
.ql__grandes li { display: grid; justify-items: start; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.ql__grandes .icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 4px; }
.ql__grandes b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; } .ql__grandes small { color: var(--muted); font-size: .8125rem; }
.ql__grandes .ql__estrellas { font-size: 1.25rem; }
@media (max-width: 560px) { .ql__grandes { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); } .ql__fila { flex-wrap: wrap; } }
@media (max-width: 560px) {
  .ql__fila { flex-wrap: nowrap; } .ql__fila .ql__autor { min-width: 0; } .ql__fila .ql__autor small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ql__ficha { gap: 6px; } .ql__ficha li { padding: 7px 10px; gap: 6px; font-size: .875rem; } .ql__ficha .icon { width: 16px; height: 16px; }
}

/* ---------- tarjeta de examen: el examen manda (título grande), quién lo subió en una línea, el resto en pequeño ---------- */
.exb { position: relative; gap: 8px; padding: 20px; overflow: hidden; }
.exb::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--b-azul); }
.exb--carne::before { background: #f3b98a; } .exb--oposiciones::before { background: #b9a6f0; } .exb--selectividad::before, .exb--eso::before { background: #8fd3a5; } .exb--certificaciones::before { background: #9db8f5; }
.exb__top { display: flex; align-items: center; gap: 8px; }
.exb__cat { font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.exb__mini { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; font-size: .8125rem; color: var(--muted); }
.exb__mini span { display: inline-flex; align-items: center; gap: 3px; } .exb__mini .icon { width: 14px; height: 14px; }
.exb .exb__t { margin-top: 6px; font-size: 1.375rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; -webkit-line-clamp: 3; min-height: 0; }
.exb .exb__t a { color: var(--ink); }
.exb .exb__datos { margin-top: 2px; font-size: .9375rem; color: var(--ink-2); }
.exb__por { margin-top: auto; padding-top: 10px; font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exb .exb__acts { margin-top: 4px; }
.ql__autor .exb__seguir { margin-left: 8px; }
/* autor en la vista rápida: nombre y rol en dos líneas (el botón «Seguir» va detrás) */
.ql__autor > span:nth-child(2) { display: grid; gap: 1px; margin-right: auto; }
/* la tarjeta de la demo se ajusta a «Valora SubeNota» */
.fl:has(> .demo-done) { min-height: 0; max-width: 520px; padding-block: 24px; }
/* «Seguir» discreto, debajo de la foto del autor */
.ql__autor { align-items: flex-start; }
.ql__avcol { display: grid; justify-items: center; gap: 3px; flex: none; }
.ql__seguir { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: .6875rem; font-weight: 700; cursor: pointer; line-height: 1; }
.ql__seguir:hover { text-decoration: underline; }
.ql__seguir[aria-pressed="true"] { color: var(--muted); }
.ql__autor > span:nth-child(2) { padding-top: 2px; }
/* que el título no corte las letras de abajo (g, p, y) */
dialog.dlg.ql h2.ql__t { line-height: 1.16; padding-bottom: .08em; }
.exb .exb__t { line-height: 1.25; padding-bottom: .06em; }

/* ---------- tarjetas de examen al estilo Clini (claras): etiqueta gris, título, de qué va, datos con iconos, dos botones redondeados ---------- */
.exc { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -18px rgba(15, 23, 42, .2); transition: transform .15s ease, box-shadow .15s ease; }
.exc:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 34px -16px rgba(15, 23, 42, .25); }
.exc__top { display: flex; align-items: center; gap: 8px; }
.exc__cat { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.exc__mini { margin-left: auto; display: inline-flex; gap: 10px; color: var(--muted); font-size: .8125rem; }
.exc__mini span { display: inline-flex; align-items: center; gap: 4px; } .exc__mini .icon { width: 14px; height: 14px; }
.exc__t { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; padding-bottom: .05em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exc__t a { color: var(--ink); text-decoration: none; } .exc__t a:hover { color: var(--accent); }
.exc__desc { color: var(--muted); font-size: .9375rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exc__datos { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .875rem; }
.exc__datos span { display: inline-flex; align-items: center; gap: 6px; } .exc__datos .icon { width: 16px; height: 16px; }
.exc__por { margin-top: auto; padding-top: 4px; color: var(--muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exc__acts { display: flex; gap: 8px; }
.exc__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.exc__btn:hover { border-color: var(--ink); }
.exc__btn--azul { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(47, 107, 246, .7); }
.exc__btn--azul:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------- los 8 tipos de examen, compactos: dos filas de pastillas (nombre + detalle) ---------- */
.tipos { gap: 8px !important; }
.tipo { min-height: 0 !important; padding: 10px 14px !important; border-radius: 14px !important; display: flex !important; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tipo b { font-size: .9375rem !important; }
.tipo .tipo__tag { font-size: .75rem !important; color: var(--muted); }
.tipo[aria-pressed="true"] { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
@media (min-width: 900px) {
  .tipos { display: flex !important; flex-wrap: wrap; justify-content: center; }
  .tipos > li { flex: none; }
  .tipo { flex-wrap: nowrap; white-space: nowrap; padding: 9px 16px !important; border-radius: 999px !important; }
}

/* ---------- los 8 tipos: tres formas (?tipos=a iconos · b pestañas · c tarjetas con número) ---------- */
.tipo__ic, .tipo__n { display: none; }
@media (min-width: 900px) {
  /* A · iconos: una fila de 8 casillas, icono grande y nombre */
  .tipos--a { display: grid !important; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px !important; }
  .tipos--a .tipo { flex-direction: column; align-items: center; justify-content: center; gap: 6px; white-space: normal; text-align: center; padding: 14px 6px !important; border-radius: 18px !important; height: 100%; }
  .tipos--a .tipo__ic { display: block; font-size: 1.75rem; line-height: 1; }
  .tipos--a .tipo b { font-size: .8125rem !important; line-height: 1.2; }
  .tipos--a .tipo__tag { display: none; }
  /* B · pestañas: barra fina con línea azul bajo la elegida */
  .tipos--b { display: flex !important; flex-wrap: nowrap; justify-content: center; gap: 0 !important; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .tipos--b .tipo { padding: 10px 16px !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; border-bottom: 2px solid transparent !important; margin-bottom: -1px; }
  .tipos--b .tipo:hover { color: var(--accent); }
  .tipos--b .tipo[aria-pressed="true"] { border-bottom-color: var(--accent) !important; color: var(--accent); }
  .tipos--b .tipo b { font-weight: 600; }
  .tipos--b .tipo__tag { display: none; }
  /* C · tarjetas de color suave con icono, nombre y número de exámenes */
  .tipos--c { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; }
  .tipos--c .tipo { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; white-space: normal; padding: 12px 14px !important; border-radius: 16px !important; background: var(--surface-2) !important; box-shadow: none !important; border: 1px solid transparent !important; text-align: left; }
  .tipos--c .tipo:hover { background: var(--accent-soft) !important; }
  .tipos--c .tipo__ic { display: grid; place-items: center; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); font-size: 1.25rem; }
  .tipos--c .tipo b { font-size: .9375rem !important; }
  .tipos--c .tipo__n { display: block; color: var(--muted); font-size: .75rem; }
  .tipos--c .tipo__tag { display: none; }
}

/* «¿Para qué examen estudias?» más junto: título y buscador en la misma fila, tipos y exámenes enseguida */
.cert-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px 32px; align-items: end; margin-bottom: 20px; }
.cert-cab__t { display: grid; gap: 6px; justify-items: start; text-align: left; }
.cert-cab__t .eyebrow { margin: 0; }
#certificaciones .cert-cab h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.05; text-align: left; margin: 0; }
.cert-cab__t p { color: var(--ink-2); font-size: 1rem; }
.cert-cab .search { margin: 0 !important; max-width: none; width: 100%; }
#certificaciones .tipos { margin-top: 0 !important; margin-bottom: 0 !important; }
#certificaciones .ex-barra { margin: 14px 0 10px !important; min-height: 0; }
#certificaciones .ex-barra .results-count:empty { display: none; }
@media (max-width: 860px) { .cert-cab { grid-template-columns: minmax(0, 1fr); } .cert-cab__t { justify-items: center; text-align: center; } #certificaciones .cert-cab h2 { text-align: center; } }

/* sin emojis: el ranking con texto y los puestos con número */
.ql__trofeo { width: auto; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.ql__pos { color: var(--accent); margin-right: 4px; }
.mt__file i .icon { width: 14px; height: 14px; }
