/* MA Estudio — tema de WordPress 1.1 · ficha de proyecto cinemática (igual a la maqueta aprobada: fondo azul).
   Copiado de la maqueta (fichas.css, sección A) + piezas propias de WordPress al final. */
/* ======================= A · CINEMÁTICA ======================= */
.v-cine { background: var(--brand); color: var(--on-brand, #fff); padding-bottom: 20px; } /* 27 oct: fondo azul (el negro se descartó) */
.v-cine .eyebrow { color: var(--lime); }
.cine-hero { height: 240vh; position: relative; }
.cine-hero .stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.cine-hero .frame { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p, 0)) * 16%) calc((1 - var(--p, 0)) * 22%) round calc((1 - var(--p, 0)) * 34px)); }
.cine-hero .frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--p, 0) * .25)); }
.cine-hero .frame::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, calc(.1 + var(--p, 0) * .4)); }
.cine-title { position: relative; text-align: center; color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); padding: 0 var(--gutter); transform: translateY(calc(var(--p, 0) * -6vh)); }
.cine-title small { font-family: var(--f-mark); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.cine-title h1 { font-size: clamp(64px, 13vw, 230px); margin-top: 10px; }
.cine-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; font-family: var(--f-mark); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; opacity: calc(1 - var(--p, 0) * 4); }
.cine-cue::after { content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: currentColor; animation: cue 1.6s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.cine-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-block: 1px solid rgba(255, 255, 255, .18); padding: 26px 0; margin: clamp(60px, 7vw, 100px) 0 0; }
.cine-meta dt { font-family: var(--f-mark); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; opacity: .55; }
.cine-meta dd { margin: 6px 0 0; font-size: 15px; }
.cine-statement { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(32px, 4.4vw, 70px); line-height: 1.02; margin: clamp(80px, 10vw, 160px) 0; max-width: 24ch; }
.cine-statement .lw { opacity: .16; transition: opacity .35s, color .35s; }
.cine-statement .lw.on { opacity: 1; }
.cine-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); }
.cine-col .n { font-family: var(--f-mark); color: var(--lime); font-size: 13px; }
.cine-col h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: clamp(30px, 3vw, 44px); margin: 10px 0 14px; }
.cine-col p { margin: 0 0 10px; opacity: .78; font-size: 16px; }
.hscroll { position: relative; height: var(--hs-h, 300vh); margin-top: clamp(80px, 10vw, 150px); }
.hscroll .stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hs-head { display: flex; justify-content: space-between; align-items: baseline; }
.hs-head .eyebrow { margin: 0; }
.hs-count { font-family: var(--f-mark); font-size: 14px; opacity: .7; } .hs-count b { font-weight: 400; opacity: 1; color: #fff; }
.hs-track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.hs-track figure { margin: 0; position: relative; flex: none; }
.hs-track button { display: block; height: 62vh; border-radius: 20px; overflow: hidden; }
.hs-track img { height: 100%; width: auto; max-width: none; transition: transform 1s var(--ease); } /* foto completa, sin recorte */
.hs-track button:hover img { transform: scale(1.04); }
.hs-track figcaption { position: absolute; top: 14px; left: 16px; font-family: var(--f-mark); font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hs-bar { margin: 0 var(--gutter); height: 2px; background: rgba(255, 255, 255, .16); }
.hs-bar i { display: block; height: 100%; background: #fff; transform: scaleX(var(--hp, 0)); transform-origin: left; }
.cine-pal { display: flex; height: clamp(140px, 16vw, 230px); border-radius: 20px; overflow: hidden; margin-top: clamp(80px, 10vw, 150px); }
.cine-pal div { flex: 1; display: flex; align-items: flex-end; padding: 16px; font-family: var(--f-mark); font-size: 13px; transition: flex .7s var(--ease); }
.cine-pal div:hover { flex: 3; }
.v-cine .next-band.on-dark { border-top-color: rgba(255, 255, 255, .25); }
.v-cine .next-band.on-dark small { color: var(--lime); }
.v-cine .next-band.on-dark:hover h2 { color: var(--lime); }
@media (max-width: 860px) {
  .cine-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cine-cols { grid-template-columns: 1fr; }
  .hscroll { height: auto; } .hscroll .stick { position: static; height: auto; padding-block: 10px; }
  .hs-track { width: auto; transform: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .hs-track figure { scroll-snap-align: center; }
  .hs-track button { width: 82vw; height: auto; } .hs-track img { width: 100%; height: auto; }
  .hs-bar { display: none; }
}

/* 27 oct: copiar el código de color de la paleta (el ícono aparece al pasar el mouse) */
.cine-pal div { cursor: copy; }
.cine-pal .copiar { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.cine-pal .copiar .ic-copy { width: 15px; height: 15px; opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .3s var(--ease); }
.cine-pal div:hover .ic-copy, .cine-pal .copiar:focus-visible .ic-copy { opacity: 1; transform: none; }
.cine-pal .copiar.is-ok::after { content: "¡Copiado!"; margin-left: 4px; }

/* ---------- Solo en WordPress ---------- */
.cine-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cine-tags a { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 3px 10px; font-size: 13px; transition: background .3s, color .3s; }
.cine-tags a:hover { background: #fff; color: var(--brand); }
.cine-intro { max-width: 62ch; font-size: clamp(18px, 1.6vw, 22px); opacity: .85; margin: clamp(50px, 6vw, 80px) 0 0; }
.cine-prose { max-width: 70ch; margin-top: clamp(60px, 7vw, 100px); font-size: 18px; }
.cine-prose a { color: var(--lime); text-decoration: underline; }
.cine-col ul { margin: 0 0 10px; padding-left: 18px; opacity: .78; font-size: 16px; }
/* Video real del proyecto (Vimeo, YouTube o mp4): se carga al hacer clic */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; margin-top: clamp(80px, 10vw, 150px); }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .play-poster { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video-embed .play-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-embed .play-poster span { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.video-embed .play-poster:hover span { transform: scale(1.08); }
.video-embed .play-poster svg { width: 30px; margin-left: 5px; }
body.single-proyecto { background: var(--brand); }
body.single-proyecto .site-footer { margin-top: 0; }
