/* =====================================================================
   Página del proyecto CF CALATRAVA · colores de la equipación y de la web del club.
   Titulares en la tipografía de LaLiga 23-24, la de la campaña (un solo peso).
   ===================================================================== */
@font-face { font-family: 'LaLiga 2324'; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/laliga-2324.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('../assets/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-display: swap; src: url('../assets/fonts/barlow-condensed-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 400; font-display: swap; src: url('../assets/fonts/barlow-semi-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 500; font-display: swap; src: url('../assets/fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('../assets/fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); }

.ventana__cuerpo.ventana__cuerpo--pag:has(.cf) { background: #1f1e1c; }
.cf {
  --am: #EFD144; --am2: #F6D573; --tinta: #17150F; --gr: #2B2A28; --gr2: #1F1E1C; --oro: #D0B05B; --mo: #A1519A; --rojo: #D8332B; --papel: #EFEDE8; --h: 100vh;
  --tit: 'LaLiga 2324', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  position: relative; background: #fff; color: var(--tinta); font-family: 'Barlow Semi Condensed', system-ui, sans-serif; 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; }
.cf p, .cf h5, .cf ol, .cf dl, .cf dd, .cf figure { margin: 0; }
.cf ol { padding: 0; list-style: none; }
.cf img { display: block; max-width: 100%; }
.cf button { font: inherit; color: inherit; cursor: pointer; }
.cf-escudo { display: block; }
.cf-escudo .e1, .cf-escudo .e3 { fill: var(--tinta); }
.cf-escudo .e2 { fill: var(--am2); }

/* ---------- comunes ---------- */
.cf-sec { position: relative; padding: clamp(70px, 9cqw, 130px) clamp(20px, 6cqw, 90px); }
.cf-etq { display: flex; align-items: baseline; gap: 14px; font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 5.4cqw, 4.6rem); line-height: .9; letter-spacing: -.005em; margin-bottom: clamp(24px, 3cqw, 42px) !important; }
.cf-etq span { font-size: .4em; font-weight: 800; letter-spacing: .04em; color: var(--oro); }
.cf-grande { font-size: clamp(1.35rem, 2.7cqw, 2.3rem); line-height: 1.18; font-weight: 500; max-width: 24em; }
.cf-texto { font-size: clamp(1.02rem, 1.4cqw, 1.2rem); line-height: 1.5; max-width: 34em; }
.cf-texto--s { font-size: clamp(.92rem, 1.15cqw, 1.02rem); opacity: .72; }
.cf-h5 { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: clamp(44px, 5cqw, 70px) 0 18px !important; }
.cf-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; margin-top: clamp(28px, 3.5cqw, 46px); align-items: start; }
.cf-ap { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.9,.25,1); transition-delay: calc(var(--i, 0) * .08s); }
.cf-ap.on { opacity: 1; transform: none; }

/* ---------- portada: saque de centro ---------- */
.cf-hero { position: relative; height: var(--h); min-height: 540px; background: var(--gr2); color: var(--am); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.cf-hero__campo { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--am); stroke-width: 2; opacity: .2; }
.cf-hero__campo * { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cf-traza 2.4s cubic-bezier(.6,0,.2,1) forwards; }
.cf-hero__campo circle { animation-delay: .5s; }
.cf-hero__campo path:nth-child(n+3) { animation-delay: .9s; }
@keyframes cf-traza { to { stroke-dashoffset: 0; } }
.cf-hero__in { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 3cqw, 40px) clamp(20px, 4cqw, 56px); }
.cf-cab, .cf-bajar { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cf-cab { display: flex; justify-content: space-between; gap: 14px; }
.cf-hero__centro { display: grid; justify-items: center; align-content: center; gap: clamp(10px, 2vh, 26px); }
.cf-hero__escudo { width: min(26cqw, calc(var(--h) * .27)); animation: cf-entra .9s cubic-bezier(.2,.9,.25,1) both .2s; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.cf-hero__t { display: flex; gap: .18em; font-family: var(--tit); font-weight: 900; text-transform: uppercase; line-height: .82; font-size: min(14.5cqw, calc(var(--h) * .23)); letter-spacing: -.01em; animation: cf-entra 1s cubic-bezier(.2,.9,.25,1) both .45s; }
.cf-hero__t span:first-child { color: transparent; -webkit-text-stroke: 2px var(--am); }
@keyframes cf-entra { from { opacity: 0; transform: translateY(22px); } }
.cf-hero__pie { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.cf-hero__pie p:first-child { max-width: 30em; font-size: clamp(.95rem, 1.3cqw, 1.1rem); color: #fff; opacity: .88; }
.cf-bajar { display: flex; align-items: center; gap: 10px; }
.cf-bajar i { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; animation: cf-baja 1.6s ease-in-out infinite; }
@keyframes cf-baja { 50% { translate: 0 2px; } }
/* panel LED de banda, como los del estadio */
.cf-led { position: relative; height: clamp(46px, 5.6cqw, 78px); background: #0c0b0a; overflow: hidden; border-top: 1px solid #000; }
.cf-led__t { position: absolute; inset: 0; display: flex; width: max-content; align-items: center; animation: cf-led 60s linear infinite;
  font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.9cqw, 56px); color: var(--am); white-space: nowrap; letter-spacing: .02em;
  -webkit-mask: radial-gradient(circle, #000 1.25px, transparent 1.7px) 0 0 / 4px 4px; mask: radial-gradient(circle, #000 1.25px, transparent 1.7px) 0 0 / 4px 4px; }
.cf-led__t span { padding-right: .4em; }
@keyframes cf-led { to { transform: translateX(-50%); } }

/* ---------- líneas de cal ---------- */
.cf-cal { position: relative; aspect-ratio: 1200 / 140; min-height: 56px; }
.cf-cal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; }
.cf-cal svg * { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.cf-cal .cf-cal__p { fill: currentColor; opacity: var(--p, 0); }
.cf-cal--claro { background: #fff; color: var(--tinta); }
.cf-cal--gris { background: var(--gr2); color: var(--am); }

/* ---------- 01 encargo ---------- */
.cf-encargo .cf-etq span { color: var(--oro); }
.cf-obj { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5cqw, 34px); margin-bottom: clamp(30px, 4cqw, 50px) !important; }
.cf-obj li { display: grid; gap: 6px; align-content: start; }
.cf-dorsal { font-family: var(--tit); font-weight: 900; font-size: clamp(5rem, 11cqw, 9.5rem); line-height: .8; color: var(--am); -webkit-text-stroke: 2.5px var(--tinta); paint-order: stroke fill; margin-bottom: 10px; }
.cf-obj b { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2.4cqw, 2rem); line-height: 1; }
.cf-obj p { font-size: .98rem; opacity: .78; max-width: 16em; }

/* ---------- 02 mensaje: la ruleta ---------- */
.cf-mensaje { background: var(--am); }
.cf-mensaje .cf-etq span { color: var(--tinta); opacity: .55; }
.cf-rul { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5cqw, 80px); align-items: center; }
.cf-rul__rueda { width: min(100%, 520px); justify-self: center; filter: drop-shadow(0 26px 40px rgba(60,45,0,.35)); }
.cf-rueda { display: block; width: 100%; height: auto; overflow: visible; }
.cf-rueda .rd-borde { fill: var(--tinta); }
.cf-rueda .rd-pista { fill: #3a3833; }
.cf-rueda .rd-borde2 { fill: var(--tinta); }
.cf-rueda .rc-r { fill: var(--rojo); stroke: var(--oro); stroke-width: 1.2; }
.cf-rueda .rc-n { fill: #0b0a08; stroke: var(--oro); stroke-width: 1.2; }
.cf-rueda .rc-a { fill: var(--am); stroke: var(--oro); stroke-width: 1.2; }
.cf-rueda text { fill: #fff; font-family: var(--tit); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.cf-rueda .rd-cono { fill: var(--oro); stroke: var(--tinta); stroke-width: 3; }
.cf-rueda .rd-rayos path { stroke: var(--tinta); stroke-width: 7; stroke-linecap: round; }
.cf-rueda .rd-eje { fill: var(--tinta); }
.cf-rueda .rd-eje2 { fill: var(--oro); }
.cf-rueda .rd-bola { fill: #fff; stroke: #0005; stroke-width: 1; }
.cf-rul.cae .rc-a { animation: cf-luz 1.1s ease-in-out 3; }
@keyframes cf-luz { 50% { fill: #fff6c2; } }
.cf-rul__txt { font-family: var(--tit); text-transform: uppercase; font-size: clamp(3.4rem, 10cqw, 9.6rem); line-height: .86; }
.cf-rul__caja { display: block; }
.cf-rul__w { display: inline-block; padding: .04em .1em 0; margin-left: -.1em; }
.cf-rul__w[data-c="r"] { background: var(--rojo); color: #fff; }
.cf-rul__w[data-c="n"] { background: #0b0a08; color: #fff; }
.cf-rul__w[data-c="a"] { background: transparent; color: var(--tinta); }
.cf-rul.cae .cf-rul__w { animation: cf-cae .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes cf-cae { from { transform: scale(.9); } }
.cf-rul__otra { margin-top: 28px; display: inline-flex; align-items: center; gap: 9px; font-family: 'Barlow Semi Condensed', sans-serif !important; font-size: .82rem !important; font-weight: 700 !important; line-height: 1; letter-spacing: .14em; text-transform: uppercase; background: none; border: 2px solid #000; border-radius: 99px; padding: 9px 15px; transition: background .2s, color .2s; }
.cf-rul__otra:hover { background: #000; color: var(--am); }
.cf-rul__otra i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.cf-rul.gira .cf-rul__otra { opacity: .4; pointer-events: none; }
.cf-rul.gira .cf-rul__otra i { animation: cf-gira .5s linear infinite; }
@keyframes cf-gira { to { rotate: 360deg; } }
.cf-jer li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 22em); gap: 24px; align-items: baseline; padding: 16px 0; border-top: 2px solid #000; }
.cf-jer b { font-family: var(--tit); font-weight: 900; text-transform: uppercase; line-height: .95; }
.cf-jer--0 b, .cf-jer--2 b { font-size: clamp(1.5rem, 3cqw, 2.5rem); }
.cf-jer--1 b { font-size: clamp(2.6rem, 6.5cqw, 5.6rem); }
.cf-jer--3 b { font-size: clamp(1.1rem, 1.8cqw, 1.5rem); }
.cf-jer span { font-size: .98rem; opacity: .78; }

/* ---------- 03 la camiseta enmarcada ---------- */
.cf-cam { height: calc(var(--h) * 4.3); padding-top: 0; padding-bottom: 0; background: var(--gr2); color: #fff; }
.cf-cam .cf-etq { color: var(--am); }
.cf-fijo { position: sticky; top: 0; height: var(--h); display: grid; grid-template-columns: minmax(280px, 40%) 1fr; gap: 4cqw; align-items: center; }
.cf-pasos { display: grid; gap: 4px; }
.cf-pasos > li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid #ffffff22; opacity: .35; transition: opacity .4s; }
.cf-pasos > li > span { font-size: .8rem; font-weight: 700; color: var(--am); padding-top: 3px; }
.cf-pasos b { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: 1.45rem; line-height: 1.05; }
.cf-pasos > li > div > p { overflow: hidden; font-size: .98rem; line-height: 1.45; opacity: .85; max-height: 0; transition: max-height .6s ease, margin .4s; }
.cf-pasos > li.hecho { opacity: .6; }
.cf-pasos > li.on { opacity: 1; }
.cf-pasos > li.on > div > p { max-height: 12em; margin-top: 6px; }
.cf-lienzo { display: grid; place-items: center; height: 100%; }
.cf-lienzo__in { position: relative; aspect-ratio: 400 / 520; height: min(calc(var(--h) * .8), 700px); max-width: 100%; }
.cf-lienzo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.cf-lz-fondo { fill: #000; opacity: var(--marco, 0); }
.cf-lz-percha { stroke: #b9b4a8; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: calc(var(--ent, 0) * (1 - var(--quita, 0))); transform: translateY(calc(var(--quita, 0) * -30px)); }
.cf-lz-manga { opacity: var(--ent, 0); }
.cf-lz-manga .m1 { fill: #EFD145; }
.cf-lz-manga .m2 { fill: var(--tinta); }
.cf-lz-manga { transform-origin: 61px 140px; transform: scaleX(calc(1 - var(--quita, 0))); }
.cf-lz-marco, .cf-lz-marco2 { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--marco, 0)); }
.cf-lz-marco { stroke: var(--am); stroke-width: 2.5; }
.cf-lz-marco2 { stroke: var(--oro); stroke-width: 12; }
.cf-lz-cartel { position: absolute; left: 15%; top: 15.385%; width: 70%; height: 75.19%; container-type: size; opacity: var(--ent, 0); transform: translateY(calc((1 - var(--ent, 0)) * 18px)); box-shadow: 0 30px 60px rgba(0,0,0, calc(var(--marco, 0) * .45)); }
.cf-lz-cartel img { width: 100%; height: 100%; object-fit: fill; }
/* zonas numeradas sobre el cartel */
.cf-zona { position: absolute; border: 2px solid var(--tinta); border-radius: 6px; background: rgba(23,21,15,.06); opacity: 0; transform: scale(1.08); transition: opacity .45s, transform .5s cubic-bezier(.2,.9,.25,1); }
.cf-zona.on { opacity: 1; transform: none; }
.cf-zona i { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--tinta); color: var(--am); font-style: normal; font-family: var(--tit); font-size: 15px; line-height: 1; box-shadow: 0 0 0 2px var(--am); }
.cf-zona[data-i="3"] i { top: auto; bottom: -15px; left: 50%; translate: -50% 0; }
.cf-zona[data-i="4"] { border-color: var(--am); }
.cf-zona[data-i="4"] i { top: -15px; left: 50%; translate: -50% 0; }
/* leyenda de cada paso */
.cf-pasos__ley ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.cf-pasos__ley li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; font-size: .96rem; line-height: 1.3; }
.cf-pasos__ley li i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--am); color: var(--tinta); font-style: normal; font-family: var(--tit); font-size: 14px; line-height: 1; }
.cf-pasos__ley p + ul + p { margin-top: 10px; }
.cf-pasos > li .cf-pasos__ley { overflow: hidden; max-height: 0; transition: max-height .6s ease, margin .4s; }
.cf-pasos > li.on .cf-pasos__ley { max-height: 22em; margin-top: 6px; }
.cf-pasos__ley p { max-height: none !important; margin: 0 !important; opacity: .85; }

/* ---------- 04 tipografía y color ---------- */
.cf-tipo__rej { display: grid; grid-template-columns: 1fr 1fr; gap: 6cqw; align-items: start; }
.cf-tipo__aa { display: flex; gap: .12em; font-family: var(--tit); font-weight: 900; font-size: clamp(7rem, 19cqw, 17rem); line-height: .78; margin-bottom: 26px !important; }
.cf-tipo__aa span:last-child { color: var(--am); -webkit-text-stroke: 3px var(--tinta); paint-order: stroke fill; }
.cf-colores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 16px; }
.cf-color { display: grid; gap: 2px; font-size: .9rem; }
.cf-color i { height: 110px; background: var(--c); border: 1px solid #00000018; margin-bottom: 8px; }
.cf-color b { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; line-height: 1; }
.cf-color span { opacity: .7; }
.cf-pecho__cam { position: relative; aspect-ratio: 1 / 1; background: var(--am); container-type: inline-size; display: grid; place-items: center; overflow: hidden;
  background-image: radial-gradient(120% 60% at 50% -10%, transparent 58%, #000 58.3%, #000 66%, transparent 66.3%); }
.cf-pecho__zona { position: absolute; left: 21%; width: 58%; top: 34%; height: 40%; border: 2px dashed #00000080; }
.cf-pecho__zona em { position: absolute; left: 0; bottom: calc(100% + 6px); font-style: normal; font-size: 2.6cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.cf-pecho__txt { position: relative; display: grid; justify-items: center; text-align: center; font-family: var(--tit); font-weight: 900; text-transform: uppercase; line-height: .9; top: 4%; }
.cf-pecho__txt small { font-size: 4.6cqw; transition: font-size .5s; }
.cf-pecho__txt b { font-size: 13cqw; white-space: nowrap; transition: font-size .5s; }
.cf-pecho__txt b span { display: block; }
.cf-pecho[data-c="0"] .cf-pecho__txt b { font-size: 10.6cqw; }
.cf-pecho[data-c="0"] .cf-pecho__txt b span { display: inline; }
.cf-pecho[data-c="0"] .cf-pecho__zona { border-color: var(--rojo); }
.cf-pecho__bots, .cf-libro__bots, .cf-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cf-pecho__bots button, .cf-libro__bots button, .cf-nav button { background: none; border: 2px solid currentColor; border-radius: 99px; padding: 7px 16px; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s, color .2s; }
.cf-pecho__bots button.on, .cf-nav button.on { background: var(--tinta); color: var(--am); border-color: var(--tinta); }
.cf-pecho__nota { margin: 12px 0 8px !important; font-weight: 700; }

/* ---------- 05 formatos a escala ---------- */
.cf-formatos { background: var(--gr); color: #fff; }
.cf-formatos .cf-etq { color: var(--am); }
.cf-escala { margin-top: clamp(34px, 4cqw, 56px); overflow-x: auto; overflow-y: hidden; padding-bottom: 96px; scrollbar-width: thin; }
.cf-escala__fila { --ppm: 60px; position: relative; display: flex; padding-right: calc(var(--ppm) * .6); align-items: flex-end; gap: calc(var(--ppm) * .7); min-width: 640px; border-bottom: 2px solid var(--am); padding-top: 12px; }
.cf-escala__suelo { display: none; }
.cf-pieza { position: relative; flex: none; padding: 0; border: 0; background: none; text-align: left; }
.cf-pieza__img { display: block; width: calc(var(--w) * var(--ppm)); height: calc(var(--hh) * var(--ppm)); background: #000; box-shadow: 0 10px 26px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.2,.9,.25,1), outline-color .3s; outline: 2px solid transparent; outline-offset: 5px; }
.cf-pieza__img img { width: 100%; height: 100%; object-fit: cover; }
.cf-pieza:hover .cf-pieza__img { transform: translateY(-6px); }
.cf-pieza.on .cf-pieza__img { outline-color: var(--am); }
.cf-pieza__m { position: absolute; left: 0; top: calc(100% + 12px); display: grid; white-space: nowrap; font-size: .78rem; opacity: .65; transition: opacity .3s; }
.cf-pieza__m b { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; line-height: 1.05; }
.cf-pieza.on .cf-pieza__m, .cf-pieza:hover .cf-pieza__m { opacity: 1; color: var(--am); }
.cf-pieza[data-f="prensa"] .cf-pieza__m, .cf-pieza[data-f="mupi"] .cf-pieza__m { top: calc(100% + 50px); }
.cf-persona { position: relative; flex: none; width: calc(var(--w) * var(--ppm)); height: calc(var(--hh) * var(--ppm)); margin-left: calc(var(--ppm) * .2); }
.cf-persona svg { width: 100%; height: 100%; fill: #ffffff40; }
.cf-persona em { position: absolute; left: 50%; top: calc(100% + 12px); translate: -50% 0; font-style: normal; font-size: .78rem; opacity: .55; white-space: nowrap; }
.cf-ficha { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4cqw; align-items: center; }
.cf-ficha__foto { display: grid; place-items: center; }
.cf-ficha__foto img { width: auto; max-width: 100%; max-height: min(calc(var(--h) * .7), 680px); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.cf-ficha__n { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 4.6cqw, 3.8rem); line-height: .9; color: var(--am); }
.cf-ficha__m { font-weight: 700; letter-spacing: .08em; margin: 6px 0 18px !important; opacity: .8; }
.cf-ficha__d { margin-top: 14px !important; }
.cf-ficha.on > * { animation: cf-entra .6s cubic-bezier(.2,.9,.25,1) both; }
.cf-ficha.on > *:last-child { animation-delay: .08s; }

/* ---------- 06 25N: el encarte ---------- */
.cf-25n { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5cqw; align-items: center; }
.cf-25n .cf-etq { color: var(--mo); }
.cf-25n .cf-etq span { color: var(--mo); opacity: .6; }
.cf-25n .cf-texto--s { margin-top: 14px; }
.cf-libro__bots { margin-top: 26px; color: var(--mo); }
.cf-libro__bots button.on { background: var(--mo); color: #fff; border-color: var(--mo); }
.cf-25n__esc { display: grid; justify-items: center; perspective: 2000px; padding: 20px 0; overflow: hidden; }
.cf-libro { position: relative; width: min(330px, 34cqw); aspect-ratio: 612 / 868; transform-style: preserve-3d; transform: translateX(0) scale(1) rotateY(0deg); transition: transform .85s cubic-bezier(.65,0,.3,1); }
.cf-libro[data-e="abierto"] { transform: translateX(calc(50% * var(--s, .85))) scale(var(--s, .85)) rotateY(0deg); }
.cf-libro[data-e="dorso"] { transform: translateX(0) scale(1) rotateY(180deg); }
.cf-libro__base, .cf-libro__tapa { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-libro__tapa { transform-origin: left center; transform: rotateY(0deg) translateZ(1px); transition: transform .85s cubic-bezier(.65,0,.3,1); }
.cf-libro[data-e="abierto"] .cf-libro__tapa { transform: rotateY(-180deg) translateZ(-1px); }
.cf-cara { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.22); }
.cf-libro[data-e="abierto"] .cf-cara { box-shadow: 0 20px 40px rgba(0,0,0,.16); }
.cf-libro[data-e="abierto"] .cf-libro__base .cf-cara--f::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); pointer-events: none; }
.cf-cara img { width: 100%; height: 100%; object-fit: cover; }
.cf-cara--b { transform: rotateY(180deg); }
.cf-troquel, .cf-solapa { position: absolute; left: 32.43%; top: 18.55%; width: 34.97%; aspect-ratio: 1; border-radius: 50%; }
.cf-troquel { pointer-events: none; background: var(--mo); box-shadow: inset 0 3px 8px rgba(0,0,0,.35); }
.cf-troquel__esc { width: 100%; height: 100%; }
.cf-troquel .cf-escudo .e1, .cf-troquel .cf-escudo .e3 { fill: #fff; }
.cf-troquel .cf-escudo .e2 { fill: var(--mo); }
.cf-solapa { z-index: 2; cursor: pointer; border: 0; padding: 0; background: url('../assets/proyectos/calatrava/enc-portada.webp') 49.87% 24.62% / 285.98% auto no-repeat; transform-origin: 0% 50%; transform: perspective(700px) rotateY(0); transition: transform .7s cubic-bezier(.3,1.3,.5,1), filter .7s; }
.cf-libro.lev .cf-solapa { transform: perspective(700px) rotateY(-112deg); filter: brightness(.75); }
.cf-libro__pista { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 20px; border: 2px solid var(--mo); border-radius: 99px; background: none; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mo); transition: background .25s, color .25s; }
.cf-libro__pista svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-libro__pista:hover, .cf-libro__pista.on { background: var(--mo); color: #fff; }
/* mientras nadie lo ha tocado, el escudo se entreabre solo cada poco y un anillo lo señala: así se entiende que se levanta */
.cf-anillo { position: absolute; left: 32.43%; top: 18.55%; width: 34.97%; aspect-ratio: 1; border-radius: 50%; z-index: 3; pointer-events: none; box-shadow: 0 0 0 3px var(--mo); opacity: 0; }
.cf-libro[data-e="portada"]:not(.usado):not(.lev) .cf-anillo { animation: cf-anillo 2.6s ease-out infinite; }
.cf-libro[data-e="portada"]:not(.usado):not(.lev) .cf-solapa { animation: cf-asoma 2.6s cubic-bezier(.3,1.3,.5,1) infinite; }
@keyframes cf-anillo { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes cf-asoma { 0%, 55%, 100% { transform: perspective(700px) rotateY(0); } 70% { transform: perspective(700px) rotateY(-38deg); filter: brightness(.85); } 85% { transform: perspective(700px) rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .cf-anillo, .cf-solapa { animation: none !important; } }

/* ---------- 07 guerrilla ---------- */
.cf-guerrilla { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 5cqw; align-items: center; background: var(--gr2); color: #fff; }
.cf-guerrilla .cf-etq { color: var(--am); }
.cf-guerrilla__foto { overflow: hidden; max-height: calc(var(--h) * .86); }
.cf-guerrilla__foto img { width: 100%; transform: scale(calc(1 + var(--z, 0) * .3)); transform-origin: 50% 40%; will-change: transform; }
.cf-datos { display: grid; gap: 0; margin-top: clamp(28px, 3.5cqw, 46px) !important; }
.cf-datos div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #ffffff26; }
.cf-datos dt { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: 1.2rem; color: var(--am); }
.cf-datos dd { opacity: .85; }

/* ---------- 08 la web ---------- */
.cf-web { background: var(--papel); }
.cf-web .cf-etq span { color: var(--oro); }
.cf-nav { margin-top: clamp(34px, 4cqw, 52px); }
.cf-nav button:not(.on):hover { background: #00000010; }
.cf-web__esc { --alto: min(calc(var(--h) * .74), 760px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3cqw, 44px); margin-top: 22px; align-items: start; }
.cf-wf figcaption, .cf-nav__nota { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }
.cf-nav__nota { text-transform: none; letter-spacing: 0; font-size: .98rem; font-weight: 500; opacity: .75; margin: 12px 0 0; }
.cf-wf__in { position: relative; height: calc(var(--alto) + 42px); background: #fff; cursor: pointer; box-shadow: 0 1px 0 #00000014; }
.cf-wf__in img { height: 100%; width: auto; max-width: none; }
.cf-wf__vista { position: absolute; left: 0; right: 0; background: rgba(239,209,68,.32); border: 2px solid var(--tinta); transition: top .08s linear; pointer-events: none; }
.cf-navegador { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.18), 0 0 0 1px #0000001a; }
.cf-navegador__barra { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; background: var(--gr); }
.cf-navegador__barra i { width: 11px; height: 11px; border-radius: 50%; background: #ffffff38; }
.cf-navegador__url { margin-left: 12px; flex: 1; max-width: 440px; background: #ffffff14; color: #fffc; border-radius: 99px; padding: 4px 14px; font-size: .82rem; }
.cf-navegador__url b { font-weight: 500; color: var(--am); }
.cf-navegador__vp { height: var(--alto); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.cf-navegador__vp img { width: 100%; }
.cf-det { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3cqw, 40px); }
.cf-det figure { display: grid; gap: 10px; align-content: start; }
.cf-det img { width: 100%; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.cf-det--2 img { width: min(100%, 420px); }
.cf-det figcaption { font-size: .98rem; opacity: .78; max-width: 30em; }

/* ---------- cierre ---------- */
.cf-fin { display: grid; justify-items: center; gap: 18px; padding: clamp(80px, 10cqw, 150px) 20px; background: var(--am); text-align: center; }
.cf-fin__esc { width: min(36cqw, calc(var(--h) * .24)); }
.cf-fin__h { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 8cqw, 7rem); line-height: .85; }
.cf-fin__s { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

/* ---------- sin movimiento / móvil ---------- */
.cf--plano .cf-cam { height: auto; padding: 70px 20px; }
.cf--plano .cf-fijo { position: relative; height: auto; }
.cf--plano .cf-pasos > li > div > p { max-height: none; margin-top: 6px; }
.cf--plano .cf-pasos > li { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cf-led__t, .cf-hero__campo * { animation: none; stroke-dashoffset: 0; } }
@container (max-width: 760px) {
  .cf-dos, .cf-fijo, .cf-tipo__rej, .cf-ficha, .cf-25n, .cf-guerrilla, .cf-det { grid-template-columns: 1fr; }
  .cf-obj { grid-template-columns: 1fr 1fr; }
  .cf-jer li { grid-template-columns: 1fr; gap: 4px; }
  .cf-lienzo__in { height: auto; width: 74%; margin: 60px auto; }
  .cf-web__esc { grid-template-columns: 1fr; }
  .cf-wf { display: none; }
  .cf-libro { width: min(260px, 40cqw); }
  .cf-datos div { grid-template-columns: 1fr; gap: 2px; }
}
.cf-libro img, .cf-libro .cf-escudo { pointer-events: none; }
.cf--plano .cf-pasos > li .cf-pasos__ley { max-height: none; margin-top: 6px; }

/* ---------- móvil: la camiseta enmarcada cabe entera en la pantalla, debajo de los pasos ---------- */
@media (max-width: 760px) {
  .cf-cam { overflow: clip; }
  .cf-fijo { grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 12px; padding-top: 26px; padding-bottom: 16px; box-sizing: border-box; }
  .cf-pasos > li { padding: 7px 0; grid-template-columns: 26px 1fr; }
  .cf-pasos b { font-size: 1.08rem; }
  .cf-pasos > li > div > p, .cf-pasos__ley li { font-size: .84rem; line-height: 1.35; }
  .cf-pasos__ley ul { gap: 4px; margin-top: 6px; }
  .cf-lienzo { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 0; }
  .cf-lienzo__in { height: 100%; max-height: 100%; }
}
@media (max-width: 760px) {
  /* la camiseta enmarcada: solo el paso activo, para que la camiseta tenga sitio */
  .cf-fijo { grid-template-columns: minmax(0, 1fr); }
  .cf-pasos > li:not(.on) { display: none; }
  .cf-pasos > li.on { opacity: 1; border-top: 0; }
  .cf-pasos b { font-size: 1.3rem; }
  .cf-pasos > li > div > p, .cf-pasos__ley li { font-size: .92rem; }
  /* formatos a escala: fila deslizable, con margen para el dedo */
  .cf-escala { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; scroll-snap-type: x proximity; }
  .cf-escala__fila { min-width: max-content; }
}

/* ---------- formatos: botones con los nombres (solo en el móvil) ---------- */
.cf-escala__chips { display: none; }

/* ===================== MÓVIL ===================== */
@media (max-width: 760px) {
  /* líneas de cal: centradas y a un tamaño que se vea; aire antes del fondo oscuro */
  .cf-cal { aspect-ratio: auto; min-height: 0; overflow: hidden; padding-bottom: 30px; }
  .cf-cal svg { position: relative; inset: auto; display: block; width: 200%; height: auto; aspect-ratio: 1200 / 140; margin-left: -50%; }

  /* ruleta: grande y centrada, con el mensaje debajo */
  .cf-rul { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 22px; }
  .cf-rul__rueda { width: min(88cqw, 440px); }
  .cf-rul__txt { font-size: clamp(3rem, 15cqw, 4.4rem); }
  .cf-rul__otra { margin-top: 20px; }

  /* la camiseta enmarcada: el lienzo conserva siempre las proporciones del cartel */
  .cf-lienzo { container-type: size; }
  .cf-lienzo__in { width: min(100cqw, calc(100cqh * 400 / 520)); height: auto; max-height: none; aspect-ratio: 400 / 520; margin: 0 auto; }

  /* formatos: toda la fila cabe a lo ancho, sin deslizar; los nombres van en botones debajo */
  .cf-escala { overflow: visible; margin-left: 0; margin-right: 0; padding: 0 0 18px; scroll-snap-type: none; }
  .cf-escala__fila { min-width: 0; gap: calc(var(--ppm) * .3); padding-right: calc(var(--ppm) * .1); }
  .cf-pieza__m { display: none; }
  .cf-pieza__img { outline-offset: 3px; }
  .cf-persona em { font-size: .62rem; }
  .cf-escala__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
  .cf-escala__chips button { display: grid; text-align: left; gap: 1px; padding: 8px 12px; border: 1px solid #ffffff40; border-radius: 10px; background: none; color: inherit; font-size: .7rem; line-height: 1.2; opacity: .75; transition: background .2s, color .2s, opacity .2s; }
  .cf-escala__chips b { font-family: var(--tit); font-weight: 900; text-transform: uppercase; font-size: 1rem; }
  .cf-escala__chips button.on { background: var(--am); border-color: var(--am); color: #111; opacity: 1; }
}

/* ---------- la camiseta enmarcada: puntos de paso (solo en el móvil) ---------- */
.cf-cam__puntos { display: none; }
@media (max-width: 1100px) {
  .cf--auto .cf-cam { height: auto; padding-bottom: 40px; }
  .cf--auto .cf-cam .cf-fijo { position: relative; height: calc(var(--h) * .94); }
  .cf--auto .cf-cam__puntos { display: flex; gap: 8px; margin-top: 14px; }
  .cf-cam__puntos button { min-width: 44px; height: 34px; padding: 0 10px; border-radius: 99px; border: 1.5px solid #ffffff55; background: none; color: #fff;
    font-family: var(--tit); font-weight: 900; font-size: .95rem; letter-spacing: .02em; opacity: .7; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
  .cf-cam__puntos button.on { background: var(--am); border-color: var(--am); color: #111; opacity: 1; }
}
@media (max-width: 1100px) {
  /* el texto ocupa siempre lo mismo: la camiseta no cambia de tamaño al pasar de paso */
  .cf--auto .cf-cam .cf-pasos { min-height: 236px; align-content: start; }
}
@media (max-width: 760px) {
  /* formatos: los cinco botones en una sola fila */
  .cf-escala__chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .cf-escala__chips button { padding: 7px 4px; text-align: center; font-size: .54rem; letter-spacing: 0; border-radius: 8px; }
  .cf-escala__chips b { font-size: .8rem; }
}
