/* =====================================================================
   Página del proyecto COOLTURA.
   Dos registros: «La revista» (el objeto, sobre una mesa gris, como en la página de portadas)
   y «Explicación» (la voz del portfolio, sobre blanco).
   ===================================================================== */
.ventana__cuerpo.ventana__cuerpo--pag:has(.cl) { background: #fff; }
.cl {
  --rosa: #d4196b; --ne: #151515; --mesa: #8d8c89; --h: 100vh;
  position: relative; background: #fff; color: var(--ne); font-size: 1rem; line-height: 1.5;
  container-type: inline-size; overflow: clip;
}
.gp-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0 !important; }
.cl p, .cl h4, .cl h5, .cl ol, .cl figure { margin: 0; }
.cl img { display: block; max-width: 100%; }

/* ---------- etiquetas de registro ---------- */
.cl-tag { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono, monospace); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.cl-tag span { padding: 5px 10px 4px; border-radius: 99px; background: var(--ne); color: #fff; }
.cl-tag b { font-weight: 400; }
.cl-tag--rev { color: #fff; position: absolute; top: clamp(18px, 3cqw, 34px); left: clamp(20px, 4cqw, 56px); z-index: 5; }
.cl-tag--rev span { background: #fff; color: var(--ne); }

/* ---------- la mesa: superficie gris con grano, como el fondo de la página de portadas ---------- */
.cl-mesa { position: relative; color: #fff; background-color: var(--mesa);
  background-image:
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(90% 80% at 80% 90%, rgba(0,0,0,.22), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- explicación ---------- */
.cl-exp { position: relative; z-index: 1; padding: clamp(60px, 9cqw, 130px) clamp(20px, 6cqw, 90px); background: #fff; }
.cl-h { font-size: clamp(2rem, 5.2cqw, 4.4rem); line-height: .98; letter-spacing: -.02em; font-weight: 600; margin: clamp(20px, 3cqw, 36px) 0 clamp(26px, 4cqw, 50px) !important; max-width: 14em; }
.cl-h5 { font-size: clamp(1rem, 1.5cqw, 1.2rem); font-weight: 600; margin-bottom: .45em !important; }
.cl-p { font-size: clamp(1rem, 1.45cqw, 1.18rem); line-height: 1.5; max-width: 34em; }
.cl-p--s { font-size: clamp(.92rem, 1.2cqw, 1.02rem); }
.cl-p--l { font-size: clamp(1.15rem, 2cqw, 1.6rem); line-height: 1.35; max-width: 30em; }
.cl-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; align-items: start; }
.cl-tres { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr; gap: 4cqw; }
.cl-tres > div, .cl-claves > div { border-top: 2px solid var(--ne); padding-top: 14px; }
.cl-partes { list-style: none; padding: 0; display: grid; gap: 0; }
.cl-partes li { display: grid; grid-template-columns: 2.4em 1fr; column-gap: 8px; padding: 12px 0; border-top: 1px solid rgba(0,0,0,.14); }
.cl-partes li span { grid-row: span 2; font-family: var(--f-mono, monospace); font-size: .78rem; color: var(--rosa); padding-top: 3px; }
.cl-partes b { font-weight: 600; }
.cl-partes p { font-size: .94rem; line-height: 1.4; opacity: .8; }
.cl-pie { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-top: clamp(40px, 6cqw, 70px); padding-top: 16px; border-top: 1px solid rgba(0,0,0,.14); font-size: .86rem; opacity: .85; }
.cl-datos { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-datos span { border: 1px solid var(--ne); border-radius: 99px; padding: 3px 10px; font-size: .74rem; letter-spacing: .04em; }
.cl-claves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; margin-top: clamp(36px, 5cqw, 60px); }
.cl-claves span { display: block; font-family: var(--f-mono, monospace); font-size: .74rem; color: var(--rosa); margin-bottom: 8px; }
.cl-ap { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.85,.2,1); transition-delay: calc(var(--i, 0) * .1s); }
.cl-ap.on { opacity: 1; transform: none; }

/* página de portadas */
.cl-portadas { padding: clamp(80px, 10cqw, 140px) 4cqw clamp(60px, 8cqw, 110px); display: grid; place-items: center; }
.cl-hojasuelta { width: min(52cqw, calc(var(--h) * .82 * .707)); transform: rotate(2.5deg); box-shadow: 0 2px 2px rgba(0,0,0,.2), 0 40px 70px -24px rgba(0,0,0,.65); }
.cl-hojasuelta.on { transform: rotate(2.5deg); }



/* ---------- portada de la página: el personaje sobre el papel de la portada, con los temas de la revista ---------- */
.cl-hero { position: relative; height: var(--h); min-height: 540px; overflow: hidden; --mx: 0; --my: 0; --sc: 0; color: var(--ne);
  background: #f6f3ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* muro de temas: cinco líneas gigantes; una se rellena de rosa cada vez */
.cl-temas { position: absolute; inset: 2% 0 -3%; display: grid; grid-template-rows: repeat(5, 1fr); align-items: center; }
.cl-tema { margin: 0; white-space: nowrap; font-weight: 700; text-transform: uppercase; letter-spacing: -.03em; line-height: .8;
  font-size: calc(var(--h) * .2); color: transparent; -webkit-text-stroke: 1.5px rgba(212,25,107,.55);
  transform: translateX(calc((var(--i) * -17%) + var(--sc) * (var(--i) * 2 - 4) * 12% + var(--mx) * (var(--i) - 2) * 14px));
  transition: color .45s ease, -webkit-text-stroke-color .45s ease; animation: cl-tema-in 1.1s cubic-bezier(.2,.9,.25,1) both; animation-delay: calc(var(--i) * .08s); }
.cl-tema.on { color: var(--rosa); -webkit-text-stroke-color: var(--rosa); }
@keyframes cl-tema-in { from { opacity: 0; translate: calc((var(--i) % 2 * 2 - 1) * 30%) 0; } }
/* personaje con su spray, en la misma composición que la portada */
.cl-muneco { position: absolute; right: 6%; top: 50%; height: 116%; aspect-ratio: 2480 / 3508; margin: 0; translate: 0 calc(-50% + var(--sc) * -14%); z-index: 2; }
.cl-muneco img { position: absolute; display: block; max-width: none; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.cl-muneco__spray { inset: 0; width: 100%; height: 100%; transform: translate(calc(var(--mx) * 22px), calc(var(--my) * 14px));
  -webkit-mask: radial-gradient(circle at 30% 30%, #000 0, #000 var(--r, 0%), transparent calc(var(--r, 0%) + 12%)); mask: radial-gradient(circle at 30% 30%, #000 0, #000 var(--r, 0%), transparent calc(var(--r, 0%) + 12%));
  animation: cl-spray 1.4s cubic-bezier(.3,.7,.2,1) .7s both; }
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes cl-spray { to { --r: 140%; } }
.cl-muneco__fig { left: 14.6%; top: 23.29%; width: 76.13%; transform-origin: 50% 100%; filter: drop-shadow(0 26px 30px rgba(80,0,30,.18));
  transform: translate(calc(var(--mx) * -30px), calc(var(--my) * -18px)) rotate(calc(var(--mx) * 3deg));
  animation: cl-llega 1.2s cubic-bezier(.2,1.25,.3,1) .25s both; }
@keyframes cl-llega { from { opacity: 0; transform: translateY(18%) scale(.88) rotate(-6deg); } }
.cl-hero__txt { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3cqw, 40px) clamp(20px, 4cqw, 56px); pointer-events: none; }
.cl-cab { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--f-mono, monospace); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.cl-cab span { background: #f6f3ef; padding: 2px 4px; }
.cl-hero__pie { display: grid; justify-items: start; gap: 10px; }
.cl-titulo { position: relative; font-size: clamp(3.2rem, 10cqw, 9.4rem); line-height: .82; font-weight: 700; letter-spacing: -.045em; background: var(--ne); color: #f6f3ef; padding: .08em .14em .12em; animation: cl-llega-t .9s cubic-bezier(.2,.9,.25,1) .5s both; }
@keyframes cl-llega-t { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cl-num { position: absolute; right: -.5em; top: -.55em; font: 600 .2em/1 var(--f-mono, monospace); letter-spacing: .04em; background: var(--rosa); color: #fff; padding: .55em .8em; transform: rotate(8deg); box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.cl-sub { font-size: clamp(.95rem, 1.4cqw, 1.2rem); background: #f6f3ef; padding: 2px 6px; }
.cl-bajar { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono, monospace); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: #f6f3ef; padding: 2px 6px; }
.cl-bajar i { width: 40px; height: 1px; background: var(--ne); transform-origin: left; animation: cl-bajar 1.8s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes cl-bajar { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- film de plástico retráctil (dentro del libro: gira con la revista) ---------- */
.cl-film { position: absolute; left: -.8%; right: -.8%; top: -.6%; bottom: -.6%; transform-origin: 50% 100%; backface-visibility: hidden; pointer-events: none; overflow: hidden; border-radius: 1.2% / .9%;
  background: rgba(236,241,246,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 14px rgba(255,255,255,.35); }
.cl-film::before { content: ""; position: absolute; inset: 0; background: url('../assets/proyectos/cooltura/plastico.png') center / 100% 100%; opacity: .62; }
/* brillo especular que recorre el plástico según el ángulo de la revista */
.cl-film__brillo { position: absolute; inset: -40% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.08) 44%, rgba(255,255,255,.42) 48.5%, rgba(255,255,255,.08) 53%, transparent 58%),
              linear-gradient(105deg, transparent 62%, rgba(255,255,255,.16) 65%, transparent 68%);
  transform: translateX(calc(var(--gl, 0) * -38%)); }
.cl-film--d .cl-film__brillo { transform: translateX(calc(var(--gl, 0) * 38%)); }
/* cinta roja de apertura: recorre el borde de arriba; al tirar, se lleva el plástico y deja el corte */
.cl-cinta { position: absolute; left: 0; right: 0; top: 1.1%; height: 2%; }
.cl-cinta b { position: absolute; inset: 0; background: linear-gradient(#e2245c, #b8123f); box-shadow: 0 1px 2px rgba(0,0,0,.25);
  clip-path: inset(0 calc(var(--cinta, 0) * 100%) 0 0); display: flex; align-items: center; justify-content: flex-end; padding-right: 4%;
  font: 600 clamp(6px, .5cqw, 9px)/1 var(--f-mono, monospace); letter-spacing: .14em; color: rgba(255,255,255,.9); text-transform: uppercase; }
.cl-cinta__lengua { position: absolute; top: -40%; height: 180%; right: calc(var(--cinta, 0) * 100% - 1.5%); width: 14%; background: linear-gradient(#e2245c, #a50f39);
  border-radius: 0 3px 3px 0; box-shadow: 2px 3px 6px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center;
  font: 700 clamp(6px, .55cqw, 9px)/1 var(--f-mono, monospace); color: #fff; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
  transform: translateZ(4px) rotate(calc(var(--cinta, 0) * -4deg)); }
.desenvuelta .cl-cinta { display: none; }

/* ---------- la revista que se desenvuelve y se gira ---------- */
.cl-giro { overflow: hidden; min-height: var(--h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2cqw, 24px); padding: calc(var(--h) * .07) 4cqw calc(var(--h) * .04); }
.cl-escena { --w: min(60cqw, calc((var(--h) - 120px) * .707)); --t: calc(var(--w) * .028); position: relative; perspective: calc(var(--w) * 5.5); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cl-escena.agarrada { cursor: grabbing; }
.cl-libro { position: relative; width: var(--w); aspect-ratio: 210 / 297; transform-style: preserve-3d; will-change: transform; }
.cl-cara { position: absolute; inset: 0; background-size: cover; background-position: center; backface-visibility: hidden; }
.cl-cara--frente { transform: translateZ(calc(var(--t) / 2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.cl-cara--dorso { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); }
.cl-cara--lomo, .cl-cara--canto { left: calc(50% - var(--t) / 2); width: var(--t); }
.cl-cara--lomo { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background-size: 100% 100%; }
.cl-cara--canto { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #d8d4cd, #f6f3ee 12%, #f6f3ee 88%, #d8d4cd), repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px); background-blend-mode: multiply; }
/* cabeza y pie: el bloque de páginas entre las dos cubiertas */
.cl-cara--arriba, .cl-cara--abajo { left: 0; right: 0; top: calc(50% - var(--t) / 2); bottom: auto; height: var(--t);
  background: linear-gradient(180deg, #ece8e1, #fbf9f6 14%, #fbf9f6 86%, #ece8e1), repeating-linear-gradient(180deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px); background-blend-mode: multiply; }
.cl-cara--arriba { transform: rotateX(90deg) translateZ(calc(var(--w) * 1.41428 / 2)); }
.cl-cara--abajo { transform: rotateX(-90deg) translateZ(calc(var(--w) * 1.41428 / 2)); }
.cl-sombra { position: absolute; left: 4%; right: 4%; bottom: -6%; height: 10%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); filter: blur(8px); z-index: -1; }
.cl-giro__pie { display: grid; justify-items: center; gap: 10px; text-align: center; }
.cl-caras { position: relative; height: 1.4em; width: 260px; font-family: var(--f-mono, monospace); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.cl-caras span { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .3s ease; }
.cl-caras span.on { opacity: 1; }
.cl-pista { position: relative; height: 1.4em; width: 320px; font-size: .86rem; }
.cl-pista span { position: absolute; left: 0; right: 0; transition: opacity .4s ease; }
.cl-pista__b, .desenvuelta .cl-pista__a { opacity: 0; }
.desenvuelta .cl-pista__b { opacity: .9; }
.cl-quitar { font: inherit; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: none; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; padding: 6px 14px; cursor: pointer; transition: background .2s, color .2s, opacity .3s; }
.cl-quitar:hover, .cl-quitar:focus-visible { background: #fff; color: var(--ne); outline: none; }
.desenvuelta .cl-quitar { opacity: 0; pointer-events: none; }

/* ---------- la revista abierta: la hoja se curva al pasarla ---------- */
.cl-pliego { height: calc(var(--h) * 2.8); }
.cl-fijo { position: sticky; top: 0; height: var(--h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 3cqw, 30px); overflow: hidden; }
.cl-abierta { --w: min(94cqw, calc((var(--h) - 112px) * 1.4146)); --pw: calc(var(--w) / 2); position: relative; width: var(--w); aspect-ratio: 1.4146; perspective: 2800px; perspective-origin: 50% 40%; }
.cl-abierta::before { content: ""; position: absolute; left: 1%; right: 1%; bottom: -3%; height: 8%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); filter: blur(10px); z-index: -1; }
.cl-pag { position: absolute; top: 0; bottom: 0; width: 50%; background-size: calc(var(--pw) * 2) 100%; }
.cl-pag--izq { left: 0; background-image: var(--s1); background-position: 0 0; }
.cl-pag--der { right: 0; background-image: var(--s2); background-position: calc(var(--pw) * -1) 0; }
/* sombras que la hoja levantada proyecta sobre las páginas de abajo */
.cl-pag i { position: absolute; inset: 0; pointer-events: none; }
.cl-pag--der i { background: linear-gradient(90deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 40%, transparent 75%); opacity: calc(var(--vuelo, 0) * (1 - var(--k, 0))); }
.cl-pag--izq i { background: linear-gradient(270deg, rgba(0,0,0,.42), rgba(0,0,0,.12) 40%, transparent 75%); opacity: calc(var(--vuelo, 0) * var(--k, 0)); }
.cl-hoja { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--pw) / 22); transform-style: preserve-3d; z-index: 2; }
.cl-tira { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: left center; transform-style: preserve-3d; }
.cl-tira__f, .cl-tira__d { position: absolute; inset: 0 -.6px 0 0; backface-visibility: hidden; background-size: calc(var(--pw) * 2) 100%; background-position-y: 0; }
.cl-tira__f { background-image: var(--s1); }
.cl-tira__d { background-image: var(--s2); transform: rotateY(180deg); }
/* luz: la tira se oscurece al ponerse de canto y la cara de atrás recibe un brillo */
.cl-tira__f i, .cl-tira__d i { position: absolute; inset: 0; background: #000; opacity: calc(var(--luz, 0) * .42); }
.cl-tira__d i { background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(255,255,255,.25)); opacity: calc(var(--luz, 0) * .55); }
.cl-pliegue { position: absolute; top: 0; bottom: 0; left: calc(50% - 4%); width: 8%; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08) 30%, rgba(0,0,0,.26) 50%, rgba(0,0,0,.06) 70%, transparent); }
.cl-fijo .cl-caras { width: 100%; text-align: center; }

/* ---------- sin animación o en móvil ---------- */
.cl--plano .cl-ap { opacity: 1; transform: none; transition: none; }
.cl--plano .cl-pliego { height: auto; }
.cl--plano .cl-fijo { position: relative; height: auto; padding: 70px 18px 40px; overflow: visible; }
.cl--plano .cl-abierta { width: 100%; aspect-ratio: auto; perspective: none; display: grid; gap: 14px; }
.cl--plano .cl-hoja, .cl--plano .cl-pliegue, .cl--plano .cl-fijo .cl-caras { display: none; }
.cl--plano .cl-pag { position: relative; width: 100%; aspect-ratio: 1.4146; background-size: 100% 100%; background-position: 0 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.cl--plano .cl-pag--der { background-image: var(--s2); }
.cl--plano .cl-muneco img, .cl--plano .cl-tema, .cl--plano .cl-titulo { animation: none !important; transition: none; }
.cl--plano .cl-muneco__spray { -webkit-mask: none; mask: none; }
@media (max-width: 700px) {
  .cl-hero { height: auto; min-height: 0; aspect-ratio: 3 / 4; }
  .cl-muneco { right: -22%; height: 96%; }
  .cl-hero { aspect-ratio: auto; height: 86svh; }
  .cl-bajar { display: none; }
  .cl-escena { --w: 72cqw; }
  .cl-dos, .cl-tres, .cl-claves { grid-template-columns: 1fr; gap: 26px; }
  .cl-hojasuelta { width: 92%; }
}
.cl-giro:not(.desenvuelta) .cl-escena { touch-action: none; }
.cl-pista { width: min(440px, 90cqw); }

/* ---------- logotipo en el héroe (el original, sin animar) ---------- */
.cl-titulo { background: none !important; padding: 0 !important; animation: none !important; }
.cl-titulo { background: #fff !important; padding: clamp(14px, 1.8cqw, 26px) clamp(18px, 2.4cqw, 34px) !important; transform: rotate(-2deg); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 24px 40px -20px rgba(0,0,0,.35); }
.cl-titulo img { display: block; width: clamp(240px, 40cqw, 680px); height: auto; }
.cl-num { right: -.2em; top: -1.6em; font-size: clamp(.8rem, 1.4cqw, 1.2rem); }

/* ---------- guía de estilos ---------- */
.cl-guia { background: #f6f3ef; }
.cl-rets { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; margin-top: clamp(40px, 6cqw, 80px); }
.cl-ret { display: grid; gap: 18px; }
.cl-ret__svg { width: 100%; height: auto; display: block; box-shadow: 0 20px 40px -24px rgba(0,0,0,.35); }
.cl-ret__hoja { fill: #fff; }
.cl-ret__lomo { stroke: rgba(0,0,0,.25); stroke-width: 1.5; }
.cl-ret__lineas line { stroke: #42d6e8; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.6,.05,.2,1); }
.cl-ret.on .cl-ret__lineas line { stroke-dashoffset: 0; }
.cl-ret__lineas line:nth-child(odd) { transition-delay: .15s; }
.cl-ret__forma path, .cl-ret__forma circle { fill: none; stroke: var(--rosa); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.6,.05,.2,1) .9s; }
.cl-ret.on .cl-ret__forma path, .cl-ret.on .cl-ret__forma circle { stroke-dashoffset: 0; }
.cl-ret__folio, .cl-ret__cint { fill: var(--rosa); opacity: 0; transition: opacity .5s ease 1.2s; }
.cl-ret.on .cl-ret__folio, .cl-ret.on .cl-ret__cint { opacity: 1; }
.cl-ret figcaption { display: grid; gap: 4px; border-top: 2px solid var(--ne); padding-top: 12px; }
.cl-ret figcaption span { font-family: var(--f-mono, monospace); font-size: .78rem; color: var(--rosa); }
.cl-estilos__t { margin-top: clamp(50px, 7cqw, 90px) !important; }
.cl-estilos { border-top: 2px solid var(--ne); }
.cl-estilos__cab, .cl-estilos__fila { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr 1fr; gap: 3cqw; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.cl-estilos__cab b { font-family: var(--f-mono, monospace); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.cl-estilos__fila > span { font-family: var(--f-mono, monospace); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cl-estilos__fila p { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cl-estilos__fila em { font-style: normal; font-size: clamp(1rem, 1.7cqw, 1.45rem); line-height: 1.1; }
.cl-estilos__fila:nth-child(2) em { font-weight: 700; font-size: clamp(1.4rem, 2.6cqw, 2.2rem); }
.cl-estilos__fila:nth-child(5) em { font-style: italic; font-weight: 600; }
.cl-estilos__fila:nth-child(7) em { font-weight: 700; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.cl-estilos__fila small { font-family: var(--f-mono, monospace); font-size: .72rem; color: var(--rosa); white-space: nowrap; }
@media (max-width: 700px) {
  .cl-rets { grid-template-columns: 1fr; }
  .cl-estilos__cab, .cl-estilos__fila { grid-template-columns: 1fr; gap: 6px; }
  .cl-estilos__cab span { display: none; }
}

/* ---------- logotipo sin recuadro: el muro de temas se aparta detrás ---------- */
.cl-titulo { background: none !important; padding: 0 !important; transform: none; box-shadow: none; }
.cl-titulo img { width: clamp(240px, 42cqw, 700px); }
.cl-temas { -webkit-mask: radial-gradient(60% 46% at 18% 82%, transparent 0 38%, #000 72%); mask: radial-gradient(60% 46% at 18% 82%, transparent 0 38%, #000 72%); }
.cl-cab span, .cl-sub, .cl-bajar { background: none; padding-left: 0; }

/* ---------- plástico: lengüeta más visible y pista animada ---------- */
.cl-cinta { top: 1.1%; height: 2.8%; }
.cl-cinta b { font-size: clamp(7px, .62cqw, 11px); }
.cl-cinta__lengua { width: 17%; height: 210%; top: -55%; font-size: clamp(7px, .66cqw, 11px); animation: cl-tirar 1.8s ease-in-out infinite; }
.desenvuelta .cl-cinta__lengua, .saliendo .cl-cinta__lengua { animation: none; }
@keyframes cl-tirar { 0%, 55%, 100% { transform: translateZ(4px) translateX(0); } 70% { transform: translateZ(4px) translateX(-14%) rotate(-3deg); } 85% { transform: translateZ(4px) translateX(-4%); } }
.cl-aqui { position: absolute; top: -1.5%; left: calc(100% + 18px); display: flex; align-items: center; gap: 10px; margin: 0; white-space: nowrap;
  font-family: var(--f-mono, monospace); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  animation: cl-aqui 1.8s ease-in-out infinite; transition: opacity .3s; }
.cl-aqui svg { width: 40px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cl-aqui { 0%, 55%, 100% { transform: translateX(0); } 70% { transform: translateX(-10px); } }
.saliendo .cl-aqui, .desenvuelta .cl-aqui { opacity: 0; }
.cl-escena { cursor: grab; }
@media (max-width: 900px) { .cl-aqui { left: auto; right: 4%; top: -7%; } }

/* ---------- pliego legible: lupa y lector ---------- */
.cl-lupa { position: absolute; z-index: 6; width: clamp(170px, 20cqw, 280px); aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; pointer-events: none;
  background-repeat: no-repeat; box-shadow: 0 0 0 3px #fff, 0 18px 40px rgba(0,0,0,.45); opacity: 0; scale: .7; transition: opacity .2s, scale .25s cubic-bezier(.2,.9,.3,1.3); }
.cl-lupa.on { opacity: 1; scale: 1; }
.cl-abierta { cursor: zoom-in; }
.cl-pliego__pie { display: grid; justify-items: center; gap: 10px; }
.cl-pista--lupa { font-size: .82rem; opacity: .85; width: auto; height: auto; }
.cl-leer { font: inherit; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ne); background: #fff; border: 0; border-radius: 99px; padding: 8px 16px; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); transition: transform .2s; }
.cl-leer:hover, .cl-leer:focus-visible { transform: translateY(-2px); outline: none; }
.cl-lector { position: fixed; inset: 0; z-index: 9000; background: rgba(20,20,20,.9); overflow-y: auto; opacity: 0; transition: opacity .3s; padding: 70px 4vw 60px; }
.cl-lector.on { opacity: 1; }
.cl-lector__cerrar { position: fixed; top: 18px; right: 22px; z-index: 2; font: inherit; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--ne); border: 0; border-radius: 99px; padding: 8px 16px; cursor: pointer; }
.cl-lector__pags { display: grid; gap: 40px; justify-items: center; }
.cl-lector figure { margin: 0; width: min(1000px, 100%); }
.cl-lector img { width: 100%; display: block; box-shadow: 0 30px 60px -30px #000; }
.cl-lector figcaption { color: #fff; font-family: var(--f-mono, monospace); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; opacity: .7; }

/* ---------- portadas: recorrido con zoom por la página ---------- */
.cl-portadas { height: calc(var(--h) * 5); padding: 0; display: block; }
.cl-visor { position: relative; height: calc(var(--h) * .8); aspect-ratio: 1821 / 2576; overflow: hidden; box-shadow: 0 2px 2px rgba(0,0,0,.2), 0 40px 70px -24px rgba(0,0,0,.65); }
.cl-visor__hoja { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.cl-visor__hoja img { width: 100%; height: 100%; display: block; }
.cl-portadas__pie { width: 100%; text-align: center; }
.cl--plano .cl-portadas { height: auto; }
.cl--plano .cl-visor { height: auto; width: 92%; margin: 0 auto; }
.cl--plano .cl-portadas__pie { display: none; }
.cl-portadas__fijo { width: 100%; }
.cl-portadas__fijo .cl-tag--rev { left: clamp(20px, 4cqw, 56px); }

.cl-fijo { padding-top: 64px; padding-bottom: 24px; box-sizing: border-box; }
.cl-pliego .cl-fijo { justify-content: center; }

/* más grande: el pie va en una sola línea, superpuesto abajo */
.cl-fijo { padding-top: 46px; padding-bottom: 58px; }
.cl-pliego__pie, .cl-giro__pie { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; z-index: 7; }
.cl-pliego__pie .cl-caras, .cl-giro__pie .cl-caras { width: 150px; }
.cl-pista--lupa, .cl-giro__pie .cl-pista { font-size: .78rem; }
.cl-giro { position: relative; padding: 46px 3cqw 58px; }
.cl-giro__pie .cl-pista { width: auto; min-width: 300px; text-align: center; }
.cl-tag--rev { top: 14px; }
.cl-lector figure { width: min(1500px, 100%); }

/* ---------- rendimiento ---------- */
.cl-muneco__fig { filter: none !important; will-change: transform; }
.cl-muneco__spray { -webkit-mask: none !important; mask: none !important; animation: cl-spray2 1.1s cubic-bezier(.3,.7,.2,1) .6s both !important; will-change: transform, opacity; }
@keyframes cl-spray2 { from { opacity: 0; transform: scale(.92); } }
.cl-tema { will-change: transform; }
.cl-temas { contain: layout paint; }
/* lo que queda lejos de la vista no se pinta */
.cl .cl-lejos > * { visibility: hidden; }
.cl-mesa, .cl-hero { contain: paint; }

/* ---------- móvil: el pliego a tamaño de página, recorrido con el scroll ---------- */
@media (max-width: 700px) {
  .cl-pliego { height: calc(var(--h) * 4.2); }
  .cl-abierta { --w: min(calc((var(--h) - 250px) * 1.4146), 200cqw); flex: none; transform: translateX(calc(var(--pan, 0) * var(--pw))); }
  .cl-lupa, .cl-pista--lupa { display: none; }
  .cl-pliego__pie { bottom: 18px; }
}
@media (max-width: 700px) {
  /* héroe: el personaje arriba y el logotipo grande debajo, sin pisarse */
  .cl-hero { height: var(--h); }
  .cl-muneco { right: -14%; top: 40%; height: 64%; }
  .cl-titulo img { width: 82cqw; }
  .cl-hero__txt { padding-bottom: 34px; }
}

/* ---------- botón «pasar página»: solo en el móvil ---------- */
.cl-pasar { display: none; }

/* ===================== MÓVIL ===================== */
@media (max-width: 1100px) {
  /* inicio: todo centrado, el personaje en medio y debajo el logo con el tagline */
  .cl-hero__txt { align-items: center; text-align: center; }
  .cl-cab { justify-content: center; }
  .cl-hero__pie { justify-items: center; }
  .cl-muneco { left: 50%; right: auto; translate: -52.7% calc(-50% + var(--sc) * -14%); }
  .cl-temas { -webkit-mask: radial-gradient(70% 30% at 50% 86%, transparent 0 40%, #000 75%); mask: radial-gradient(70% 30% at 50% 86%, transparent 0 40%, #000 75%); }
  .cl-num { right: -.4em; }

  /* el pliego: las dos páginas enteras en pantalla y un botón para pasar la hoja */
  .cl--auto .cl-pliego { height: auto; }
  .cl--auto .cl-pliego .cl-fijo { position: relative; height: auto; padding: 62px 0 26px; gap: 22px; overflow: visible; }
  .cl--auto .cl-abierta { --w: 92cqw; transform: none; }
  .cl--auto .cl-pliego__pie { position: static; display: grid; justify-items: center; gap: 12px; }
  .cl--auto .cl-pasar { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: none;
    border: 1px solid rgba(255,255,255,.7); border-radius: 99px; padding: 10px 16px 10px 20px; cursor: pointer; }
  .cl-pasar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease; }
  .cl-pasar.atras { flex-direction: row-reverse; padding: 10px 20px 10px 16px; }
  .cl-pasar.atras svg { transform: scaleX(-1); }

  /* portadas: la página entera cabe a lo ancho y la cámara se mueve sola */
  .cl--auto .cl-portadas { height: auto; }
  .cl--auto .cl-portadas__fijo { position: relative; height: auto; padding: 62px 0 26px; gap: 18px; overflow: visible; }
  .cl--auto .cl-visor { height: auto; width: 90cqw; cursor: pointer; }
}
/* tablet: la página de portadas cabe entera en la pantalla */
.cl--auto .cl-visor { width: min(90cqw, calc(var(--h) * .58)); margin: 0 auto; }
.cl--auto .cl-abierta { --w: min(92cqw, calc((var(--h) - 260px) * 1.4146)); }

/* ---------- tablet: el personaje y el logotipo sin pisarse ---------- */
@media (min-width: 701px) and (max-width: 1100px) {
  .cl-hero .cl-muneco { top: 38%; height: 58%; }
  .cl-hero .cl-titulo img { width: min(58cqw, 520px); }
  .cl-hero__txt { padding-bottom: 40px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .cl-hero .cl-muneco { top: 41%; height: 72%; }   /* el personaje más grande */
}
