/* ════════════════════════════════════════════════════════════════════
   Academia La Venus · Marbella
   Blanco, tinta y un acento rojo «de corregir». Libros en vez de fórmulas.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --blanco: #fff;
  --gris: #f5f5f7;
  --gris-2: #ececf0;
  --tinta: #111318;
  --texto: #43474f;
  --tenue: #8a8e97;
  --linea: #e5e5ea;
  --acento: #d4462a;
  --acento-osc: #b5381f;
  --oro: #e9a23b;
  --verde-wa: #1faa59;
  --radio: 24px;
  --f-tit: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-txt: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mano: 'Caveat', 'Segoe Print', cursive;
  --curva: cubic-bezier(.2, .7, .2, 1);
  --ancho: 1240px;
  --cab: 72px;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cab) + 16px); }
body {
  margin: 0; background: var(--blanco); color: var(--texto);
  font: 400 17px/1.6 var(--f-txt); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-tit); color: var(--tinta); font-weight: 600; margin: 0; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(212, 70, 42, .16); }

.ico { width: 20px; height: 20px; flex: none; }
.envoltura { width: min(100% - 48px, var(--ancho)); margin-inline: auto; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; }
.saltar:focus { top: 12px; }
.tenue { color: var(--tenue); }

/* Subrayado a mano (boli rojo) y fluorescente */
.subrayado { position: relative; white-space: nowrap; }
.subrayado::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -.12em; height: .32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11C40 5 92 3 197 7M20 13c50-4 110-5 160-3' fill='none' stroke='%23d4462a' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s .35s var(--curva);
}
.subrayado.visto::after, .visto .subrayado::after { clip-path: inset(0 0 0 0); }
.resaltado { background: linear-gradient(transparent 58%, rgba(212, 70, 42, .2) 58%) no-repeat left / 0 100%; transition: background-size 1.1s .5s var(--curva); }
.visto .resaltado { background-size: 100% 100%; }

/* ── Botones ───────────────────────────────────────────────────────── */
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.botones.centrados { justify-content: center; margin-top: 48px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--tinta); color: #fff; font: 500 15.5px/1 var(--f-txt); letter-spacing: -.005em;
  transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--curva);
}
.boton .ico { width: 18px; height: 18px; transition: transform .3s var(--curva); }
.boton:hover { background: #000; }
.boton:hover .ico:last-child:not(:first-child) { transform: translateX(3px); }
.boton:active { transform: scale(.98); }
.boton-claro { background: var(--blanco); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); }
.boton-claro:hover { background: var(--gris); }
.boton-acento { background: var(--acento); }
.boton-acento:hover { background: var(--acento-osc); }
.boton-wa { background: var(--verde-wa); }
.boton-wa:hover { background: #17924b; }
.boton-wa[aria-disabled="true"] { opacity: .4; }
.boton-peq { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.boton-icono {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--linea); color: var(--tinta); background: var(--blanco); transition: background .25s, color .25s;
}
.boton-icono:hover { background: var(--gris); }
.enlace { display: inline-flex; align-items: center; gap: 4px; color: var(--acento); font-weight: 500; font-size: 15.5px; }
.enlace .ico { width: 16px; height: 16px; transition: transform .3s var(--curva); }
.enlace:hover .ico, a:hover > .enlace .ico { transform: translateX(3px); }

.estrellas { display: inline-flex; gap: 2px; color: var(--oro); }
.estrellas .ico { width: 15px; height: 15px; }

/* ── Barra superior y cabecera ─────────────────────────────────────── */
.barra-sup { background: var(--gris); font-size: 13.5px; color: var(--texto); }
.barra-sup .envoltura { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 40px; }
.barra-sup a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.barra-sup a:hover { color: var(--tinta); }
.barra-sup .ico { width: 14px; height: 14px; }
.barra-nota .ico { color: var(--oro); }
.barra-nota b { color: var(--tinta); font-weight: 600; }
.estado { display: inline-flex; align-items: center; gap: 8px; }
.estado-punto { width: 7px; height: 7px; border-radius: 50%; background: var(--tenue); }
.estado.abierto .estado-punto { background: #22a25a; box-shadow: 0 0 0 3px rgba(34, 162, 90, .16); }
.estado.abierto b { color: #1a8a4b; font-weight: 600; }

.cabecera { position: sticky; top: 0; z-index: 50; height: var(--cab); background: var(--blanco); border-bottom: 1px solid transparent; transition: border-color .3s; }
.cabecera.con-scroll { border-color: var(--linea); }
.cabecera > .envoltura { height: 100%; display: flex; align-items: center; gap: 32px; }
.marca { display: inline-flex; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); }
.logo-marca { width: 38px; height: 38px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt small { font: 500 11.5px/1 var(--f-txt); color: var(--tenue); letter-spacing: .01em; margin-bottom: 3px; }
.logo-txt b { font: 700 21px/1 var(--f-tit); letter-spacing: -.035em; }
.nav { display: flex; gap: 30px; margin-inline: auto; font-size: 15px; }
.nav a { position: relative; color: var(--texto); padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--tinta); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acento); }
.cab-dcha { display: flex; align-items: center; gap: 10px; }
.boton-cab { min-height: 46px; padding: 0 22px; font-size: 14.5px; }
.boton-menu { display: none; }
.progreso { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progreso span { display: block; height: 100%; background: var(--acento); transform: scaleX(0); transform-origin: left; will-change: transform; }

/* Menú móvil */
.menu-movil {
  position: fixed; inset: 0; z-index: 80; background: var(--blanco); padding: 14px 24px 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--curva);
}
.menu-movil.abierto { opacity: 1; transform: none; }
.menu-fila { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 20px; }
.menu-movil nav { display: flex; flex-direction: column; }
.menu-movil nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linea); font: 600 26px/1.1 var(--f-tit); letter-spacing: -.03em; color: var(--tinta); }
.menu-movil nav a .ico { color: var(--tenue); }
.menu-movil nav a[aria-current] { color: var(--acento); }
.menu-botones { display: grid; gap: 10px; margin-top: 28px; }
.menu-datos { margin-top: 22px; font-size: 14px; color: var(--tenue); }
body.menu-abierto { overflow: hidden; }

