/* Portada cinematográfica: la Justicia va y vuelve en bucle detrás del texto. */
.cinema-hero {
  --cinema-ink: #071726;
  display: grid;
  isolation: isolate;
  min-height: max(720px, calc(100svh - 88px));
  padding: 64px 0 112px;
  background: var(--cinema-ink);
}
.cinema-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #16232c; }
.cinema-poster, .cinema-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.55); }
.cinema-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #07172626 0%, #07172645 30%, #071726c9 55%, #071726eb 100%), linear-gradient(0deg, #071726dc, #07172600 32%, #07172622 80%, #07172673); }
.cinema-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: 1fr auto; gap: 48px 64px; align-items: center; }
.cinema-copy { grid-column: 2; padding-block: 12px 0; }
.cinema-copy [data-cinema-text] { display: block; width: fit-content; max-width: 100%; }
.cinema-mark-slot { display: block; width: 156px; height: 138px; margin-bottom: 28px; }
.cinema-mark { width: 100%; height: 100%; background: #d5e2ef; }
.cinema-dock { display: none; position: fixed; top: 0; left: 0; z-index: 35; pointer-events: none; transform-origin: 0 0; }
.cinema-dock-art { width: 100%; height: 100%; background: #d5e2ef; transition: background-color .8s ease; }
.cinema-docking .cinema-dock { display: block; }
.cinema-docking .cinema-mark { visibility: hidden; }
.cinema-copy h1 { font-size: clamp(3.2rem, 5.5vw, 5.2rem); line-height: 1.04; letter-spacing: -.035em; color: #f6f8fb; }
.cinema-copy h1 > span { display: block; }
.cinema-copy h1 em { color: #cfdeed; font-weight: 400; }
.cinema-role { margin-top: 24px; color: #e2ebf4; font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.cinema-intro { margin-top: 24px; color: #d0deeb; font-size: 1.05rem; line-height: 1.75; }
.cinema-hero .cinema-cta { margin-top: 28px; background: #f6f8fb; border-color: #f6f8fb; color: #0b2e52; }
.cinema-footer { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid #a7c1d745; }
.cinema-discover { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; color: #e2ebf4; font-size: .8rem; }
.cinema-discover svg { width: 20px; height: 20px; }
.cinema-hero :focus-visible { outline-color: #b6daf7; }
@media (hover: hover) {
  .cinema-discover:hover { text-decoration: underline; text-underline-offset: 5px; }
  .cinema-hero .cinema-cta:hover { background: #dce7f1; border-color: #dce7f1; box-shadow: none; }
}

/* Una sola entrada: apertura del plano, monograma y nombre. La navegación y
   la consulta siguen disponibles durante la secuencia; no se bloquea el scroll. */
.cinema-motion .cinema-media { animation: cinema-aperture 1.6s cubic-bezier(.16, 1, .3, 1) both; }
.cinema-motion :is(.cinema-mark, .cinema-dock-art) { animation: cinema-seal 1.5s var(--ease) .12s both; }
.cinema-motion .cinema-copy h1 { animation: cinema-name 1.2s var(--ease) .3s both; }
.cinema-motion :is(.cinema-role, .cinema-intro, .cinema-cta, .cinema-footer) { animation: cinema-arrive 1s ease .65s both; }
@keyframes cinema-aperture { from { clip-path: inset(0 20%); opacity: .35; transform: scale(1.035); } to { clip-path: inset(0); opacity: 1; transform: none; } }
@keyframes cinema-seal { from { opacity: 0; filter: blur(5px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } }
@keyframes cinema-name { from { clip-path: inset(0 0 100%); transform: translateY(12px); } to { clip-path: inset(0); transform: none; } }
@keyframes cinema-arrive { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
  .cinema-layout { grid-template-columns: .92fr 1.08fr; gap: 40px; }
  .cinema-hero { min-height: max(690px, calc(100svh - 88px)); }
  .cinema-copy h1 { font-size: clamp(3rem, 6.3vw, 4.6rem); }
}
@media (min-width: 701px) and (max-height: 840px) {
  .cinema-hero { min-height: calc(100svh - 88px); padding-top: 40px; }
  .cinema-layout { row-gap: 28px; }
  .cinema-mark-slot { width: 128px; height: 113px; margin-bottom: 20px; }
  .cinema-copy h1 { font-size: clamp(3rem, 5.3vw, 4.4rem); }
}
@media (max-width: 700px) {
  .cinema-hero { min-height: calc(100svh - 88px); padding: 56px 0 112px; }
  .cinema-layout { grid-template-columns: 1fr; gap: 40px; }
  .cinema-copy { grid-column: 1; text-align: center; }
  .cinema-copy [data-cinema-text] { margin-inline: auto; }
  .cinema-mark-slot { margin: 0 auto 28px; width: 128px; height: 113px; }
  .cinema-copy h1 { font-size: clamp(2.9rem, 10vw, 4.2rem); }
  .cinema-poster, .cinema-film { object-position: 30% center; }
  .cinema-hero::after { background: linear-gradient(180deg, #07172680, #071726c9 45%, #071726eb 100%); }
  .cinema-role { font-size: .67rem; letter-spacing: .12em; }
  .cinema-intro { font-size: 1rem; }
  .cinema-footer { justify-content: center; gap: 12px; padding-top: 20px; }
  .cinema-discover { font-size: .72rem; gap: 8px; }
}
@media (max-width: 600px) { .cinema-hero { min-height: calc(100svh - 64px); } }
@media (max-width: 360px) { .cinema-footer { flex-direction: column; gap: 4px; } .cinema-copy h1 { font-size: 2.8rem; } }
@media (prefers-reduced-motion: reduce) {
  .cinema-hero *, .cinema-hero *::before, .cinema-hero *::after { animation: none !important; transition: none !important; }
  .cinema-docking .cinema-dock { display: none; }
  .cinema-docking .cinema-mark { visibility: visible; }
}
@media print { .cinema-media, .cinema-docking .cinema-dock { display: none; } .cinema-docking .cinema-mark { visibility: visible; } .cinema-hero { min-height: 0; padding: 32px 0; } }
