/* Olrait Ediciones. En escritorio el contenido mide 108rem (1200 px) y la escala de textos es
   13, 16, 18, 24, 40 y 72 px. En móvil 1rem = 16 px sobre 393 de ancho. */
@font-face { font-family: Epilogue; src: url(fonts/Epilogue.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
:root { --magenta: #ba12a5; --rosa: #ed53cc; --negro: #000; --gris: #f0f0f0; --campo: #d9d9d9; --texto: 1.62rem; --medio: 1.44rem; --sub: 2.16rem; --seccion: 3.6rem; --titulo: 6.5rem; --mini: max(13px, 1.17rem); }
html { font-size: min(calc(100vw / 108), 11.11px); }
* { box-sizing: border-box; }
body { margin: 0; overflow-x: clip; background: #fff; color: #000; font-family: Epilogue, Arial, sans-serif; font-size: var(--texto); line-height: 1.35; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
h1, h2 { margin: 0; color: var(--magenta); font-size: var(--titulo); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
h2 { font-size: var(--seccion); }
p { margin: 0; }
:focus-visible { outline: .19rem solid var(--magenta); outline-offset: .19rem; }

/* Cabecera */
.cabecera { background: var(--negro); height: 7.2rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 0 3.6rem; }
.cabecera .logo img { width: 11.5rem; height: auto; }
.menu-fijo { display: flex; gap: 2.6rem; margin-left: auto; color: #fff; font-size: var(--medio); font-weight: 700; }
.menu-fijo a { padding: .4rem 0 .2rem; border-bottom: .2rem solid transparent; transition: color .15s, border-color .15s; }
.menu-fijo a:hover { color: var(--rosa); }
.menu-fijo a[aria-current] { border-color: var(--rosa); }
.cabecera .acciones { display: flex; align-items: center; gap: 2.5rem; }
.hamburguesa { display: none; width: 3.8rem; height: 2.8rem; flex-direction: column; justify-content: space-between; }
.icono-carrito { position: relative; display: block; width: 3rem; color: #fff; }
.icono-carrito svg { width: 100%; display: block; fill: currentColor; }
.icono-carrito span { position: absolute; right: -.5rem; bottom: -.1rem; min-width: 1.75rem; height: 1.75rem; border-radius: 1rem; background: var(--magenta); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.icono-carrito span:empty { display: none; }
.hamburguesa i { display: block; height: .4rem; border-radius: .25rem; background: #fff; }

/* Menú lateral */
.menu { position: fixed; inset: 0 0 0 auto; width: 42rem; max-width: 100vw; background: var(--negro); color: #fff; z-index: 30; padding: 3rem 4rem; display: flex; flex-direction: column; align-items: flex-end; gap: 2.2rem; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
.menu.abierto { transform: none; visibility: visible; }
.menu a { font-size: var(--texto); font-weight: 800; text-transform: uppercase; }
.menu a:hover { color: var(--rosa); }
.menu .cerrar { font-size: 3rem; line-height: 1; margin-bottom: 1rem; }
.velo { position: fixed; inset: 0; background: #0006; z-index: 29; display: none; }
.velo.abierto { display: block; }

/* Pie */
.pie { background: var(--negro); color: #fff; font-size: var(--mini); line-height: 1.5; padding: 4rem 3.6rem 2.2rem; }
.pie-dentro { max-width: 100.8rem; margin: 0 auto; display: grid; grid-template-columns: 8rem 1fr 1fr 30rem; gap: 4rem; align-items: start; }
.pie-marca img { width: 6.5rem; filter: invert(1); }
.pie nav a { display: block; padding: .15rem 0; }
.pie nav a:hover { color: var(--rosa); }
.pie .boletin b { display: block; font-size: var(--medio); }
.pie .campo-boletin { display: flex; margin-top: 1rem; }
.pie .campo-boletin input { flex: 1; min-width: 0; height: 3.6rem; border: 0; background: #fff; color: #000; padding: .2rem 1rem 0; }
.pie .campo-boletin button { height: 3.6rem; padding: .2rem 1.4rem 0; background: var(--magenta); color: #fff; font-weight: 700; }
.pie .campo-boletin button:hover { background: var(--rosa); color: #000; }
.pie .aviso { max-width: 100.8rem; margin: 3rem auto 0; padding-top: 1.4rem; border-top: 1px solid #fff4; color: #bbb; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* Barra para volver arriba */
.subir { position: fixed; right: 2.4rem; bottom: 2.4rem; width: 4.8rem; height: 4.8rem; border-radius: 50%; background: var(--magenta); z-index: 20; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s, background .15s; }
.subir.visible { opacity: 1; pointer-events: auto; }
.subir svg { width: 2.2rem; height: auto; fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.subir:hover { background: #000; }

/* Botones */
.boton { display: inline-block; background: var(--magenta); color: #fff; border-radius: 3rem; font-weight: 800; padding: 1.1rem 2.5rem .9rem; text-align: center; transition: background .15s; }
.boton:hover { background: #000; }
.boton.pequeno { font-size: var(--medio); padding: .9rem 1.8rem .7rem; line-height: 1.15; }
.boton.blanco { background: #fff; color: var(--magenta); }
.boton.blanco:hover { background: #000; color: #fff; }

/* Portada y contacto */
.paisaje { position: relative; overflow: hidden; color: #fff; background: linear-gradient(#bb13a6 var(--horizonte, 42.9%), #5e0058 var(--horizonte, 42.9%)); }
.paisaje > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.paisaje > video.horizontal { left: 50%; right: auto; height: 100%; width: auto; max-width: none; aspect-ratio: 1728 / 1117; transform: translateX(-50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.paisaje > video.horizontal { left: 0; width: 100%; aspect-ratio: auto; transform: none; object-position: center 62%; -webkit-mask-image: none; mask-image: none; }
.paisaje .vertical { display: none; }
.portada { font-size: calc(min(100vh, 64.65vw) / 84); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 2.6em; }
.portada > * { position: relative; }
/* En escritorio el logo arranca justo bajo la línea del tren: 47,7 % de la altura del vídeo menos el recorte superior */
@media (min-width: 761px) {
  .portada { justify-content: flex-start; padding-top: calc(62vh - .143 * max(56.25vw, 100vh) + 1.4em); padding-bottom: 3em; }
  .paisaje.contacto { justify-content: flex-start; padding-top: calc(.62 * (100vh - 7.2rem) - .143 * max(56.25vw, 100vh - 7.2rem) + 7rem); }
}
.portada .marca { width: 19em; margin-bottom: 2.4em; }
.portada nav { width: 36.7em; display: flex; flex-direction: column; gap: .875em; }
.portada nav a { display: flex; align-items: center; justify-content: center; height: 1.87em; padding-top: .15em; background: #ffffff40; border-radius: 2em; font-weight: 800; font-size: 1.5em; transition: background .15s; }
.portada nav a:hover { background: var(--magenta); }
.contacto { min-height: calc(100vh - 7.2rem); --horizonte: 50.6%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 0 2rem 3rem; }
.contacto > * { position: relative; }
.contacto .bloque { margin-bottom: 2.2rem; }

/* Páginas de texto */
.pagina, .legal, .autores, .novedad, .rejilla, .dos-columnas, .error, .cabecera-seccion, .filtros, .merch-seccion { max-width: 108rem; margin-left: auto; margin-right: auto; }
.pagina { padding: 5rem 3.6rem 7rem; }
.pagina h1 { margin-bottom: 4rem; }
.legal { padding: 3rem 3.6rem 7rem; }
.legal > * { max-width: 72rem; }
.legal h1 { margin-bottom: 2rem; max-width: none; }
.legal h2 { color: #000; font-size: var(--sub); font-weight: 800; text-transform: none; margin: 3rem 0 1rem; }
.legal ul { margin: 1.5rem 0; padding-left: 2rem; list-style: "·  "; }

/* Nosotros */
.nosotros-fotos { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; margin: 0 0 4.5rem; }
.nosotros-fotos img { width: 100%; }
.nosotros-texto { max-width: 72rem; }
.nosotros-texto p + p { margin-top: 1.5rem; }
.autores { padding: 0 3.6rem 5rem; }
.autores h2 { margin: 0 0 4rem; }
.autor { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.autor video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.autor:nth-of-type(even) video { order: 2; }
.autor h3 { font-size: var(--sub); font-weight: 800; margin: 0 0 1rem; }

/* Catálogo */
.cabecera-seccion { padding: 5rem 3.6rem 0; }
.novedad { position: relative; height: 46rem; display: flex; align-items: center; justify-content: center; }
.novedad button { width: 27rem; transition: transform .25s; }
.novedad button:hover { transform: scale(1.04) rotate(-1deg); }
.novedad .estallido { position: absolute; width: 27rem; left: calc(50% - 35rem); top: 17rem; pointer-events: none; }
.filtros { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0 3.6rem 3rem; }
.filtros[hidden] { display: none; }
.filtros button { padding: .75rem 1.6rem .55rem; border-radius: 3rem; font-size: var(--medio); font-weight: 700; background: var(--gris); transition: background .15s, color .15s; }
.filtros button:hover { background: #ddd; }
.filtros button.activo { background: var(--magenta); color: #fff; }
.rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4rem 3.6rem; padding: 0 3.6rem 7rem; }
.rejilla img { width: 100%; }
.portadas, .tarjeta .poster { background: var(--gris); }
.tarjeta { display: block; width: 100%; text-align: left; }
.tarjeta[hidden] { display: none; }
.tarjeta .foto { display: block; overflow: hidden; transition: transform .25s; }
.tarjeta:hover .foto { transform: translateY(-.5rem) rotate(-1deg); }
.tarjeta .nombre { display: block; font-size: var(--medio); font-weight: 800; line-height: 1.2; margin-top: 1.1rem; }
.tarjeta .autor-mini, .tarjeta .precio { display: block; font-size: var(--mini); margin-top: .25rem; }
.tarjeta .precio { font-weight: 700; color: var(--magenta); }
.tarjeta:hover .nombre { color: var(--magenta); }
.portadas { aspect-ratio: 2 / 3; object-fit: cover; }
.tarjeta .poster { aspect-ratio: 5 / 7; object-fit: cover; }
.tarjeta .camiseta, .tarjeta .taza { aspect-ratio: 1; object-fit: contain; }

/* Merchandising */
.merch-portada { position: relative; aspect-ratio: 1728 / 1117; background: url(img/promo-camiseta-patata.webp) center / cover; padding: 5rem max(3.6rem, calc((100vw - 100.8rem) / 2)); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.merch-portada h1 { color: var(--rosa); margin-bottom: 1rem; }
.merch-portada a { color: #fff; font-size: var(--seccion); font-weight: 800; line-height: 1.1; }
.merch-portada a:hover { color: var(--rosa); }
@media (min-width: 761px) {
  .foto-ancha { aspect-ratio: auto; height: min(80vh, 62rem); }
}
.merch-nav { position: sticky; top: 0; z-index: 15; background: #000; }
.merch-nav div { max-width: 108rem; margin: 0 auto; padding: 1.1rem 3.6rem .8rem; display: flex; gap: 3rem; color: #fff; font-size: var(--medio); font-weight: 700; }
.merch-nav a:hover { color: var(--rosa); }
.merch-seccion { scroll-margin-top: 5rem; padding-top: 6rem; }
.merch-seccion h2 { padding: 0 3.6rem 3rem; }
.foto-ancha { width: 100%; aspect-ratio: 1728 / 1117; object-fit: cover; object-position: center 15%; }
/* Ventanas */
dialog { border: 0; border-radius: 1.75rem; padding: 3.5rem; width: 72rem; max-width: 92vw; max-height: 92vh; background: #fff; color: #000; }
dialog::backdrop { background: #000a; }
dialog .cerrar { position: absolute; right: 1.5rem; top: 1rem; font-size: 3rem; line-height: 1; }
.ficha { display: grid; grid-template-columns: 26rem 1fr; gap: 3.5rem; align-items: start; }
.ficha img { width: 100%; }
.ficha h2 { color: #000; font-size: var(--sub); line-height: 1.15; }
.ficha p { margin-top: 1.5rem; }
.ficha .botones { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3rem; justify-content: center; }
.detalle { text-align: center; width: 52rem; }
.detalle > img { width: 100%; max-height: 60vh; object-fit: contain; }
.detalle h2 { color: #000; font-size: var(--sub); line-height: 1.2; margin-top: 1.5rem; }
.detalle p { font-size: var(--texto); margin: 1rem 0; }
.colores { display: flex; justify-content: center; gap: 1.2rem; margin: .5rem 0 1rem; }
.colores button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: .12rem dashed #0008; }
.colores button.activo { outline: .2rem solid var(--magenta); outline-offset: .15rem; }
.opciones { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 1rem 0 1.5rem; font-size: var(--medio); }
.opciones button { padding: .7rem 1.2rem .5rem; border-radius: 1rem; font-weight: 700; background: var(--gris); }
.opciones button.activo { background: var(--magenta); color: #fff; }

/* Noticias, charlitas y foro */
.dos-columnas { display: grid; grid-template-columns: 1fr 28rem; gap: 5rem; padding: 5rem 3.6rem 7rem; align-items: start; }
.lateral { position: sticky; top: 3rem; background: var(--magenta) url(img/fondo-medio.webp) center / cover; color: #fff; border-radius: 2rem; padding: 2.6rem 2.4rem; font-size: var(--sub); line-height: 1.15; }
.lateral p + p { margin-top: 2.4rem; }
.lateral input { width: 100%; margin-top: 2.2rem; height: 4.5rem; border: 0; text-align: center; background: #fff; font-size: var(--mini); padding: .3rem 0 0; }
.dos-columnas h1 { margin-bottom: 4rem; }
.noticia { margin-bottom: 5rem; }
.noticia h3, .hilo-titulo { font-size: var(--sub); font-weight: 800; line-height: 1.2; margin: 0; }
.noticia .fecha { margin-bottom: 2rem; }
.noticia .cuerpo { margin-bottom: 2.4rem; }
.noticia .fotos { display: flex; justify-content: space-between; gap: 2rem; }
.noticia .fotos { min-width: 0; }
.noticia .fotos img { width: 31%; min-width: 0; }
.noticia .fotos.dos img { width: 48%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; align-self: flex-start; }
.noticia .fotos.mix img:first-child { width: 31%; }
.noticia .fotos.mix img:last-child { width: 66%; object-fit: cover; }
.noticia .fotos.una { justify-content: center; }
.noticia .fotos.una img { width: 100%; }
.compartir { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.compartir .redes { display: flex; gap: .7rem; color: var(--magenta); }
.compartir svg { width: 2.4rem; height: 2.4rem; fill: currentColor; display: block; }
.compartir > a, .compartir .redes a { color: var(--magenta); }
.compartir > a:hover, .compartir .redes a:hover { color: #000; }
.noticia h3 a:hover { color: var(--magenta); }
.noticia.entera .fotos { margin-bottom: 3rem; }
.noticia.entera .texto p, .noticia.entera .texto ul { margin: 0 0 1.6rem; }
.noticia.entera .texto ul { padding-left: 2rem; list-style: "·  "; }
.noticia.entera .texto a, .mensaje a { color: var(--magenta); font-weight: 700; }
.cabecera-pag .frase.larga { font-size: min(5.8rem, 10vh); line-height: 1.02; }
button.empezar { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; cursor: pointer; }
button.empezar:hover { color: var(--magenta); }
.paginas { display: flex; justify-content: center; gap: 1.2rem; font-size: var(--mini); }
.paginas b { background: #ddd; border-radius: 50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; }
.paginas span { line-height: 1.9rem; }
.empezar { font-weight: 800; margin: 2.5rem 0 1.5rem; }
.tema { display: grid; grid-template-columns: 1fr auto auto; gap: 3.5rem; align-items: center; margin-bottom: 1.5rem; }
.tema b { display: block; font-size: var(--texto); font-weight: 800; }
.tema small { font-size: var(--mini); display: block; }
.tema .mensajes { position: relative; color: var(--magenta); width: 3rem; }
.tema .mensajes svg { width: 2.6rem; fill: currentColor; display: block; }
.tema .mensajes i { position: absolute; right: -.7rem; bottom: -.7rem; background: var(--magenta); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; }
.tema .ir { color: var(--magenta); white-space: nowrap; }
.tema:hover .ir { color: #000; }
.mensaje { margin-bottom: 4rem; }
.mensaje.inicial { border-left: .35rem solid var(--magenta); padding-left: .5rem; }
.autoria { display: grid; grid-template-columns: 6rem 1fr auto; column-gap: 1rem; align-items: end; border-bottom: .12rem solid #555; padding-bottom: .5rem; margin-bottom: 2rem; }
.autoria img { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; object-position: top; grid-row: 1 / 3; }
.autoria b { color: var(--magenta); font-weight: 800; font-size: var(--texto); grid-column: 2 / 4; }
.autoria span { font-size: var(--mini); }
.volver { font-weight: 800; display: inline-block; margin-top: 2rem; }

/* Cursos */
.pagina.cursos h1 { margin-bottom: 2.5rem; }
.cursos-lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 3.2rem; }
.curso { font-size: var(--texto); line-height: 1.2; font-weight: 800; }
.curso img { width: 100%; aspect-ratio: 1 / .49; object-fit: cover; border-radius: 1.75rem; margin-bottom: 1.3rem; }
a.curso:hover { color: var(--magenta); }
.curso-detalle { padding-bottom: 3rem; }
.curso-detalle h1 { margin-bottom: 2.5rem; }
.curso-detalle .seccion-mini { color: var(--magenta); font-weight: 800; text-transform: uppercase; margin-bottom: .5rem; }
.curso-detalle h1 { font-size: var(--seccion); }
.curso-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; align-items: start; }
.curso-rejilla img, .curso-rejilla video { width: 100%; }
.curso-rejilla video { aspect-ratio: 3 / 2; object-fit: cover; }
.curso-datos { display: grid; grid-template-columns: auto 1fr; gap: 2rem 1.5rem; }
.curso-datos dt { font-weight: 800; }
.curso-datos dd { margin: 0; }
.curso-datos + .boton { display: table; margin: 2.5rem auto 0; }

/* Carrito */
.carrito-lleno { display: grid; grid-template-columns: 1fr 24.5rem; gap: 2.5rem; align-items: start; padding: 0 1.5rem; }
.tabla { width: 100%; border-collapse: collapse; font-size: var(--texto); }
.tabla th { font-weight: 400; text-align: center; border-bottom: .12rem solid #999; padding-bottom: .5rem; }
.tabla th:first-child, .tabla td:first-child { text-align: left; }
.tabla td { padding: 1.3rem .4rem 1.1rem; text-align: center; }
.tabla td:first-child, .tabla .sub { font-weight: 800; }
.tabla input { width: 3.5rem; height: 2.6rem; text-align: center; background: #eee; border: .1rem solid #333; font-size: 1.5rem; }
.tabla .quitar { color: #bbb; }
.tabla .quitar:hover { color: var(--magenta); }
.tabla .quitar svg { width: 1.8rem; fill: currentColor; display: block; }
.tabla .articulo { display: flex; align-items: center; gap: 1.6rem; }
.tabla .articulo img { width: 6.4rem; height: 6.4rem; object-fit: contain; flex: none; }
.resumen-titulo { text-align: center; font-size: var(--texto); margin-bottom: .7rem; }
.resumen { background: var(--magenta); color: #fff; border-radius: 2rem; padding: 3rem 1.8rem 2.2rem; font-size: var(--texto); }
.resumen div { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.resumen .total { font-weight: 800; margin-top: 2rem; }
.resumen .boton { display: block; margin: 1.5rem auto 0; width: 13.5rem; }
.volver-a { display: flex; justify-content: center; gap: 12rem; margin-top: 4rem; text-align: center; line-height: 1.2; font-size: var(--texto); }
.volver-a b { display: block; font-weight: 800; }
.volver-a a:hover b { color: var(--magenta); }
.vacio { text-align: center; position: relative; padding-bottom: 3rem; }
.vacio .grande { color: var(--magenta); font-size: 10.8rem; font-weight: 800; line-height: 1; display: block; }
.vacio h2 { margin: 0; text-align: center; }
.vacio img { width: 31rem; margin: 0 auto; position: relative; }
.vacio .bola { position: absolute; left: 50%; bottom: -3rem; width: 100vw; max-width: none; height: auto; aspect-ratio: 4194 / 2480; transform: translateX(-50%); pointer-events: none; z-index: 2; }
.vacio .demo { position: absolute; left: 0; top: 13rem; color: var(--magenta); font-size: var(--medio); font-weight: 800; width: 11rem; line-height: 1.2; }
.vacio .demo video { width: 6rem; margin: 0 auto; }
.pedido { display: grid; grid-template-columns: 1fr 24.5rem; gap: 3rem; align-items: start; width: 78rem; max-width: 92vw; padding-bottom: 3.5rem; }
dialog.pedido { display: none; }
dialog.pedido[open] { display: grid; }
.pedido h2 { color: #000; font-size: var(--sub); text-transform: none; margin-bottom: 1rem; }
.campos { display: grid; grid-template-columns: 16rem 1fr; gap: 1rem .5rem; align-items: center; font-size: var(--texto); }
.campos input { height: 2rem; background: var(--campo); border: 0; width: 100%; }
.pago label { display: block; font-size: var(--texto); }
.pago input[type=radio] { accent-color: var(--magenta); margin-left: 1rem; }
.pago .campo { margin: 1.2rem 0 0 7rem; font-size: var(--texto); }
.pago .campo input { display: block; width: 100%; height: 2rem; background: var(--campo); border: 0; margin-top: .6rem; }
.pago small { display: block; margin: .6rem 0 1rem 7rem; font-size: var(--mini); }
.nota-demo { grid-column: 1 / -1; color: var(--magenta); font-size: var(--mini); text-align: center; }
.gracias { text-align: center; width: 50rem; }
.gracias h2 { margin-bottom: 1.5rem; }
.gracias .boton { margin-top: 2rem; }

.resumen .curso-nombre { text-align: center; font-weight: 800; margin-bottom: 1.5rem; }

/* 404 */
.error { text-align: center; padding: 4rem 2rem 3rem; }
.error strong { display: block; color: var(--magenta); font-size: 10.8rem; font-weight: 800; line-height: 1; }
.error img { width: 38rem; margin: -2rem auto 0; }
.error h1 { font-size: var(--seccion); }
.error p { max-width: 52rem; margin: 1.5rem auto 3rem; }
.botones-error { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

/* Lector */
.lector { position: fixed; inset: 0; background: #222; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; padding: 2rem; }
.lector .pliego { position: relative; width: min(92vw, calc((100vh - 11rem) * 1.414)); aspect-ratio: 3508 / 2480; background: #fff; }
.lector video { width: 100%; height: 100%; object-fit: cover; }
.lector .controles { display: flex; gap: 2rem; align-items: center; }
.lector .redondo { width: 5rem; height: 5rem; border-radius: 50%; background: #555; color: #fff; display: grid; place-items: center; transition: background .15s; }
.lector .redondo:hover { background: var(--magenta); }
.lector .redondo[disabled] { opacity: .3; pointer-events: none; }
.lector .redondo svg { width: 55%; fill: currentColor; }

/* Identidad: bloques de papel magenta y bandas negras */
.ancho { max-width: 108rem; margin: 0 auto; padding-left: 3.6rem; padding-right: 3.6rem; }
.papel { background: var(--magenta) url(img/fondo-medio.webp) center / cover; color: #fff; }
.etiqueta { font-size: var(--medio); font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; color: #fff; margin: 0 0 1.4rem; }
a.etiqueta:hover, .etiqueta a:hover { text-decoration: underline; }
.frase { font-size: min(8.6rem, 13vh); line-height: .98; font-weight: 800; font-style: italic; color: #fff; text-transform: none; }
.entrada { font-size: var(--sub); line-height: 1.25; margin-top: 2rem; max-width: 50rem; }
.heroe { padding-top: 5rem; padding-bottom: 6rem; overflow: hidden; }
.heroe .ancho { display: grid; grid-template-columns: 1.08fr 1fr; gap: 5rem; align-items: center; }
.recorte { margin: 0; transform: rotate(2deg); box-shadow: 1.4rem 1.4rem 0 #000; }
.recorte img, .recorte video { width: 100%; }
.recorte.izquierda { transform: rotate(-2deg); box-shadow: -1.2rem 1.2rem 0 var(--magenta); }
.cabecera-pag { padding: 4.5rem 0 5rem; }
.cabecera-pag .frase { font-size: min(7.2rem, 12vh); }
.manifiesto { background: #000; color: #fff; padding: 6.5rem 0; }
.manifiesto p { font-size: var(--seccion); font-weight: 800; line-height: 1.12; max-width: 90rem; }
.manifiesto em { color: var(--rosa); }
.historia { padding: 7rem 0; overflow: hidden; }
.historia .ancho { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6rem; align-items: center; }
.historia p + p { margin-top: 1.5rem; }
.equipo { background: #000; color: #fff; padding: 7rem 0; }
.equipo h2 { color: #fff; font-size: var(--titulo); margin-bottom: 4rem; }
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.5rem 3.2rem; }
.persona video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.persona h3 { font-size: var(--sub); font-weight: 800; margin: 1.2rem 0 .6rem; }
.persona p { font-size: var(--medio); color: #ccc; }
.persona a { display: inline-block; margin-top: .9rem; color: var(--rosa); font-size: var(--medio); font-weight: 700; }
.persona a:hover { color: #fff; }
.novedad-nueva { padding: 6rem 0; overflow: hidden; }
.novedad-nueva .ancho { display: grid; grid-template-columns: 34rem 1fr; gap: 7rem; align-items: center; }
.libro-suelto { position: relative; width: 100%; display: block; transform: rotate(-3deg); box-shadow: 1.4rem 1.4rem 0 #000; transition: transform .25s; }
.libro-suelto:hover { transform: rotate(-1deg) scale(1.02); }
.libro-suelto img { width: 100%; }
.novedad-nueva .estallido { position: absolute; width: 16rem; left: -6rem; bottom: -1.5rem; transform: rotate(-4deg); }
.novedad-nueva h2 { color: #fff; font-size: min(9rem, 14vh); line-height: .95; font-style: italic; text-transform: none; }
.novedad-nueva p.texto { font-size: var(--sub); line-height: 1.25; margin: 2rem 0; max-width: 50rem; }
.acciones-libro { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.boton.negro { background: #000; color: #fff; }
.boton.negro:hover, .fondo-oscuro .boton:hover { background: #fff; color: var(--magenta); }
.lista-titulo { padding: 5rem 3.6rem 2rem; max-width: 108rem; margin: 0 auto; display: flex; gap: 2rem; align-items: baseline; flex-wrap: wrap; }
#titulo-lista { scroll-margin-top: 2rem; }
.lista-titulo a { color: var(--magenta); font-size: var(--medio); font-weight: 700; }
/* Merchandising: la frase en dos líneas y la foto recortada a la camiseta */
.heroe.merch .ancho { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
.heroe.merch .frase { font-size: min(6.8rem, 11vh); }
.heroe.merch .frase span { display: block; white-space: nowrap; }
.heroe.merch .recorte img { aspect-ratio: 4 / 5; max-height: calc(100vh - 20rem); object-fit: cover; object-position: center 30%; }
.banda-negra { background: #000; padding: 4.5rem 0; }
.banda-negra h1 { color: #fff; }
.curso-heroe .frase { font-size: min(5.8rem, 10vh); line-height: 1.02; }
.curso-info { padding: 6rem 0; }
.curso-info .ancho { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.curso-info .boton { margin: 0; }
.curso-info.fondo-oscuro { background: #000; color: #fff; }

/* Móvil: 1rem = 16 px sobre 393 de ancho */
@media (max-width: 1099px) {
  .menu-fijo { display: none; }
  .hamburguesa { display: flex; }
}
@media (max-width: 760px) {
  :root { --texto: 1rem; --medio: .875rem; --sub: 1.125rem; --seccion: 1.5rem; --titulo: 2.25rem; --mini: .75rem; }
  html { font-size: calc(100vw / 24.5625); }
  .ancho { padding-left: 1.25rem; padding-right: 1.25rem; }
  .frase { font-size: 3rem; }
  .cabecera-pag { padding: 2rem 0 2.5rem; }
  .cabecera-pag .frase { font-size: 2.75rem; }
  .entrada { font-size: 1.125rem; margin-top: 1rem; }
  .heroe { padding-top: 2.5rem; padding-bottom: 3rem; }
  .heroe .ancho, .historia .ancho, .novedad-nueva .ancho { grid-template-columns: 1fr; gap: 2.5rem; }
  .recorte, .libro-suelto { box-shadow: .6rem .6rem 0 #000; }
  .recorte.izquierda { box-shadow: -.6rem .6rem 0 var(--magenta); }
  .manifiesto, .historia, .equipo, .curso-info { padding: 3rem 0; }
  .equipo h2 { margin-bottom: 2rem; }
  .tarjetas { grid-template-columns: 1fr; gap: 2.5rem; }
  .novedad-nueva { padding: 2.5rem 0 3rem; }
  .libro-suelto { width: 70%; }
  .novedad-nueva .estallido { width: 9rem; left: auto; right: -5rem; bottom: 1rem; }
  .novedad-nueva h2 { font-size: 3.5rem; }
  .novedad-nueva p.texto { font-size: 1.125rem; margin: 1rem 0 1.5rem; }
  .lista-titulo { padding: 2.5rem 1.25rem 1rem; }
  .heroe.merch .ancho { grid-template-columns: 1fr; gap: 2.5rem; }
  .heroe.merch .frase { font-size: 3rem; }
  .heroe.merch .frase span { display: inline; white-space: normal; }
  .heroe.merch .recorte img { aspect-ratio: 1; max-height: none; object-position: center 22%; }
  .banda-negra { padding: 2rem 0; }
  .curso-info .ancho { grid-template-columns: 1fr; gap: 1.5rem; }
  .curso-heroe .frase { font-size: 2.25rem; }
  .cabecera { height: 4.5rem; padding: 0 1rem; }

  .cabecera .logo img { width: 6.5rem; }
  .cabecera .acciones { gap: 1.1rem; }
  .icono-carrito { width: 1.8rem; }
  .icono-carrito span { min-width: .9rem; height: .9rem; font-size: .55rem; right: -.2rem; bottom: -.1rem; }
  .hamburguesa { width: 1.6rem; height: 1.15rem; }
  .hamburguesa i { height: .17rem; }
  .menu { width: 13.5rem; padding: 1.5rem 1.5rem; gap: 1.5rem; }
  .menu .cerrar { font-size: 1.75rem; }
  .pie { padding: 2rem 1.25rem 1.5rem; }
  .pie-dentro { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .pie-marca, .pie .boletin { grid-column: 1 / -1; }
  .pie-marca img { width: 3rem; }
  .pie .campo-boletin { margin-top: .5rem; }
  .pie .campo-boletin input, .pie .campo-boletin button { height: 2.5rem; }
  .pie .campo-boletin button { padding: .15rem .9rem 0; }
  .pie .aviso { margin-top: 1.5rem; padding-top: .75rem; }
  .subir { right: 1rem; bottom: 1rem; width: 2.75rem; height: 2.75rem; }
  .subir svg { width: 1.3rem; }
  .paisaje, .contacto { background: #5e0058; }
  .paisaje > video.horizontal { display: none; }
  .paisaje .vertical { display: block; }
  .portada { font-size: 1rem; padding-bottom: 1.5rem; }
  .portada .marca { width: 12rem; margin-bottom: 1.5rem; }
  .portada nav { width: 17.6rem; gap: .75rem; }
  .portada nav a { font-size: 1rem; height: 2.2rem; border-radius: 2rem; }
  .contacto { min-height: calc(100vh - 13rem); padding: 0 1rem 2rem; }
  .paisaje.contacto > video { object-position: top; }
  .boton { padding: .7rem 1.3rem .5rem; }
  .boton.pequeno { font-size: .75rem; padding: .55rem .9rem .4rem; }
  .pagina { padding: 2rem 1.25rem 3rem; }
  .curso-detalle .seccion-mini { font-size: .875rem; }
  .pagina h1 { margin-bottom: 2rem; }
  .legal { padding: 2rem 1.25rem 3rem; }
  .legal h1 { margin-bottom: 1rem; }
  .legal h2 { margin: 1.5rem 0 .5rem; }
  .legal ul { margin: 1.2rem 0; padding-left: 1rem; }
  .nosotros-fotos { gap: .75rem; margin-bottom: 2rem; }
  .nosotros-texto p + p { margin-top: 1.2rem; }
  .autores { padding: 0 1.25rem 2rem; }
  .autores h2 { margin-bottom: 1.5rem; }
  .autor { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
  .autor:nth-of-type(even) video { order: 0; }
  .autor h3 { margin-bottom: .5rem; }
  .novedad { height: 24.5rem; }
  .novedad button { width: 13rem; }
  .novedad .estallido { width: 11.5rem; left: calc(50% - 11.5rem); top: 10.5rem; }
  .cabecera-seccion { padding: 2rem 1.25rem 0; }
  .filtros { padding: 0 1.25rem 1.5rem; gap: .5rem; }
  .filtros[hidden] { display: none; }
.filtros button { padding: .5rem .9rem .35rem; }
  .rejilla { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; padding: 0 1.25rem 3rem; }
  .tarjeta .nombre { margin-top: .6rem; }
  .merch-portada { padding: 2rem 1.25rem; gap: .5rem; aspect-ratio: 393 / 560; background-position: 58% center; }
  .merch-nav div { padding: .8rem 1.25rem .55rem; gap: 1.5rem; }
  .merch-seccion { padding-top: 2.5rem; }
  .foto-ancha { aspect-ratio: 393 / 300; }
  .merch-seccion h2 { padding: 0 1.25rem 1.25rem; }
  dialog { padding: 1.75rem 1.25rem; border-radius: 1rem; }
  dialog .cerrar { right: .75rem; top: .5rem; font-size: 1.75rem; }
  .ficha { grid-template-columns: 7.5rem 1fr; gap: 1.25rem; }
  .ficha p { margin-top: 1rem; }
  .ficha .botones { gap: .8rem; }
  .detalle { width: auto; }
  .colores button { width: 1.6rem; height: 1.6rem; }
  .dos-columnas { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.25rem; }
  .lateral { position: static; font-size: 1.125rem; padding: 1.5rem; border-radius: 1rem; }
  .lateral p + p { margin-top: 1rem; }
  .lateral input { margin-top: 1.25rem; height: 2.5rem; }
  .dos-columnas h1 { margin-bottom: 2rem; }
  .noticia { margin-bottom: 2.5rem; }
  .noticia .fecha, .noticia .cuerpo { margin-bottom: 1.2rem; }
  .noticia .fotos { gap: .6rem; }
  .compartir { margin-top: .75rem; }
  .compartir svg { width: 1.25rem; height: 1.25rem; }
  .empezar { margin: 1.25rem 0 1rem; }
  .tema { gap: .75rem; }
  .tema .mensajes { width: 1.5rem; }
  .tema .mensajes svg { width: 1.3rem; }
  .tema .mensajes i { width: .9rem; height: .9rem; font-size: .5rem; right: -.2rem; bottom: -.2rem; }
  .mensaje { margin-bottom: 2rem; }
  .autoria { grid-template-columns: 3rem 1fr auto; column-gap: .5rem; margin-bottom: 1rem; }
  .autoria img { width: 3rem; height: 3rem; }
  .autoria span { font-size: .625rem; }
  .pagina.cursos { padding: 2rem 1.25rem; }
  .pagina.cursos h1 { margin-bottom: 1.5rem; }
  .cursos-lista { grid-template-columns: 1fr; gap: 1.5rem; }
  .curso img { border-radius: 1rem; margin-bottom: .75rem; }
  .curso-detalle h1 { margin-bottom: 1.25rem; }
  .curso-rejilla { grid-template-columns: 1fr; gap: 1.5rem; }
  .curso-datos { gap: .9rem 1rem; }
  .curso-datos + .boton { margin-top: 1.5rem; }
  .carrito-lleno { grid-template-columns: 1fr; padding: 0; gap: 1.5rem; }
  .tabla { font-size: .8125rem; }
  .tabla td { padding: .7rem .15rem .5rem; }
  .tabla input { width: 1.8rem; height: 1.4rem; font-size: .75rem; }
  .tabla .quitar svg { width: 1rem; }
  .tabla .articulo { gap: .6rem; }
  .tabla .articulo img { width: 2.75rem; height: 2.75rem; }
  .cabecera-pag .frase.larga { font-size: 2.25rem; }
  .resumen { padding: 1.5rem; border-radius: 1rem; }
  .resumen div { margin-bottom: .75rem; }
  .resumen .total { margin-top: 1rem; }
  .resumen .boton { width: 9rem; margin-top: 1rem; }
  .volver-a { gap: 3rem; margin-top: 2rem; }
  .vacio .grande { font-size: 5rem; }
  .vacio img { width: 15rem; }
  .vacio .demo { position: static; width: auto; margin: 1rem 0; display: block; }
  .vacio .bola { width: 126vw; bottom: 4.85rem; }
  main:has(.vacio) { overflow-x: clip; }  /* la planta es más ancha que la pantalla */
  .vacio .demo video { width: 2.5rem; }
  dialog.pedido[open] { grid-template-columns: 1fr; width: 92vw; gap: 1.5rem; padding-bottom: 1.5rem; }
  .campos { grid-template-columns: 8.5rem 1fr; gap: .6rem .25rem; }
  .campos input { height: 1.25rem; }
  .pago .campo, .pago small { margin-left: 3.5rem; }
  .pago small { font-size: .625rem; }
  .pago .campo input { height: 1.25rem; }
  .gracias { width: auto; }
  .error { padding: 2rem 1rem; }
  .error strong { font-size: 6rem; }
  .error img { width: 19rem; margin-top: -1rem; }
  .lector { gap: 1.5rem; padding: 1rem; }
  .lector .pliego { width: 100%; }
  .lector .controles { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 1rem 1.5rem; }
  .lector #siguiente { grid-area: 1 / 2; }
  .lector #sonido { grid-area: 2 / 1 / 2 / 3; justify-self: center; }
  .lector .controles a { grid-area: 3 / 1 / 3 / 3; justify-self: center; }
  .lector .redondo { width: 3rem; height: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .vacio .bola { display: none; }  /* la planta rodante */
}

/* link back to the author portfolio (home screen + footer) */
.autor-portfolio { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3; font-size: 1.2rem; letter-spacing: .04em; color: #fff; opacity: .75; text-decoration: none; white-space: nowrap; }
.autor-portfolio:hover { opacity: 1; text-decoration: underline; }
.pie .aviso a { color: inherit; text-decoration: underline; }