/* ── Aparecer al hacer scroll ──────────────────────────────────────── */
.js .aparece { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--curva), transform .7s var(--curva); transition-delay: var(--d, 0s); }
.js .aparece.visto { opacity: 1; transform: none; }

/* ── Secciones ─────────────────────────────────────────────────────── */
.seccion { padding: 120px 0; }
.seccion-gris { background: var(--gris); }
.titular { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.titular h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.titular p { margin-top: 18px; font-size: 18.5px; color: var(--texto); }
.titular-izq { text-align: left; margin: 0; }
.titular-fila { display: flex; justify-content: space-between; align-items: end; max-width: none; text-align: left; gap: 24px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 96px; overflow: clip; }
.hero-rejilla { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pastilla-google { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--gris); font-size: 14px; color: var(--texto); transition: background .25s; }
.pastilla-google:hover { background: var(--gris-2); }
.pastilla-google .ico { width: 18px; height: 18px; }
.pastilla-google .estrellas .ico { width: 13px; height: 13px; }
.pastilla-google b { color: var(--tinta); }
.hero-antes { margin-top: 32px; font-weight: 500; color: var(--acento); font-size: 15.5px; }
.hero h1 { margin-top: 12px; font-size: clamp(2.6rem, 5.6vw, 4.9rem); letter-spacing: -.045em; line-height: 1; }
.hero-sub { margin-top: 26px; font-size: clamp(17.5px, 1.6vw, 20px); max-width: 540px; }
.hero .botones { margin-top: 36px; }
.hero-datos { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--linea); font-size: 14.5px; color: var(--texto); }
.hero-datos li { display: inline-flex; align-items: center; gap: 8px; }
.hero-datos .ico { width: 17px; height: 17px; color: var(--tenue); }
.hero-datos a:hover { color: var(--tinta); }
.js .hero .aparece:nth-child(2) { --d: .08s; } .js .hero .aparece:nth-child(3) { --d: .16s; }
.js .hero .aparece:nth-child(4) { --d: .24s; } .js .hero .aparece:nth-child(5) { --d: .32s; } .js .hero .aparece:nth-child(6) { --d: .4s; }

/* Ilustración: pila de libros con uno abierto que pasa páginas.
   Todo en cqw para que escale con el ancho; solo se animan transform y opacity. */
.libros { position: relative; width: 100%; max-width: 560px; margin-inline: auto; container-type: inline-size; }
.libros::before { content: ''; display: block; padding-top: 100%; }
.libros > * { position: absolute; }

