/* Letracuentos · web pública, zona de recursos y administración */
:root {
  --rojo: #e2462f;
  --rojo-osc: #b8321e;
  --amarillo: #f6b93b;
  --verde: #1f9e89;
  --azul: #3a7bd5;
  --morado: #7a5cc4;
  --noche: #2b2240;
  --papel: #fff8ec;
  --crema: #fbefd9;
  --tinta: #2b2240;
  --tinta-2: #6b6380;
  --linea: #ecdcc0;
  --sombra: 0 2px 0 rgba(43, 34, 64, .05), 0 12px 30px -14px rgba(43, 34, 64, .3);
  --r: 20px;
  --titulos: "Fredoka", "Andika", system-ui, sans-serif;
  --texto: "Andika", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--texto); font-size: 18px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--rojo-osc); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; color: var(--noche); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 580px; }
.narrow-lg { max-width: 820px; }
.muted { color: var(--tinta-2); }
.small { font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amarillo); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; border-radius: 6px; }
.eyebrow { font-weight: 700; color: var(--rojo); text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; margin-bottom: .6em; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 1rem/1 var(--texto); padding: .8em 1.4em; border-radius: 999px;
  background: var(--rojo); color: #fff; text-decoration: none; border: 2px solid var(--rojo); cursor: pointer; box-shadow: 0 3px 0 var(--rojo-osc); transition: transform .08s, box-shadow .08s, background .15s; text-align: center; }
.btn:hover { background: var(--rojo-osc); border-color: var(--rojo-osc); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--rojo-osc); }
.btn-lg { font-size: 1.1rem; padding: .95em 1.7em; }
.btn-sm { font-size: .86rem; padding: .55em 1em; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--noche); border-color: currentColor; box-shadow: none; }
.btn-ghost:hover { background: var(--crema); color: var(--noche); border-color: var(--noche); }
.btn-amarillo { background: var(--amarillo); border-color: var(--amarillo); color: var(--noche); box-shadow: 0 3px 0 #c98f1a; }
.btn-amarillo:hover { background: #ffc955; border-color: #ffc955; }
.btn-danger { color: var(--rojo-osc); }
.btn-danger:hover { background: #fdeceb; color: #8f2112; }

/* cabecera */
.nav { background: rgba(255, 248, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 5; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { font: 700 1.8rem/1 var(--titulos); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; }
.logo span { display: inline-block; transition: transform .2s; }
.logo:hover span:nth-child(odd) { transform: translateY(-3px) rotate(-6deg); }
.logo .l0 { color: var(--rojo); } .logo .l1 { color: var(--amarillo); } .logo .l2 { color: var(--verde); } .logo .l3 { color: var(--azul); } .logo .l4 { color: var(--morado); }
.nav nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
.nav nav > a:not(.btn) { color: var(--tinta); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav nav > a:not(.btn):hover, .nav nav > a.on { border-bottom-color: var(--amarillo); }

.flash { margin: 18px 0 0; padding: 12px 18px; border-radius: 12px; font-weight: 700; background: #e2f5f1; color: #0f5c50; border: 1px solid #b5e3da; }
.flash-error { background: #fdeceb; color: #8f2112; border-color: #f6c3bd; }

/* portada */
.hero { background: linear-gradient(180deg, #7fc8f5 0%, #b9e3fb 55%, #e3f5ff 100%); overflow: hidden; position: relative; padding-bottom: 150px; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 170px; z-index: 1;
  background: radial-gradient(60% 120px at 20% 100%, #7cc443 98%, transparent 100%), radial-gradient(55% 110px at 80% 100%, #8fd14f 98%, transparent 100%), linear-gradient(transparent 60%, #7cc443 60%); }
.hero-cielo { position: absolute; inset: 0; pointer-events: none; }
.nube { position: absolute; background: #fff; border-radius: 999px; width: 150px; height: 46px; opacity: .9; animation: nube 60s linear infinite; }
.nube::before, .nube::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.nube::before { width: 70px; height: 70px; left: 22px; top: -34px; }
.nube::after { width: 54px; height: 54px; left: 70px; top: -22px; }
.n1 { top: 12%; left: -10%; } .n2 { top: 30%; left: 40%; transform: scale(.7); animation-duration: 80s; animation-delay: -30s; } .n3 { top: 8%; left: 70%; transform: scale(1.2); animation-duration: 90s; animation-delay: -60s; }
@keyframes nube { from { translate: -20vw 0; } to { translate: 120vw 0; } }
.hero-cielo .vuela { position: absolute; font: 400 2.6rem/1 "Playwrite ES", cursive; color: #fff; text-shadow: 0 3px 0 rgba(43, 34, 64, .15); animation: vuela 6s ease-in-out infinite; }
.l1 { left: 52%; top: 14%; color: var(--rojo) !important; } .l2 { left: 60%; top: 58%; animation-delay: -2s !important; color: var(--morado) !important; } .l3 { left: 92%; top: 30%; animation-delay: -4s !important; }
.l4 { left: 6%; top: 6%; animation-delay: -1s !important; color: var(--amarillo) !important; } .l5 { left: 46%; top: 76%; animation-delay: -3s !important; } .l6 { left: 85%; top: 70%; animation-delay: -5s !important; color: var(--verde) !important; }
@keyframes vuela { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 20px; position: relative; z-index: 2; }
.hero h1 { color: var(--noche); font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
.manus { display: block; font: 400 .78em/1.35 "Playwrite ES", cursive; color: var(--rojo); margin-top: .1em; }
.hero .eyebrow { color: var(--noche); background: rgba(255, 255, 255, .7); display: inline-block; padding: .35em .9em; border-radius: 999px; }
.lead { font-size: 1.22rem; color: #2f3d5c; max-width: 32em; }
.lead b { color: var(--rojo-osc); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .75); }
.hero-art { justify-self: center; position: relative; width: 100%; max-width: 360px; }
.villano { width: 100%; height: auto; filter: drop-shadow(0 22px 18px rgba(43, 34, 64, .25)); animation: flota 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flota { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
.bocadillo { position: absolute; top: -6%; left: -38%; z-index: 2; background: #fff; border: 3px solid var(--noche); border-radius: 26px; padding: 12px 18px; font: 700 1.05rem/1.25 var(--titulos); color: var(--morado); transform: rotate(-5deg); box-shadow: 0 6px 0 rgba(43, 34, 64, .12); animation: pop .6s .6s both cubic-bezier(.3, 1.6, .5, 1); }
.bocadillo::after { content: ""; position: absolute; right: 26px; bottom: -18px; border: 10px solid transparent; border-top: 16px solid var(--noche); }
@keyframes pop { from { opacity: 0; transform: scale(.3) rotate(-5deg); } to { opacity: 1; transform: scale(1) rotate(-5deg); } }
.desfile { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 28px); padding: 0 16px; pointer-events: none; }
.desfile img { height: clamp(70px, 11vw, 150px); width: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .18)); animation: salta 2.8s ease-in-out infinite; }
.desfile img:nth-child(2) { animation-delay: -.4s; } .desfile img:nth-child(3) { animation-delay: -.9s; } .desfile img:nth-child(4) { animation-delay: -1.3s; } .desfile img:nth-child(5) { animation-delay: -1.8s; } .desfile img:nth-child(6) { animation-delay: -2.2s; }
@keyframes salta { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* aparecer al hacer scroll */
.js .reveal, .js .abc li { opacity: 0; transform: translateY(28px) rotate(var(--rot, 0deg)); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.2); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.visto, .js .abc li.visto { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
@media (prefers-reduced-motion: reduce) {
  .nube, .vuela, .villano, .desfile img, .bocadillo, .cinta { animation: none !important; }
  .js .reveal, .js .abc li { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* método */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story { font-size: 1.15rem; }
.lamina-marco { margin: 0; background: #fff; padding: 12px 12px 8px; border-radius: 10px; box-shadow: var(--sombra), 0 0 0 1px var(--linea); }
.lamina-marco img { display: block; border-radius: 4px; width: 100%; }
.lamina-marco figcaption { font: 400 .9rem "Playwrite ES", cursive; color: var(--tinta-2); text-align: center; padding-top: 8px; }
.pillars { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillars li { background: #fff; border-radius: var(--r); padding: 22px 24px 24px; box-shadow: var(--sombra); position: relative; border-top: 6px solid var(--amarillo); }
.pillars li:nth-child(2) { border-color: var(--verde); }
.pillars li:nth-child(3) { border-color: var(--rojo); }
.pillars img { height: 96px; width: auto; display: block; margin: -62px 0 8px auto; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .12)); }
.pillars b { display: block; font-family: var(--titulos); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }

/* abecedario */
.sec-abc { background: var(--crema); }
.abc-tip { margin: 0; }
.abc { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.carta { all: unset; box-sizing: border-box; display: block; width: 100%; aspect-ratio: 3 / 4; perspective: 800px; cursor: pointer; position: relative; border-radius: 18px; }
.carta:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.cara { position: absolute; inset: 0; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 10px; backface-visibility: hidden; transition: transform .6s cubic-bezier(.3, 1.3, .5, 1); box-shadow: 0 4px 0 var(--linea), 0 10px 20px -12px rgba(43, 34, 64, .3); }
.frente img { max-width: 100%; max-height: 74%; object-fit: contain; transition: transform .25s; }
.frente b { position: absolute; left: 10px; top: 6px; font: 400 1.3rem/1.4 "Playwrite ES", cursive; color: var(--rojo); }
.abc li:nth-child(3n+2) .frente b { color: var(--azul); } .abc li:nth-child(3n) .frente b { color: var(--verde); }
.dorso { transform: rotateY(180deg); background: #fff8e1; }
.dorso img { max-width: 86%; max-height: 60%; object-fit: contain; }
.carta.girada .frente { transform: rotateY(-180deg); }
.carta.girada .dorso { transform: rotateY(0); }
@media (hover: hover) { .carta:hover .frente img { transform: scale(1.08) rotate(-3deg); } }
.abc li { position: relative; }
.frente img { animation: balanceo 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.37s); transform-origin: 50% 100%; }
@keyframes balanceo { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; translate: 0 -4px; } }
.son { position: absolute; left: 50%; bottom: calc(100% - 14px); z-index: 3; translate: -50% 0; white-space: nowrap; background: #fff; color: var(--noche); font: 600 1rem/1.2 var(--titulos); padding: 8px 12px; border-radius: 16px; box-shadow: 0 6px 16px -6px rgba(43, 34, 64, .4); opacity: 0; scale: .4; pointer-events: none; }
.son::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; }
.sonando .son { animation: dice 1.9s cubic-bezier(.3, 1.4, .5, 1) both; }
.sonando .carta { animation: brinca .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dice { 0% { opacity: 0; scale: .4; } 15%, 80% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .9; translate: -50% -8px; } }
@keyframes brinca { 40% { transform: translateY(-14px) scale(1.04); } }

/* libro que se abre con el scroll */
.libro-sec { height: 520vh; position: relative; background: linear-gradient(var(--crema), var(--papel) 30%, var(--papel) 70%, #f3e6cf); }
.libro-escena { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; perspective: 2200px; }
.libro-titulo { position: absolute; top: clamp(76px, 11vh, 110px); left: 0; right: 0; text-align: center; margin: 0; opacity: calc(1 - var(--sale, 0)); }
.libro-titulo .eyebrow { display: block; }
.libro-h { font: 600 clamp(1.4rem, 3.2vw, 2.2rem)/1.2 var(--titulos); color: var(--noche); }
.libro { --w: min(90vw, 980px, 150vh); position: relative; width: var(--w); aspect-ratio: 1520 / 640; transform-style: preserve-3d;
  transform: translateX(calc((1 - var(--abre, 0)) * -25%)) translateY(calc((1 - var(--entra, 0)) * 18vh + var(--sale, 0) * 4vh)) scale(calc(.62 + var(--entra, 0) * .38 - var(--sale, 0) * .12)) rotateX(calc((1 - var(--entra, 0)) * 38deg + 6deg)) rotateZ(calc((1 - var(--entra, 0)) * -8deg)); }
.hoja, .hoja-base { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; }
.hoja { will-change: transform; }
.pag { position: absolute; inset: 0; backface-visibility: hidden; background: #fff; overflow: hidden; border-radius: 0 10px 10px 0; box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, .25), 0 18px 40px -18px rgba(43, 34, 64, .45); }
.pag img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pag-dr { transform: rotateY(180deg); border-radius: 10px 0 0 10px; box-shadow: inset -14px 0 18px -14px rgba(0, 0, 0, .25), 0 18px 40px -18px rgba(43, 34, 64, .45); }
.pag-lamina img { object-fit: cover; }
.tapa-libro { border-radius: 4px 14px 14px 4px; box-shadow: inset 10px 0 0 rgba(0, 0, 0, .06), 0 30px 50px -20px rgba(43, 34, 64, .55); }
.hoja-base { background: #fff; border-radius: 0 10px 10px 0; box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, .25), 0 18px 40px -18px rgba(43, 34, 64, .45); }
.fin { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 6%; background: radial-gradient(circle at 50% 40%, #fff8e1, #fff 70%); }
.fin .manus { font: 400 clamp(.9rem, 2.2vw, 1.6rem)/1.5 "Playwrite ES", cursive; color: var(--rojo); margin: 0 0 6px; }
.fin .small { margin: 0; color: var(--tinta-2); font-size: clamp(.7rem, 1.3vw, .95rem); }
.fin img { position: absolute; bottom: 4%; height: 38%; width: auto; }
.fin-p1 { left: 6%; } .fin-p2 { right: 6%; }
.libro-salen { position: absolute; inset: 0; pointer-events: none; }
.libro-salen img { position: absolute; left: 50%; top: 50%; height: clamp(70px, 14vh, 150px); width: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .18));
  opacity: var(--sale, 0); transform: translate(-50%, -50%) translate(calc(var(--x) * var(--sale, 0)), calc(var(--y) * var(--sale, 0))) scale(calc(.3 + var(--sale, 0) * .7)) rotate(calc(var(--r) * var(--sale, 0))); }
.libro-salen img:nth-child(1) { --x: -40vw; --y: -30vh; --r: -12deg; } .libro-salen img:nth-child(2) { --x: 38vw; --y: -32vh; --r: 10deg; }
.libro-salen img:nth-child(3) { --x: -44vw; --y: 6vh; --r: 8deg; } .libro-salen img:nth-child(4) { --x: 43vw; --y: 8vh; --r: -8deg; }
.libro-salen img:nth-child(5) { --x: -26vw; --y: 34vh; --r: -6deg; } .libro-salen img:nth-child(6) { --x: 27vw; --y: 34vh; --r: 6deg; }
.libro-pista { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font-size: 1.6rem; color: var(--tinta-2); opacity: calc(1 - var(--abre, 0)); animation: pista 1.6s ease-in-out infinite; }
@keyframes pista { 50% { transform: translateY(8px); } }
.js .reveal.pop { transform: translateY(40px) scale(.85) rotate(-3deg); }
.js .reveal.pop.visto { transform: none; }
@media (max-width: 700px) { .libro { --w: 96vw; } .libro-sec { height: 420vh; } }
@media (prefers-reduced-motion: reduce) { .contacto-p, .frente img, .libro-pista, .sonando .son, .sonando .carta { animation: none !important; } .sonando .son { opacity: 1; scale: 1; } }

/* carrusel de láminas */
.carrusel { overflow: hidden; padding: 40px 0; background: var(--noche); }
.cinta { display: flex; gap: 18px; width: max-content; animation: cinta 70s linear infinite; }
.carrusel:hover .cinta { animation-play-state: paused; }
.cinta img { height: clamp(150px, 22vw, 240px); width: auto; border-radius: 14px; border: 5px solid #fff; transform: rotate(-1.5deg); }
.cinta img:nth-child(even) { transform: rotate(1.5deg); }
@keyframes cinta { to { transform: translateX(-50%); } }

.sec { padding: 72px 0; }
.sec-top { padding-top: 40px; }
.sec-tint { background: var(--crema); }
.sec-noche { background: var(--noche); color: #fff; }
.sec-noche h2 { color: #fff; }
.sec-noche .eyebrow { color: var(--amarillo); }

.sub { margin-top: 48px; }
.secuencia { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.secuencia li { background: #fff; border: 2px solid var(--linea); border-radius: 16px; padding: 12px 18px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 76px; }
.secuencia li span { font-size: .75rem; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.secuencia li b { font: 700 1.5rem/1.2 var(--titulos); color: var(--rojo); letter-spacing: .06em; }
.secuencia li:nth-child(2) b { color: var(--verde); } .secuencia li:nth-child(3) b { color: var(--azul); } .secuencia li:nth-child(4) b { color: var(--morado); } .secuencia li:nth-child(5) b { color: #c98f1a; }
.secuencia li:last-child b { font-size: 1.05rem; letter-spacing: 0; color: var(--noche); }

/* materiales */
.shelf { margin-top: 36px; }
.shelf h3 { margin-bottom: .2em; }
.cuadernos { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 20px; }
.cuadernos-lg { grid-template-columns: repeat(auto-fill, minmax(170px, 200px)); }
.cuaderno { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cuaderno .btn { margin-top: 6px; }
.tapa { --c: var(--rojo); width: 100%; aspect-ratio: 3 / 4; border-radius: 6px 14px 14px 6px; background: var(--c); color: #fff; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 14px 14px 26px; margin-bottom: 8px;
  box-shadow: var(--sombra), inset 10px 0 0 rgba(0, 0, 0, .14); transition: transform .15s; overflow: hidden; }
.tapa::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(to bottom, #fff9 0 6px, transparent 6px 12px); border-radius: 2px; }
.tapa::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.tapa small { font: 600 .82rem/1 var(--titulos); opacity: .9; letter-spacing: .03em; }
.tapa-l { font: 700 1.6rem/1.15 var(--titulos); letter-spacing: .02em; position: relative; z-index: 1; }
.cuadernos-lg .tapa-l { font-size: 2.2rem; }
.cuaderno:hover .tapa { transform: translateY(-4px) rotate(-1.2deg); }
.c0 .tapa { --c: var(--rojo); } .c1 .tapa { --c: var(--verde); } .c2 .tapa { --c: var(--azul); } .c3 .tapa { --c: var(--morado); } .c4 .tapa { --c: #d99a1c; }
.isbn { color: var(--tinta-2); font-size: .78rem; }
.mat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.mat-card { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--sombra); }
.mat-card ul { margin: 0; padding-left: 1.1em; font-size: .96rem; }
.mat-card li { margin-bottom: .3em; }
.mat-card:nth-child(1) { border-top: 6px solid var(--rojo); } .mat-card:nth-child(2) { border-top: 6px solid var(--verde); } .mat-card:nth-child(3) { border-top: 6px solid var(--azul); }
.folleto { margin: 24px 0 0; font-weight: 700; }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.video { margin: 0; }
.video-play, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); overflow: hidden; background: var(--noche); position: relative; padding: 0; cursor: pointer; box-shadow: var(--sombra); }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .15s; }
.video-play:hover img { opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--rojo); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.play::after { content: ""; position: absolute; left: 29px; top: 22px; border: 14px solid transparent; border-left: 22px solid #fff; border-right: 0; }
.video figcaption { margin-top: 10px; color: var(--tinta-2); }
.video figcaption b { color: var(--noche); display: block; }

.acceso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pasos { padding-left: 1.3em; margin: 0; }
.pasos li { margin-bottom: .5em; padding-left: .3em; }
.pasos li::marker { font: 700 1.1rem var(--titulos); color: var(--rojo); }
.cats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.cats li { padding-left: 14px; border-left: 4px solid var(--c, var(--rojo)); }
.cats small { display: block; color: var(--tinta-2); font-size: .85rem; }
.cat-rojo { --c: var(--rojo); } .cat-verde { --c: var(--verde); } .cat-azul { --c: var(--azul); } .cat-morado { --c: var(--morado); } .cat-amarillo { --c: var(--amarillo); }

/* tarjetas de recursos */
.recs { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.rec { --c: var(--rojo); }
.rec-verde { --c: var(--verde); } .rec-azul { --c: var(--azul); } .rec-morado { --c: var(--morado); } .rec-amarillo { --c: #d99a1c; }
.rec-in { display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--tinta); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--sombra); transition: transform .12s; border: 1px solid var(--linea); }
.rec-in:hover { transform: translateY(-4px); }
.rec-img { aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--c) 14%, #fff); display: grid; place-items: center; position: relative; overflow: hidden; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-fmt { position: absolute; left: 10px; top: 10px; background: var(--c); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; }
.rec-muestra { position: absolute; right: 10px; top: 10px; background: var(--amarillo); color: var(--noche); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.rec-txt { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.rec-txt small { color: var(--c); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.rec-txt b { font: 600 1.1rem/1.25 var(--titulos); }
.rec-desc { color: var(--tinta-2); font-size: .9rem; }
.rec-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--c, var(--rojo)); position: relative; display: block; }
.rec-ico::after { content: ""; position: absolute; inset: 14px; background: #fff; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-pdf, .ico-documento { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h8l6 6v14H6z M14 2v6h6' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 13h8M9 17h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ico-audio { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V5l11-2v13' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E"); }
.ico-video { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z'/%3E%3C/svg%3E"); }
.ico-imagen { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M3 17l5-5 4 4 3-3 6 6z'/%3E%3Ccircle cx='16' cy='9' r='2'/%3E%3C/svg%3E"); }
.ico-zip { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16v13H4z M4 7l2-3h12l2 3' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M9 11h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ico-enlace { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1 M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sec-noche .rec-in { border-color: transparent; }
.vacio { background: rgba(255, 255, 255, .07); border: 2px dashed rgba(255, 255, 255, .25); border-radius: var(--r); padding: 28px; text-align: center; margin-top: 20px; }
.sec:not(.sec-noche) .vacio { background: #fff; border-color: var(--linea); color: var(--tinta-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chips a { text-decoration: none; color: var(--tinta); font-weight: 700; font-size: .92rem; padding: .45em 1em; border-radius: 999px; background: #fff; border: 2px solid var(--linea); }
.chips a:hover { border-color: var(--noche); }
.chips a.on { background: var(--noche); color: #fff; border-color: var(--noche); }
.chips-sm a { font-size: .82rem; padding: .35em .8em; }

.candado { margin-top: 36px; background: var(--noche); color: #fff; border-radius: var(--r); padding: 26px 30px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.candado h2 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; }
.candado p { margin: 0; color: #e6e0f5; }
.candado > div { flex: 1 1 280px; }
.candado-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--amarillo); position: relative; flex: none; }
.candado-ico::after { content: ""; position: absolute; inset: 12px; background: var(--noche); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E"); }

/* ficha de un recurso */
.ficha-rec { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; margin-top: 12px; }
.visor { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); min-height: 260px; display: grid; place-items: center; gap: 18px; padding: 0; }
.visor iframe { width: 100%; height: min(78vh, 760px); border: 0; display: block; }
.visor-video iframe, .visor video { height: auto; aspect-ratio: 16 / 9; width: 100%; background: #000; display: block; }
.visor > img { width: 100%; display: block; }
.visor-audio { padding: 40px 24px; }
.visor-audio audio { width: min(100%, 420px); }
.ficha-txt h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.desc { color: var(--tinta-2); margin-bottom: 20px; }
.acciones-rec { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acciones-rec p { flex-basis: 100%; margin: 4px 0 0; overflow-wrap: anywhere; }
.aviso { margin-top: 24px; background: var(--crema); border-radius: 14px; padding: 16px 20px; border-left: 5px solid var(--amarillo); }
.aviso p { margin: 4px 0 0; font-size: .95rem; }

/* pie */
.foot { border-top: 1px solid var(--linea); padding: 28px 0; font-size: .92rem; color: var(--tinta-2); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* paneles y formularios */
.panel { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 28px; box-shadow: var(--sombra); min-width: 0; color: var(--tinta); }
.panel + .panel, .admin-grid + .panel { margin-top: 22px; }
.panel-error { text-align: center; }
.libro-mini { display: block; width: 72px; height: 56px; margin: 0 auto 14px; background: var(--rojo); border-radius: 6px; position: relative; box-shadow: inset 36px 0 0 var(--rojo-osc); }
.libro-mini::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 1.8rem var(--titulos); }
.form { display: grid; gap: 10px; }
.form label { font-weight: 700; font-size: .95rem; }
input:not([type]), input[type=tel], input[type=email], input[type=text], input[type=search], input[type=url], input[type=number], textarea, select {
  font: inherit; font-size: 1rem; width: 100%; padding: .7em .9em; border: 2px solid var(--linea); border-radius: 12px; background: #fff; color: var(--tinta); }
input[type=file] { font: inherit; font-size: .92rem; max-width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--rojo); outline: none; box-shadow: 0 0 0 4px rgba(226, 70, 47, .15); }
textarea { resize: vertical; min-height: 5em; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--rojo); flex: none; margin-top: 3px; }
.check-muestra { background: #fff6dd; border: 2px solid #f8dd9b; border-radius: 12px; padding: 12px 14px; }
.hint { font-size: .86rem; color: var(--tinta-2); margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 > div { display: grid; gap: 6px; min-width: 0; align-content: start; }
fieldset.fuente { border: 2px dashed var(--linea); border-radius: 14px; padding: 8px 16px 16px; margin: 6px 0; display: grid; gap: 8px; min-width: 0; }
fieldset.fuente legend { font-weight: 700; padding: 0 6px; }
.actual { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.mini-actual { border-radius: 8px; border: 1px solid var(--linea); }

.crumbs { font-size: .9rem; color: var(--tinta-2); margin-bottom: 8px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.head-row h1, .head-row h2 { margin: 0; }
.lead-sm { color: var(--tinta-2); max-width: 44em; margin-top: 12px; }
.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 18px; }
.filtros input { flex: 1 1 200px; width: auto; }
.filtros select { width: auto; }
.filtros-inline { margin: 0; flex: 1 1 420px; justify-content: flex-end; flex-wrap: nowrap; }
.filtros-inline input { flex: 1 1 140px; min-width: 0; }

/* administración */
.admin h2 { font-size: 1.4rem; }
.tabs { display: inline-flex; background: var(--crema); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 22px; }
.tabs a { text-decoration: none; color: var(--tinta); font-weight: 700; font-size: .95rem; padding: .5em 1.2em; border-radius: 999px; }
.tabs a.on { background: #fff; color: var(--rojo-osc); box-shadow: 0 1px 4px rgba(43, 34, 64, .15); }
.stats { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.stats div { background: var(--crema); border-radius: 14px; padding: 10px 16px; min-width: 96px; }
.stats dt { font-size: .76rem; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: 0; font: 700 1.6rem/1.1 var(--titulos); color: var(--noche); }
.admin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 18px; align-items: start; }
.admin-grid-rec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.admin-grid > .panel { margin-top: 0; }
.admins { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.admins li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--linea); }
.admins li span { min-width: 0; overflow-wrap: anywhere; }
.admins small, .tabla small { display: block; color: var(--tinta-2); font-size: .8rem; }
.admins li.off b { text-decoration: line-through; color: var(--tinta-2); }
.tag { background: var(--amarillo); color: var(--noche); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.tabla-wrap { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tabla th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tinta-2); padding: 8px 10px; border-bottom: 2px solid var(--linea); }
.tabla td { padding: 10px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla tr.off td { color: var(--tinta-2); }
.estado { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.estado.si { background: #e2f5f1; color: #0f5c50; }
.estado.no { background: #efecf3; color: var(--tinta-2); }
.estado.pub { background: #fff1cc; color: #7a5208; }
.acciones { white-space: nowrap; text-align: right; }
.acciones form { display: inline; }
.registro { list-style: none; padding: 0; margin: 0; font-size: .92rem; display: grid; gap: 6px; }
.registro time { color: var(--tinta-2); font-variant-numeric: tabular-nums; margin-right: 6px; }
.biblio { list-style: none; padding: 0; margin: 16px 0 0; }
.biblio li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 0; border-top: 1px solid var(--linea); align-items: start; }
.biblio li.off .biblio-txt b { color: var(--tinta-2); }
.biblio-fmt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--crema); border-radius: 8px; padding: 6px 8px; min-width: 64px; text-align: center; }
.biblio-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.biblio-txt a { color: var(--noche); text-decoration: none; overflow-wrap: anywhere; }
.biblio-txt a:hover { text-decoration: underline; }
.biblio-txt small { color: var(--tinta-2); font-size: .8rem; }
.biblio .acciones { grid-column: 2; text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; }

/* método: cita y llamada */
.cita { margin: 24px 0 0; padding: 14px 20px; border-left: 5px solid var(--amarillo); background: #fff; border-radius: 0 14px 14px 0; font: 400 1.02rem/1.6 "Playwrite ES", cursive; color: var(--noche); }
.cita cite { display: block; font: 700 .85rem var(--titulos); color: var(--tinta-2); margin-top: 4px; font-style: normal; }
.cta-linea { text-align: center; margin: 44px 0 0; }

/* los 12 cuentos */
.sec-cuentos { background: linear-gradient(180deg, var(--papel), #f3ecff); }
.cuentos { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 46px 22px; }
.cuento { background: #fff; border-radius: var(--r); padding: 54px 20px 18px; position: relative; box-shadow: 0 4px 0 var(--linea), 0 14px 30px -18px rgba(43, 34, 64, .4); transition: transform .3s; }
.cuento img { position: absolute; top: -40px; right: 14px; height: 90px; width: auto; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .12)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cuento h3 { font-size: 1.12rem; margin: 0 0 6px; padding-right: 70px; }
.cuento p { margin: 0; font-size: .95rem; color: var(--tinta-2); }
.cuento-l { display: flex; gap: 6px; margin-top: 12px !important; flex-wrap: wrap; }
.cuento-l span { font: 400 1.05rem/1 "Playwrite ES", cursive; color: #fff; background: var(--morado); border-radius: 10px; padding: 8px 10px 6px; min-width: 2.2em; text-align: center; }
.cuento:nth-child(4n+2) .cuento-l span { background: var(--rojo); } .cuento:nth-child(4n+3) .cuento-l span { background: var(--verde); } .cuento:nth-child(4n) .cuento-l span { background: var(--azul); }
@media (hover: hover) { .cuento:hover { transform: translateY(-4px) rotate(0) !important; } .cuento:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.08); } }

/* fundamentos y proceso */
.fundamentos { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.fundamentos li { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--sombra); border-top: 6px solid var(--c, var(--rojo)); font-size: .97rem; color: var(--tinta-2); }
.fundamentos b { display: block; font: 600 1.15rem/1.25 var(--titulos); color: var(--noche); margin: 6px 0 6px; }
.f-ico { font-size: 1.8rem; line-height: 1; }
.f-rojo { --c: var(--rojo); } .f-azul { --c: var(--azul); } .f-verde { --c: var(--verde); } .f-morado { --c: var(--morado); } .f-amarillo { --c: var(--amarillo); }
.proceso { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: paso; }
.proceso li { counter-increment: paso; position: relative; background: var(--crema); border-radius: 16px; padding: 46px 14px 16px; font-size: .9rem; color: var(--tinta-2); }
.proceso li::before { content: counter(paso); position: absolute; top: 12px; left: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rojo); color: #fff; font: 700 .95rem var(--titulos); }
.proceso li:nth-child(even)::before { background: var(--azul); }
.proceso b { display: block; font: 600 1.02rem var(--titulos); color: var(--noche); margin-bottom: 4px; }

/* contacto */
.sec-contacto { background: linear-gradient(180deg, #e9f6ff, var(--papel)); }
.contacto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contacto-txt { position: relative; }
.contacto-p { display: block; width: min(240px, 60%); height: auto; margin: 20px 0 0; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .15)); animation: salta 3s ease-in-out infinite; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .92rem; min-width: 0; }
.campo-ancho { grid-column: 1 / -1; }
.campo input, .campo select, .campo textarea { width: 100%; font-weight: 400; }
.campo [aria-invalid=true], .check [aria-invalid=true] { border-color: var(--rojo); }
.campo-err { color: #b3261e; font-size: .84rem; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; flex-wrap: wrap; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rojo); flex: none; }
.check span { flex: 1; min-width: 0; }
.check .campo-err { flex-basis: 100%; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-contacto { position: relative; }
.form-contacto select:disabled { opacity: .6; }
.texto-legal { max-width: 820px; }
.tabla-legal { margin: 18px 0 24px; background: #fff; border-radius: 12px; }
.tabla-legal th { width: 150px; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--noche); vertical-align: top; }
.nav nav > a.nav-contacto { color: var(--rojo); }

/* móvil */
@media (max-width: 900px) {
  .hero-in, .cols, .admin-grid, .admin-grid-rec, .acceso-grid, .ficha-rec, .videos { grid-template-columns: 1fr; }
  .hero-in { padding-top: 28px; gap: 8px; }
  .hero-art { max-width: 200px; margin-top: 30px; }
  .bocadillo { left: -42%; top: -14%; font-size: .9rem; }
  .l1, .l2, .l5 { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 50px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 10px; }
  .contacto-p { width: 120px; position: absolute; right: 0; top: -10px; margin: 0; }
  .contacto-txt { padding-right: 110px; }
  .proceso { grid-template-columns: 1fr 1fr; }
  .mat { grid-template-columns: 1fr 1fr; }
  .mat-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .mat, .row2, .campos { grid-template-columns: 1fr; }
  .contacto-txt { padding-right: 0; } .contacto-p { display: none; }
  .sec { padding: 48px 0; }
  .sec-top { padding-top: 28px; }
  .panel { padding: 20px; }
  .nav-in { min-height: 58px; }
  .logo { font-size: 1.5rem; }
  .nav nav > a:not(.btn):not(.on):not(.nav-contacto) { display: none; }
  .nav nav > a.on { display: none; }
  .cuadernos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .tapa-l { font-size: 1.4rem; }
  .recs { grid-template-columns: 1fr; }
  .stats div { min-width: 0; padding: 8px 12px; }
  .acciones { white-space: normal; }
  .candado { padding: 22px; }
  .filtros-inline { flex-basis: 100%; flex-wrap: wrap; }
  .visor iframe { height: 70vh; }
}