.pila { left: 10cqw; right: 10cqw; bottom: 7cqw; display: flex; flex-direction: column; align-items: center; gap: .6cqw; }
.tomo {
  position: relative; height: 10.6cqw; border-radius: 1.4cqw; display: grid; place-items: center;
  font: 600 2.7cqw/1 var(--f-tit); letter-spacing: .01em; color: #fff;
  animation: tomo-entra 1s var(--curva) both;
}
.tomo::before, .tomo::after { content: ''; position: absolute; top: 0; bottom: 0; width: .45cqw; background: rgba(255, 255, 255, .28); }
.tomo::before { left: 5cqw; } .tomo::after { right: 5cqw; }
.tomo span { position: relative; padding: 1cqw 2.6cqw; }
.t1 { width: 70cqw; background: #1f2a44; transform: translateX(-2cqw) rotate(-1.2deg); animation-delay: .65s; }
.t2 { width: 78cqw; background: var(--acento); transform: translateX(2.5cqw) rotate(.8deg); animation-delay: .5s; }
.t3 { width: 73cqw; background: #eadfca; color: var(--tinta); transform: translateX(-1cqw); animation-delay: .35s; }
.t3::before, .t3::after { background: rgba(17, 19, 24, .12); }
.t4 { width: 80cqw; background: #3f6f62; transform: translateX(1cqw) rotate(-.5deg); animation-delay: .2s; }
@keyframes tomo-entra { from { opacity: 0; translate: 0 -6cqw; } }

.libro-abierto { left: 12cqw; right: 12cqw; bottom: 52cqw; height: 40cqw; perspective: 160cqw; animation: abre 1.1s .9s var(--curva) both, flota 7s 2s ease-in-out infinite; }
.libro-abierto::before { content: ''; position: absolute; inset: -1.6cqw -1.6cqw -2cqw; border-radius: 2.2cqw; background: #1f2a44; }
@keyframes abre { from { opacity: 0; transform: translateY(4cqw) scale(.94); } }
@keyframes flota { 50% { transform: translateY(-1.2cqw); } }
.pagina, .hoja { position: absolute; top: 0; bottom: 0; width: 50%; background: #fff; padding: 4.4cqw 4cqw; overflow: hidden; }
.pag-izq { left: 0; border-radius: 1.2cqw 0 0 1.2cqw; background: linear-gradient(270deg, #ebebef, #fff 22%); }
.pag-dch { right: 0; border-radius: 0 1.2cqw 1.2cqw 0; background: linear-gradient(90deg, #ebebef, #fff 22%); }
.renglon { display: block; height: .9cqw; border-radius: 1cqw; background: #e6e7ec; margin-bottom: 2.4cqw; }
.renglon.titulo { width: 58%; height: 1.4cqw; background: #c9ccd5; margin-bottom: 3.2cqw; }
.renglon.corto { width: 62%; }
.formula { display: block; font: 600 4.3cqw/1 var(--f-mano); color: var(--acento); margin: .4cqw 0 2.8cqw; white-space: nowrap; }
.formula.f2 { color: var(--tinta); margin-top: 1.4cqw; }
.grafica { width: 100%; margin-bottom: 2.4cqw; }
.grafica .ejes { stroke: #c4c7cf; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.grafica .curva { stroke: var(--acento); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-dasharray: 130; stroke-dashoffset: 130; animation: traza 1.6s 1.8s var(--curva) forwards; }
.grafica circle { fill: var(--tinta); opacity: 0; animation: punto .4s 3.2s forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }
@keyframes punto { to { opacity: 1; } }
.hoja {
  right: 0; transform-origin: left center; border-radius: 0 1.2cqw 1.2cqw 0;
  background:
    repeating-linear-gradient(to bottom, #e6e7ec 0 .9cqw, transparent .9cqw 3.3cqw) content-box,
    linear-gradient(90deg, #e4e4ea, #fff 26%) border-box;
  padding: 6cqw 4.4cqw 7cqw;
  opacity: 0; animation: hojea 9s 2.4s infinite var(--curva);
}
.h2 { animation-delay: 5.4s; } .h3 { animation-delay: 8.4s; }
@keyframes hojea {
  0% { opacity: 1; transform: rotateY(0); }
  28% { opacity: 1; transform: rotateY(-180deg); }
  30%, 100% { opacity: 0; transform: rotateY(-180deg); }
}
.lomo { left: 50%; top: 0; bottom: 0; width: 1.2cqw; margin-left: -.6cqw; background: linear-gradient(90deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .1), rgba(0, 0, 0, 0)); }

.lucero { width: 7cqw; fill: var(--acento); right: 4cqw; top: -1cqw; animation: brilla 4s ease-in-out infinite; }
.lucero-2 { width: 4cqw; fill: var(--oro); right: 20cqw; top: 1cqw; animation-delay: 1.6s; }
@keyframes brilla { 50% { transform: scale(.72) rotate(18deg); opacity: .7; } }

.lapiz { left: 22cqw; bottom: 2cqw; width: 46cqw; height: 3.2cqw; transform: rotate(-3deg); border-radius: .6cqw; background: linear-gradient(#f2c55c, #e3aa35); animation: lapiz-entra 1s 1.1s var(--curva) both; }
.lapiz::before { content: ''; position: absolute; right: 100%; top: 0; width: 5cqw; height: 100%; background: linear-gradient(90deg, var(--tinta) 0 26%, #f1d9b5 26%); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.lapiz::after { content: ''; position: absolute; left: 100%; top: 0; width: 4cqw; height: 100%; border-radius: 0 .9cqw .9cqw 0; background: #e98a7a; }
.lapiz i { position: absolute; right: 0; top: 0; width: 2.2cqw; height: 100%; background: linear-gradient(#d9dbe0, #aeb2ba); }
@keyframes lapiz-entra { from { opacity: 0; translate: 6cqw 0; } }

.nota-mano { left: 0; top: -4cqw; margin: 0; display: flex; align-items: flex-start; font: 600 6.2cqw/1 var(--f-mano); color: var(--acento); transform: rotate(-5deg); animation: abre 1s 2.2s var(--curva) both; }
.nota-mano svg { width: 9cqw; margin: 3.4cqw 0 0 1cqw; fill: none; stroke: var(--acento); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.libros.pausado *, .libros.pausado { animation-play-state: paused !important; }

/* ── Opiniones en portada ─────────────────────────────────────────── */
.op-cabecera { display: grid; grid-template-columns: minmax(260px, .7fr) 1.5fr; gap: 72px; align-items: center; margin-bottom: 72px; }
.nota-num { font: 600 clamp(6rem, 11vw, 9.5rem)/.85 var(--f-tit); letter-spacing: -.06em; color: var(--tinta); }
.nota-grande .estrellas { margin-top: 18px; }
.nota-grande .estrellas .ico { width: 20px; height: 20px; }
.nota-pie { margin-top: 8px; color: var(--tenue); font-size: 15px; }
.barras, .temas { display: grid; gap: 8px; margin-top: 26px; max-width: 320px; font-size: 13.5px; color: var(--tenue); }
.barras li, .temas li { display: grid; grid-template-columns: 28px 1fr 24px; align-items: center; gap: 12px; }
.barras i, .temas i { position: relative; height: 6px; border-radius: 6px; background: var(--gris-2); overflow: hidden; }
.barras i::after, .temas i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--tinta); transform: scaleX(0); transform-origin: left; transition: transform 1.2s .3s var(--curva); }
.visto .barras i::after, .temas.visto i::after, .visto .temas i::after { transform: scaleX(var(--v)); }
.barras li span:last-child, .temas b { text-align: right; color: var(--tinta); font-weight: 500; }
.cita-grande blockquote { margin: 0; font: 500 clamp(1.6rem, 3.1vw, 2.6rem)/1.18 var(--f-tit); letter-spacing: -.03em; color: var(--tinta); }
.cita-grande figcaption { margin-top: 24px; color: var(--tenue); font-size: 15px; }

.carril-marco { position: relative; }
.carril { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; }
.carril-flechas { display: none; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.resena { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; border-radius: var(--radio); background: var(--gris); }
.seccion-gris .resena { background: var(--blanco); }
.resena-cab { display: flex; justify-content: space-between; align-items: center; }
.resena-cab small { font-size: 13px; color: var(--tenue); }
.resena blockquote { margin: 0; flex: 1; font-size: 16px; line-height: 1.6; color: var(--texto); }
.resena figcaption { display: flex; align-items: center; gap: 12px; }
.inicial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tinta); color: #fff; font: 600 16px/1 var(--f-tit); }
.inicial .ico { width: 20px; height: 20px; }
.resena-cab + blockquote + figcaption .inicial:has(.ico) { background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); }
.resena figcaption b { display: block; color: var(--tinta); font-weight: 600; font-size: 15px; }
.resena figcaption small { color: var(--tenue); font-size: 13px; }

/* ── Asignaturas como lomos de libro ──────────────────────────────── */
.estanteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tomo-tarjeta {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 270px;
  padding: 34px 32px 30px 44px; border-radius: var(--radio); background: var(--blanco); overflow: hidden;
  transition: transform .45s var(--curva), box-shadow .45s var(--curva);
}
.tomo-tarjeta::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--c, #d9d9de); transform-origin: left; transition: transform .45s var(--curva); }
.tomo-tarjeta::after { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, .06); }
.tomo-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(17, 19, 24, .25); }
.tomo-tarjeta:hover::before { transform: scaleX(1.5); }
.tomo-icono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--c, var(--tinta)); background: color-mix(in srgb, var(--c, #888) 10%, #fff); margin-bottom: 14px; }
.tomo-icono .ico { width: 26px; height: 26px; }
.tomo-tarjeta h3 { font-size: 26px; }
.tomo-tarjeta p { color: var(--texto); font-size: 16px; flex: 1; }
.tomo-tarjeta .enlace { margin-top: 8px; color: var(--c, var(--acento)); }
.tomo-otra { background: transparent; box-shadow: inset 0 0 0 1px var(--linea); }
.tomo-otra .tomo-icono { color: var(--tinta); background: var(--blanco); }
.tomo-otra .enlace { color: var(--tinta); }

/* ── Cifras ───────────────────────────────────────────────────────── */
.cifras-seccion { padding: 96px 0; }
.cifras { display: grid; grid-template-columns: repeat(4, 1fr); }
.cifras li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 16px; }
.cifras li + li { border-left: 1px solid var(--linea); }
.cifras b { font: 600 clamp(3rem, 6vw, 5rem)/1 var(--f-tit); letter-spacing: -.05em; color: var(--tinta); font-variant-numeric: tabular-nums; }
.cifras b small { font-size: .4em; letter-spacing: 0; margin-left: 2px; color: var(--tenue); }
.cifras span { font-size: 14.5px; color: var(--tenue); max-width: 180px; }

/* ── Lo que nos distingue ─────────────────────────────────────────── */
.distingue { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; align-items: start; }
.distingue .titular { position: sticky; top: calc(var(--cab) + 40px); }
.temas { max-width: 380px; margin-top: 36px; }
.temas li { grid-template-columns: 96px 1fr 20px; }
.temas li span { color: var(--texto); }
.temas i::after { background: var(--acento); }
.nota-al-pie { margin-top: 14px; font-size: 13px; color: var(--tenue); }
.rasgos { display: grid; }
.rasgo { display: grid; grid-template-columns: 56px 1fr; gap: 6px 22px; padding: 40px 0; border-top: 1px solid var(--linea); }
.rasgo:last-child { border-bottom: 1px solid var(--linea); }
.rasgo-icono { grid-row: span 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--gris); color: var(--tinta); }
.rasgo-icono .ico { width: 26px; height: 26px; }
.rasgo h3 { font-size: 24px; }
.rasgo > p { color: var(--texto); }
.rasgo-cita { margin-top: 12px !important; padding-left: 16px; border-left: 2px solid var(--acento); font-size: 15.5px; color: var(--tinta) !important; }
.rasgo-cita small { display: block; margin-top: 4px; color: var(--tenue); font-size: 13px; }

/* ── Pasos con línea de progreso ──────────────────────────────────── */
.pasos { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; --p: 0; }
.pasos::before, .pasos::after { content: ''; position: absolute; left: 32px; right: calc(25% - 32px); top: 31px; height: 2px; border-radius: 2px; background: var(--gris-2); }
.seccion-gris .pasos::before { background: #dedee4; }
.pasos::after { background: var(--acento); transform: scaleX(var(--p)); transform-origin: left; }
.paso { position: relative; z-index: 1; }
.paso-icono { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blanco); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); transition: background .5s, color .5s, box-shadow .5s; margin-bottom: 26px; }
.paso-icono .ico { width: 26px; height: 26px; }
.paso.hecho .paso-icono { background: var(--tinta); color: #fff; box-shadow: none; }
.paso h3 { font-size: 22px; margin-bottom: 8px; }
.paso p { font-size: 16px; color: var(--texto); max-width: 260px; }

/* ── Asistente «Encuentra tu clase» ───────────────────────────────── */
.asistente { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 64px; border-radius: 36px; background: var(--tinta); color: #c9ccd3; }
.asistente h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.asistente .tenue { color: #7d828c; }
.asistente-texto p { margin-top: 18px; font-size: 17.5px; }
.asistente fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.asistente legend { padding: 0; margin-bottom: 12px; color: #fff; font-weight: 500; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px #3a3e47; color: #e4e6ea; font-size: 14.5px; transition: background .2s, color .2s, box-shadow .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px #6b707a; }
.chip[aria-pressed="true"] { background: #fff; color: var(--tinta); box-shadow: none; }
.asistente-resumen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; border-top: 1px solid #2b2e35; }
.asistente-resumen p { color: #fff; font-size: 15.5px; max-width: 360px; }

/* ── Blog ─────────────────────────────────────────────────────────── */
.articulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.articulo-tarjeta { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 30px; border-radius: var(--radio); background: var(--blanco); transition: transform .45s var(--curva), box-shadow .45s var(--curva); }
.articulo-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(17, 19, 24, .25); }
.articulo-tarjeta > *:not(.portada) { margin-inline: 14px; }
.articulo-tarjeta small { margin-top: 16px; color: var(--acento); font-weight: 500; font-size: 13.5px; }
.articulo-tarjeta h3 { font-size: 23px; line-height: 1.15; }
.articulo-tarjeta p { font-size: 15.5px; color: var(--texto); }
.portada {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; color: #fff;
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(255, 255, 255, .1) 25px 26px), var(--pc, #1f2a44);
}
.portada::before { content: ''; position: absolute; top: 0; bottom: 0; left: 16%; width: 1px; background: rgba(255, 140, 120, .55); }
.portada .ico { width: 56px; height: 56px; stroke-width: 1.2; transition: transform .6s var(--curva); }
.articulo-tarjeta:hover .portada .ico { transform: scale(1.08) rotate(-4deg); }
.portada-1 { --pc: #1f2a44; } .portada-2 { --pc: #3f6f62; } .portada-3 { --pc: var(--acento); }
.portada-3::before { background: rgba(255, 255, 255, .45); }

/* ── Dónde estamos y horario ──────────────────────────────────────── */
.donde { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.donde h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.donde-dir { margin-top: 24px; font-size: 19px; color: var(--texto); }
.donde-dir b { color: var(--tinta); font-weight: 600; }
.donde-nota { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--gris); font-size: 15px; }
.donde-nota .ico { color: var(--acento); margin-top: 2px; }
.donde-nota b { color: var(--tinta); }
.horario { margin: 26px 0 30px; font-size: 15.5px; }
.horario li { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.horario li span:last-child { font-variant-numeric: tabular-nums; }
.horario li.hoy { color: var(--tinta); font-weight: 600; }
.horario li.hoy span:first-child::after { content: 'Hoy'; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 11.5px; font-weight: 500; vertical-align: 2px; }
.mapa { border-radius: 28px; overflow: hidden; background: var(--gris); aspect-ratio: 5 / 4; }
.mapa iframe { width: 100%; height: 100%; border: 0; }

/* ── Preguntas ────────────────────────────────────────────────────── */
.preguntas-corto { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.preguntas-corto .enlace { margin-top: 24px; }
.pregunta { border-bottom: 1px solid var(--linea); }
.seccion-gris .pregunta { border-color: #dcdce2; }
.pregunta summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 19px/1.3 var(--f-tit); letter-spacing: -.02em; color: var(--tinta); }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary .ico { transition: transform .35s var(--curva); color: var(--tenue); }
.pregunta[open] summary .ico { transform: rotate(45deg); color: var(--acento); }
.pregunta .resp { padding: 0 48px 26px 0; color: var(--texto); }
.pregunta .resp p + p { margin-top: 12px; }
.pregunta .resp a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
.pregunta::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--curva), content-visibility .4s allow-discrete; }
.pregunta[open]::details-content { block-size: auto; }

/* ── Pie ──────────────────────────────────────────────────────────── */
.pie { background: var(--tinta); color: #a3a7b0; padding: 96px 0 32px; font-size: 15px; }
.pie a { transition: color .2s; }
.pie a:hover { color: #fff; }
.pie-arriba { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: end; padding-bottom: 64px; border-bottom: 1px solid #262931; }
.marca-pie .logo { color: #fff; }
.marca-pie .logo-marca { width: 64px; height: 64px; }
.marca-pie .logo-txt small { font-size: 15px; color: #8a8e97; }
.marca-pie .logo-txt b { font-size: 38px; }
.pie-cta p { font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 var(--f-tit); letter-spacing: -.03em; color: #fff; margin-bottom: 26px; }
.pie .boton-claro { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #3a3e47; }
.pie .boton-claro:hover { background: #1c1f26; }
.pie-rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 48px 0; }
.pie h2 { font: 500 13px/1 var(--f-txt); letter-spacing: 0; color: #6c707a; margin-bottom: 14px; }
.pie-rejilla a, .pie-rejilla p { color: #e4e6ea; line-height: 1.7; }
.pie-nav { display: flex; flex-direction: column; }
.pie-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; border-top: 1px solid #262931; font-size: 13.5px; }
.pie-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.pie-legal a { display: inline-flex; align-items: center; gap: 6px; }
.pie-legal .ico { width: 13px; height: 13px; color: var(--oro); }

/* ── Flotantes: WhatsApp, recordatorio y aviso ────────────────────── */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--verde-wa); color: #fff; box-shadow: 0 12px 28px -10px rgba(16, 120, 60, .6); transition: transform .3s var(--curva);
}
.wa-flotante .ico { width: 28px; height: 28px; }
.wa-flotante:hover { transform: scale(1.06); }
.recordatorio {
  position: fixed; right: 94px; bottom: 22px; z-index: 40; width: min(320px, calc(100vw - 120px)); padding: 20px 20px 18px; border-radius: 22px;
  background: var(--blanco); box-shadow: 0 20px 50px -18px rgba(17, 19, 24, .35), 0 0 0 1px rgba(17, 19, 24, .05);
  opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--curva); pointer-events: none;
}
.recordatorio.ver { opacity: 1; transform: none; pointer-events: auto; }
.recordatorio p { font-size: 14.5px; line-height: 1.5; padding-right: 22px; margin-bottom: 14px; }
.recordatorio b { color: var(--tinta); display: block; font-size: 16px; margin-bottom: 2px; }
.recordatorio-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--tenue); }
.recordatorio-x:hover { background: var(--gris); color: var(--tinta); }
.recordatorio-x .ico { width: 16px; height: 16px; }
.aviso-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 13px 20px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 14.5px;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .3s, transform .4s var(--curva); pointer-events: none; white-space: nowrap;
}
.aviso-toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ════════════════════ Páginas interiores ════════════════════ */
.cabeza { padding: 72px 0 72px; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--tenue); margin-bottom: 28px; }
.migas a:hover { color: var(--tinta); }
.migas span[aria-hidden] { color: #c4c6cc; }
.cabeza h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.045em; max-width: 900px; }
.cabeza .entradilla { margin-top: 24px; font-size: clamp(18px, 1.7vw, 21px); max-width: 680px; }
.cabeza .botones { margin-top: 32px; }
.cabeza-fila { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.cabeza-dato { text-align: right; }
.cabeza-dato b { display: block; font: 600 5.5rem/.9 var(--f-tit); letter-spacing: -.06em; color: var(--tinta); }
.cabeza-dato small { color: var(--tenue); font-size: 14.5px; }

/* Índice de asignaturas */
.indice { position: sticky; top: var(--cab); z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linea); }
.indice .envoltura { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.indice .envoltura::-webkit-scrollbar { display: none; }
.indice a { flex: none; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; color: var(--texto); transition: background .2s, color .2s; }
.indice a:hover { background: var(--gris); color: var(--tinta); }
.indice a.activo { background: var(--tinta); color: #fff; }

.asignatura { display: grid; grid-template-columns: 340px 1fr; gap: 72px; padding: 88px 0; border-bottom: 1px solid var(--linea); }
.asignatura:last-child { border-bottom: 0; }
.asig-lomo { position: relative; align-self: start; position: sticky; top: calc(var(--cab) + 90px); padding: 34px 30px 34px 44px; border-radius: var(--radio); background: var(--gris); overflow: hidden; }
.asig-lomo::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--c); }
.asig-lomo .tomo-icono { margin-bottom: 18px; }
.asig-lomo h2 { font-size: 34px; }
.asig-lomo p { margin-top: 10px; font-size: 15px; color: var(--tenue); }
.asig-cuerpo > p { font-size: 18.5px; color: var(--texto); max-width: 680px; }
.asig-cuerpo h3 { font-size: 20px; margin: 36px 0 16px; }
.lista-check { display: grid; gap: 12px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; }
.lista-check .ico { color: var(--acento); margin-top: 3px; }
.cita-mini { margin: 32px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--gris); }
.cita-mini blockquote { margin: 0; font: 500 18px/1.45 var(--f-tit); letter-spacing: -.015em; color: var(--tinta); }
.cita-mini figcaption { margin-top: 10px; font-size: 13.5px; color: var(--tenue); }
.asig-cuerpo .botones { margin-top: 32px; }

/* Calculadora de Selectividad */
.calculadora { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 36px; overflow: hidden; background: var(--blanco); box-shadow: 0 0 0 1px var(--linea); }
.calc-form { padding: 48px; }
.calc-form h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.calc-form > p { margin: 14px 0 30px; color: var(--texto); }
.campo { display: grid; gap: 8px; margin-bottom: 18px; }
.campo label, .campo .etq { font-size: 14.5px; font-weight: 500; color: var(--tinta); }
.campo small { color: var(--tenue); font-size: 13px; font-weight: 400; }
.entrada, .selector {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--gris);
  font: 500 16px/1 var(--f-txt); color: var(--tinta); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; appearance: none;
}
textarea.entrada { min-height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.entrada:focus, .selector:focus { outline: none; background: var(--blanco); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.entrada[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--acento); background: #fff6f4; }
.selector { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111318' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.fila-campos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.calc-res { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 48px; background: var(--tinta); color: #b7bac2; }
.calc-res .res-num { display: block; font: 600 clamp(4rem, 8vw, 6.5rem)/.9 var(--f-tit); letter-spacing: -.06em; color: #fff; font-variant-numeric: tabular-nums; }
.calc-res .res-num small { font-size: .3em; color: #7d828c; letter-spacing: 0; }
.calc-res .res-etq { font-size: 14.5px; }
.calc-res .res-acceso { padding-top: 26px; border-top: 1px solid #2b2e35; }
.calc-res .res-acceso b { font: 600 34px/1 var(--f-tit); color: #fff; }
.calc-res .res-aviso { font-size: 14px; color: #e98a7a; min-height: 21px; }
.calc-res .res-nota { font-size: 13px; color: #7d828c; }

/* Método */
.metodo-pasos { display: grid; gap: 0; counter-reset: paso; }
.metodo-paso { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--linea); }
.metodo-paso:last-child { border-bottom: 1px solid var(--linea); }
.metodo-num { font: 600 64px/1 var(--f-tit); letter-spacing: -.05em; color: var(--gris-2); transition: color .6s; }
.metodo-paso.visto .metodo-num { color: var(--acento); }
.metodo-paso h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.metodo-paso p { color: var(--texto); }
.metodo-paso p + p { margin-top: 12px; }

/* Opiniones */
.resumen-op { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; padding: 48px; border-radius: 32px; background: var(--gris); }
.resumen-op .barras { max-width: 420px; margin: 0; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 56px 0 28px; }
.filtro { min-height: 42px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); font-size: 14.5px; color: var(--texto); transition: background .2s, color .2s, box-shadow .2s; }
.filtro:hover { background: var(--gris); }
.filtro.activo { background: var(--tinta); color: #fff; box-shadow: none; }
.filtro span { margin-left: 6px; color: var(--tenue); }
.filtro.activo span { color: #9da1aa; }
.muro { columns: 3 300px; column-gap: 20px; }
.muro .resena { break-inside: avoid; margin-bottom: 20px; }
.muro .resena.oculta { display: none; }
.dejar-op { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 56px; padding: 40px 48px; border-radius: 32px; background: var(--tinta); color: #c9ccd3; }
.dejar-op h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 8px; }
.dejar-op .boton { background: #fff; color: var(--tinta); }
.dejar-op .boton:hover { background: var(--gris-2); }

/* Blog */
.blog-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seccion-blanca .articulo-tarjeta { background: var(--gris); }
.prosa { max-width: 720px; margin-inline: auto; font-size: 18px; line-height: 1.75; }
.prosa > * + * { margin-top: 22px; }
.prosa h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 56px; }
.prosa h3 { font-size: 21px; margin-top: 36px; }
.prosa ul, .prosa ol { padding-left: 22px; }
.prosa ul { list-style: disc; } .prosa ol { list-style: decimal; }
.prosa li + li { margin-top: 10px; }
.prosa li::marker { color: var(--acento); }
.prosa a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
.prosa strong { color: var(--tinta); font-weight: 600; }
.prosa .recuadro { padding: 26px 28px; border-radius: 20px; background: var(--gris); font-size: 17px; }
.prosa .recuadro b { color: var(--tinta); }
.prosa .formula-caja { padding: 22px 26px; border-radius: 18px; background: var(--tinta); color: #fff; font: 500 18px/1.6 var(--f-tit); letter-spacing: -.01em; }
.prosa .formula-caja small { display: block; color: #9da1aa; font: 400 14px/1.5 var(--f-txt); margin-top: 6px; }
.prosa table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prosa th, .prosa td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--linea); }
.prosa th { color: var(--tinta); font-weight: 600; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 28px; font-size: 14.5px; color: var(--tenue); }
.art-meta button { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta); font-weight: 500; }
.art-meta .ico { width: 16px; height: 16px; }
.art-fin { max-width: 720px; margin: 72px auto 0; padding: 36px; border-radius: 28px; background: var(--gris); display: grid; gap: 18px; }
.art-fin h2 { font-size: 26px; }

/* Preguntas (página) */
.buscador { position: relative; max-width: 560px; margin-top: 32px; }
.buscador .ico { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--tenue); pointer-events: none; }
.buscador .entrada { padding-left: 50px; min-height: 58px; border-radius: 999px; }
.faq-grupo { display: grid; grid-template-columns: 280px 1fr; gap: 64px; padding: 48px 0; border-top: 1px solid var(--linea); }
.faq-grupo h2 { font-size: 26px; position: sticky; top: calc(var(--cab) + 32px); }
.faq-grupo.oculta, .pregunta.oculta { display: none; }
.sin-resultados { padding: 40px 0; color: var(--tenue); }

/* Contacto */
.contacto { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.formulario { padding: 48px; border-radius: 32px; background: var(--gris); }
.formulario h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.formulario > p { margin: 12px 0 30px; color: var(--texto); }
.formulario .entrada, .formulario .selector { background-color: var(--blanco); }
.formulario .chips .chip { color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea); background: var(--blanco); }
.formulario .chips .chip[aria-pressed="true"] { background: var(--tinta); color: #fff; box-shadow: none; }
.formulario .etq { display: block; margin-bottom: 10px; }
.consentimiento { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 24px; font-size: 14px; color: var(--texto); }
.consentimiento input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tinta); flex: none; }
.consentimiento a { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.form-botones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-error { margin-top: 14px; color: var(--acento); font-size: 14.5px; min-height: 22px; }
.tarjetas-contacto { display: grid; gap: 12px; }
.t-contacto { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 22px; background: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea); transition: background .25s; }
a.t-contacto:hover { background: var(--gris); }
.t-contacto > .ico { justify-self: end; color: var(--tenue); }
.t-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gris); color: var(--tinta); }
.t-ico.wa { background: #e8f7ee; color: var(--verde-wa); }
.t-contacto small { display: block; color: var(--tenue); font-size: 13.5px; }
.t-contacto b { color: var(--tinta); font-weight: 600; font-size: 17px; }
.t-horario { padding: 24px 24px 8px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--linea); }
.t-horario .horario { margin: 10px 0 0; }
.t-horario .horario li:last-child { border-bottom: 0; }
.t-horario-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.t-horario-cab b { color: var(--tinta); }
.llegar { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.llegar .mapa { aspect-ratio: 16 / 11; }
.pasos-llegar { display: grid; gap: 18px; margin: 24px 0 30px; }
.pasos-llegar li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pasos-llegar .t-ico { width: 44px; height: 44px; border-radius: 14px; }
.pasos-llegar b { display: block; color: var(--tinta); }

/* 404 */
.p-404 .cabeza { padding: 120px 0; text-align: center; }
.p-404 .cabeza h1, .p-404 .cabeza .entradilla { margin-inline: auto; }
.p-404 .botones { justify-content: center; }

/* ════════════════════ Responsive ════════════════════ */
@media (max-width: 1120px) {
  .nav { display: none; }
  .boton-menu { display: inline-grid; }
  .cab-dcha { margin-left: auto; }
  .carril { grid-auto-columns: calc((100% - 20px) / 2.15); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .carril::-webkit-scrollbar { display: none; }
  .carril .resena { scroll-snap-align: start; }
  .carril-flechas { display: flex; }
}
@media (max-width: 960px) {
  .seccion { padding: 88px 0; }
  .hero { padding: 36px 0 72px; }
  .hero-rejilla, .op-cabecera, .distingue, .donde, .preguntas-corto, .asistente, .contacto, .llegar, .calculadora, .pie-arriba { grid-template-columns: 1fr; }
  .hero-rejilla { gap: 28px; }
  .libros { max-width: 460px; }
  .op-cabecera { gap: 48px; margin-bottom: 48px; }
  .distingue { gap: 40px; }
  .distingue .titular { position: static; }
  .estanteria, .articulos, .blog-lista { grid-template-columns: repeat(2, 1fr); }
  .cifras { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .cifras li:nth-child(3) { border-left: 0; }
  .pasos { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .pasos::before, .pasos::after { display: none; }
  .asistente { padding: 44px 32px; gap: 32px; }
  .asignatura { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; }
  .asig-lomo { position: relative; top: 0; }
  .metodo-paso { grid-template-columns: 80px 1fr; gap: 16px 32px; }
  .metodo-paso > div:last-child { grid-column: 2; }
  .faq-grupo { grid-template-columns: 1fr; gap: 8px; }
  .faq-grupo h2 { position: static; }
  .resumen-op { grid-template-columns: 1fr; gap: 32px; }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .cabeza-fila { grid-template-columns: 1fr; }
  .cabeza-dato { text-align: left; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .envoltura { width: calc(100% - 40px); }
  .barra-sup .envoltura { justify-content: space-between; gap: 12px; font-size: 12.5px; }
  .barra-sup .estado { display: none; }
  .boton-cab { display: none; }
  .cab-dcha { gap: 8px; }
  .logo-marca { width: 34px; height: 34px; }
  .logo-txt b { font-size: 19px; }
  .seccion { padding: 72px 0; }
  .titular { margin-bottom: 40px; }
  .titular p { font-size: 17px; }
  .titular-fila { flex-direction: column; align-items: start; }
  .hero h1 { font-size: clamp(2.35rem, 10.6vw, 3rem); }
  .hero-antes { margin-top: 24px; }
  .hero .botones .boton { flex: 1 1 100%; }
  .hero-datos { flex-direction: column; }
  .carril { grid-auto-columns: 86%; gap: 12px; }
  .estanteria, .articulos, .blog-lista { grid-template-columns: 1fr; }
  .tomo-tarjeta { min-height: 0; padding: 28px 24px 26px 38px; }
  .cifras b { font-size: 3.2rem; }
  .cifras li { padding: 4px 8px; }
  .pasos { grid-template-columns: 1fr; row-gap: 0; }
  .paso { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .paso-icono { grid-row: span 2; margin: 0; }
  .paso::before { content: ''; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: #dedee4; z-index: -1; }
  .paso:last-child::before { display: none; }
  .paso h3 { margin-top: 18px; }
  .asistente { padding: 36px 22px; border-radius: 28px; margin-inline: -4px; }
  .asistente-resumen .boton { width: 100%; }
  .botones.centrados { margin-top: 36px; }
  .botones.centrados .boton { flex: 1 1 100%; }
  .donde .botones .boton, .cabeza .botones .boton { flex: 1 1 100%; }
  .mapa { aspect-ratio: 1 / 1; border-radius: 22px; }
  .pregunta summary { font-size: 17.5px; padding: 20px 0; }
  .pregunta .resp { padding-right: 0; }
  .pie { padding-top: 72px; }
  .pie-rejilla { grid-template-columns: 1fr; gap: 28px; }
  .pie-cta .boton { flex: 1 1 100%; }
  .marca-pie .logo-txt b { font-size: 32px; }
  .wa-flotante { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .recordatorio { right: 16px; left: 16px; bottom: 82px; width: auto; }
  .cabeza { padding: 48px 0 56px; }
  .calc-form, .calc-res, .formulario { padding: 32px 22px; }
  .calculadora, .formulario { border-radius: 26px; }
  .fila-campos { grid-template-columns: 1fr; }
  .metodo-paso { grid-template-columns: 1fr; padding: 40px 0; }
  .metodo-paso > div:last-child { grid-column: auto; }
  .metodo-num { font-size: 44px; }
  .resumen-op { padding: 32px 24px; }
  .dejar-op { grid-template-columns: 1fr; padding: 32px 24px; }
  .t-contacto { grid-template-columns: 48px 1fr; padding: 16px 18px; }
  .t-contacto > .ico { display: none; }
  .t-ico { width: 48px; height: 48px; }
  .form-botones .boton { flex: 1 1 100%; }
  .prosa { font-size: 17px; }
  .art-fin { padding: 28px 22px; }
}

@media (hover: none) { .tomo-tarjeta:hover, .articulo-tarjeta:hover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hoja { display: none; }
}
:root:has(.p-clases) { scroll-padding-top: calc(var(--cab) + 84px); }
.articulo-tarjeta .h3-tarjeta { font-size: 23px; line-height: 1.15; }
.pasos-llegar span { color: var(--texto); font-size: 15.5px; }
/* Lomos de libro (cabecera de Clases): cada uno lleva a su asignatura */
.lomos { display: flex; align-items: flex-end; gap: 8px; padding-bottom: 6px; border-bottom: 6px solid var(--gris-2); }
.lomos a {
  display: flex; align-items: center; justify-content: center; width: 58px; height: var(--h); border-radius: 8px 8px 3px 3px;
  background: var(--c); color: var(--t, #fff); font: 600 15px/1 var(--f-tit); letter-spacing: .01em;
  writing-mode: vertical-rl; transform: rotate(180deg); position: relative; transition: translate .4s var(--curva);
}
.lomos a::before, .lomos a::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, .3); }
.lomos a::before { top: 22px; } .lomos a::after { bottom: 22px; }
.lomos a:hover { translate: 0 -12px; }
@media (max-width: 960px) {
  .lomos { justify-content: flex-start; }
  .lomos a { height: calc(var(--h) * .5); width: 46px; font-size: 13px; }
  .lomos a::before { top: 12px; } .lomos a::after { bottom: 12px; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 8px; }
  .libros { max-width: 380px; }
  .lomos { gap: 6px; }
  .lomos a { flex: 1; width: auto; }
}
.pie-rejilla a { display: inline-block; }

/* ── Nombre en grande en la portada ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-nombre { margin-top: 40px; display: flex; flex-direction: column; letter-spacing: 0; line-height: 1; }
.hn-a { display: inline-flex; align-items: center; gap: .35em; font: 600 clamp(1.35rem, 2.3vw, 2rem)/1 var(--f-tit); letter-spacing: -.02em; color: var(--tenue); }
.hn-marca { width: 1.7em; height: 1.7em; color: var(--tinta); }
.hn-b { margin-top: .06em; margin-left: -.04em; font: 700 clamp(4.6rem, 10.5vw, 9.6rem)/.9 var(--f-tit); letter-spacing: -.06em; color: var(--tinta); white-space: nowrap; }
.hero-lema { margin-top: 26px; font: 500 clamp(1.35rem, 2.1vw, 1.85rem)/1.25 var(--f-tit); letter-spacing: -.025em; color: var(--tinta); max-width: 560px; }
.hero-lema + .hero-sub { margin-top: 14px; }
@media (max-width: 640px) {
  .hero-nombre { margin-top: 24px; }
  .hn-b { font-size: 21vw; }
}

/* ── Fluidez ── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, .chip { touch-action: manipulation; }
