/* ============ HISTORIA DE NUESTRA PARROQUIA — experiencia cinematográfica ============ */

/* ---- Variante de página completa (/historia) ---- */
.cine-page {
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 7.5rem);
    box-shadow: none;
}
/* La regla .cine (definida más abajo) pone margin: 0 auto y max-width: 1100px, que al
   estar dentro de un flex container (sub-main) encoge la escena al ancho del contenido.
   Este selector con mayor especificidad fuerza el ancho completo en /historia. */
.cine.cine-page {
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
}
.cine-page .cine-stage {
    height: auto;
    flex: 1;
    min-height: 62vh;
}

/* ---- Pantalla completa: oculta cabecera/pie de las subpáginas ---- */
.cine-body {
    background: var(--verde-oscuro);
    overscroll-behavior: none;
}

/* Bloquea el scroll de la página mientras dura el prólogo */
.cine-locked {
    overflow: hidden;
}
.cine-locked .sub-main {
    overflow: hidden;
}
.cine-body .sub-topbar,
.cine-body .sub-foot,
.cine-body .site-nav,
.cine-body .nav-backdrop,
.cine-body .nav-drawer {
    display: none;
}
.cine-body .sub-main {
    display: flex;
    flex-direction: column;
}
.cine-body .cine-page {
    min-height: 100vh;
    min-height: 100svh;
}

/* ---- Prólogo: overlay a pantalla completa; el texto sube solo ---- */
.cine-pro {
    position: fixed;
    inset: 0;
    z-index: 35;
    background:
        radial-gradient(
            ellipse at 50% 120%,
            color-mix(in srgb, var(--verde-claro) 16%, transparent),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 50% -20%,
            color-mix(in srgb, var(--oro) 12%, transparent),
            transparent 50%
        ),
        linear-gradient(180deg, var(--verde), var(--verde-oscuro));
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease,
        filter 0.9s ease,
        transform 0.9s ease;
}
.cine-pro.is-visible {
    opacity: 1;
    visibility: visible;
}
.cine-pro.is-exiting {
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px) skewX(-4deg) scale(1.04);
    filter: blur(10px);
    pointer-events: none;
}
.cine-pro-viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vh, 5rem) clamp(1.2rem, 6vw, 3rem);
}
.cine-pro-text {
    width: min(720px, 86vw);
    text-align: center;
    color: var(--crema);
    will-change: transform, opacity;
}
.cine-pro-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--oro-suave);
    font-weight: 500;
    margin-bottom: 2.6rem;
}
.cine-pro-text p {
    font-family: var(--display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.02rem, 2.6vw, 1.45rem);
    line-height: 1.9;
    color: color-mix(in srgb, var(--crema) 92%, transparent);
    margin: 0 0 1.7rem;
}
.cine-pro-text p:last-child {
    margin-bottom: 0;
}
.cine-pro-skip {
    position: absolute;
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--oro-suave) 40%, transparent);
    background: color-mix(in srgb, var(--verde-oscuro) 50%, transparent);
    color: var(--oro-suave);
    font-family: var(--sans);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}
.cine-pro-skip:hover {
    background: color-mix(in srgb, var(--oro-suave) 14%, transparent);
    transform: translateY(-2px);
}
.cine-pro-hint {
    position: absolute;
    bottom: calc(1.3rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: color-mix(in srgb, var(--crema) 50%, transparent);
    font-size: 0.64rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
}
/* Indicador de pausa: aparece al mantener presionado para leer */
.cine-pro-paused {
    position: absolute;
    top: calc(1.1rem + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--oro-suave) 45%, transparent);
    background: color-mix(in srgb, var(--verde-oscuro) 72%, transparent);
    color: var(--oro-suave);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3;
}
.cine-pro-paused.is-shown {
    opacity: 1;
    visibility: visible;
}
.cine-pro-hint::after {
    content: "";
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--oro-suave), transparent);
    animation: cineHintDrop 1.7s ease-in-out infinite;
}
@keyframes cineHintDrop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
    45% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }
    100% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
}

/* ---- Botones flotantes: pantalla completa y salir ---- */
.cine-actions {
    position: fixed;
    top: calc(0.85rem + env(safe-area-inset-top, 0px));
    left: calc(0.85rem + env(safe-area-inset-left, 0px));
    z-index: 60;
    display: flex;
    gap: 0.55rem;
}
.cine-fs,
.cine-exit {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--verde-oscuro) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--oro-suave) 35%, transparent);
    color: var(--crema);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}
.cine-fs {
    font-size: 0.95rem;
    line-height: 1;
}
.cine-fs:hover,
.cine-exit:hover {
    background: color-mix(in srgb, var(--verde-oscuro) 85%, transparent);
    transform: scale(1.06);
}

/* ---- Miniatura de la imagen actual (lado derecho, sobre la escena) ---- */
.cine-thumb {
    position: fixed;
    top: 50%;
    right: calc(1.2rem + env(safe-area-inset-right, 0px));
    transform: translateY(-50%);
    z-index: 60;
    width: clamp(220px, 32vw, 420px);
    height: clamp(165px, 24vw, 315px);
    padding: 0;
    border: 2px solid color-mix(in srgb, var(--oro-suave) 60%, transparent);
    border-radius: 16px;
    overflow: hidden;
    background: var(--verde-oscuro);
    cursor: zoom-in;
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.cine-thumb[hidden] {
    display: none;
}
.cine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}
.cine-thumb:hover {
    transform: translateY(-50%) scale(1.05);
    border-color: var(--oro-suave);
}
.cine-thumb-lupa {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid color-mix(in srgb, var(--oro-suave) 70%, transparent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    pointer-events: none;
}

/* ---- Visor de imagen ampliada con zoom ---- */
.cine-lupa {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    background: color-mix(in srgb, var(--verde-oscuro) 94%, transparent);
    color: var(--crema);
    animation: cineFadeUp 0.3s ease;
}
.cine-lupa[hidden] {
    display: none;
}
.cine-lupa-cabeza {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
}
.cine-lupa-contador {
    font-family: var(--display);
    font-style: italic;
    color: var(--oro-suave);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}
.cine-lupa-zoom {
    display: flex;
    gap: 0.5rem;
}
.cine-lupa-zoom button,
.cine-lupa-cerrar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--oro-suave) 40%, transparent);
    background: color-mix(in srgb, var(--crema) 8%, transparent);
    color: var(--crema);
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.cine-lupa-zoom button:hover,
.cine-lupa-cerrar:hover {
    background: color-mix(in srgb, var(--oro-suave) 18%, transparent);
    transform: scale(1.06);
}
.cine-lupa-marco {
    flex: 1;
    margin: 0 1rem 0.7rem;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
}
.cine-lupa-marco.is-panning {
    cursor: grabbing;
}
.cine-lupa-marco img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}
.cine-lupa-hint {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--crema) 60%, transparent);
    padding: 0 1rem 0.9rem;
}

/* ---- Aviso: voltea el teléfono ---- */
.cine-rotate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
    padding: 2rem;
    color: var(--crema);
    background:
        radial-gradient(
            ellipse at 50% 30%,
            color-mix(in srgb, var(--verde-claro) 28%, transparent),
            transparent 60%
        ),
        linear-gradient(180deg, var(--verde), var(--verde-oscuro) 90%);
}

@media (orientation: portrait) and (max-width: 820px) {
    .cine-rotate {
        display: flex;
    }
}

.cine-rotate-phone {
    width: 96px;
    height: 96px;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cine-rotate-phone span {
    position: absolute;
    width: 46px;
    height: 80px;
    border: 3px solid var(--oro-suave);
    border-radius: 11px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--oro) 12%, transparent);
    animation: cinePhoneTurn 1.9s ease-in-out infinite;
}
.cine-rotate-phone span::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 3px;
    background: var(--oro);
}
@keyframes cinePhoneTurn {
    0%,
    18% {
        transform: rotate(0deg);
    }
    55%,
    100% {
        transform: rotate(90deg);
    }
}

.cine-rotate-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    margin: 0;
}
.cine-rotate-sub {
    font-weight: 300;
    color: color-mix(in srgb, var(--crema) 82%, transparent);
    margin: 0;
    font-size: 0.95rem;
    max-width: 320px;
}
.cine-rotate-btn {
    margin-top: 1rem;
    padding: 0.72rem 1.6rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--oro-suave) 40%, transparent);
    background: transparent;
    color: var(--oro-suave);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}
.cine-rotate-btn:hover {
    background: color-mix(in srgb, var(--oro-suave) 12%, transparent);
}

.cine-section {
    background:
        radial-gradient(
            ellipse at 50% -20%,
            color-mix(in srgb, var(--oro) 14%, transparent),
            transparent 55%
        ),
        linear-gradient(180deg, var(--crema), var(--crema-alt));
}

/* ---- Contenedor del cine ---- */
.cine {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: var(--verde-oscuro);
    box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--verde-oscuro) 50%, transparent);
    /* Sin isolation para que los botones flotantes (⛶ y ✕) queden por
       encima del intro y del prólogo: si no, el contexto de apilamiento
       de .cine (nivel 0) los mantiene debajo de z-40/z-35 y la ✕ no responde. */
}

/* ---- Intro cinematográfico (cubre toda la pantalla al entrar) ---- */
.cine-intro {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.6rem clamp(1.4rem, 5vw, 3rem);
    color: var(--crema);
    background:
        radial-gradient(
            ellipse at 50% 28%,
            color-mix(in srgb, var(--verde-claro) 22%, transparent),
            transparent 60%
        ),
        radial-gradient(
            ellipse at 50% 120%,
            color-mix(in srgb, var(--oro) 18%, transparent),
            transparent 55%
        ),
        radial-gradient(ellipse at 50% 30%, var(--verde) 0%, var(--verde-oscuro) 78%);
    transition:
        opacity 1.1s ease,
        transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 1.1s ease,
        visibility 1.1s ease;
}
.cine-intro.is-exiting {
    opacity: 0;
    transform: translateX(80px) skewX(-6deg) scale(1.05);
    filter: blur(12px);
    visibility: hidden;
    pointer-events: none;
}

.cine-intro-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 20%,
        color-mix(in srgb, var(--crema) 8%, transparent),
        transparent 55%
    );
    pointer-events: none;
}

.cine-intro-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--oro-suave);
    font-weight: 500;
    opacity: 0;
    animation: cineFadeUp 0.9s ease 0.15s forwards;
}

.cine-intro-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.9rem, 5.4vw, 3.4rem);
    line-height: 1.12;
    margin: 1.1rem 0 0.7rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.06em;
    max-width: 92%;
    overflow-wrap: anywhere;
}
.cine-intro-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px) scale(0.9);
    filter: blur(5px);
    animation: cineLetterIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes cineLetterIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.cine-intro-sub {
    font-weight: 300;
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: color-mix(in srgb, var(--crema) 82%, transparent);
    max-width: 460px;
    opacity: 0;
    animation: cineFadeUp 1s ease 0.9s forwards;
}
@keyframes cineFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cine-intro-btn {
    margin-top: 1.8rem;
    padding: 0.95rem 2.3rem;
    border-radius: 999px;
    border: 1px solid var(--oro-suave);
    background: linear-gradient(160deg, var(--oro), var(--bronce));
    color: var(--crema);
    font-family: var(--sans);
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    animation: cineFadeUp 0.9s ease 1.15s forwards;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}
.cine-intro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
    filter: brightness(1.06);
}

.cine-intro-hint {
    margin-top: 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--crema) 50%, transparent);
    opacity: 0;
    animation: cineFadeUp 0.9s ease 1.4s forwards;
}

/* ---- Viento (pétalos) ---- */
.cine-wind {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.cine-petal {
    position: absolute;
    width: 12px;
    height: 8px;
    border-radius: 60% 0 60% 50%;
    background: linear-gradient(135deg, var(--oro-suave), var(--oro));
    opacity: 0;
    animation: cinePetal linear infinite;
    will-change: transform, opacity;
}
.cine-petal:nth-child(3n) {
    background: linear-gradient(135deg, var(--oro-claro), var(--bronce));
}
.cine-petal:nth-child(3n + 1) {
    background: color-mix(in srgb, var(--crema) 88%, transparent);
}
@keyframes cinePetal {
    0% {
        opacity: 0;
        transform: translate3d(-40px, 0, 0) rotate(0deg) scale(0.85);
    }
    12% {
        opacity: var(--op, 0.95);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--x, 1200px), var(--y, -60px), 0)
            rotate(var(--rot, 420deg)) scale(1.05);
    }
}

/* ---- Escenario ---- */
.cine-stage {
    position: relative;
    height: clamp(380px, 62vw, 600px);
    background: var(--verde-oscuro);
    overflow: hidden;
}
.cine-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06) translateX(8%);
    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 1s ease,
        visibility 1s;
}
.cine-scene.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
    z-index: 2;
}
.cine-scene.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: scale(1.03) translateX(-7%);
    filter: blur(6px);
    z-index: 3;
}

.cine-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    transition:
        transform 1s ease,
        opacity 0.45s ease,
        visibility 0.45s ease;
}
/* Ken Burns cinematográfico: paneo + zoom, alternando dirección por escena */
.cine-scene:nth-child(odd).is-active .cine-img {
    animation: cineKenBurnsIn 13s ease-in-out forwards;
}
.cine-scene:nth-child(even).is-active .cine-img {
    animation: cineKenBurnsOut 13s ease-in-out forwards;
}
@keyframes cineKenBurnsIn {
    from {
        transform: scale(1.06) translate(-1.6%, -1.2%);
    }
    to {
        transform: scale(1.22) translate(1.6%, 1.2%);
    }
}
@keyframes cineKenBurnsOut {
    from {
        transform: scale(1.22) translate(1.6%, 1.2%);
    }
    to {
        transform: scale(1.06) translate(-1.6%, -1.2%);
    }
}

.cine-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 50% 26%,
            color-mix(in srgb, var(--verde-claro) 28%, transparent),
            transparent 55%
        ),
        radial-gradient(
            circle at 50% 30%,
            var(--verde),
            var(--verde-oscuro) 78%
        );
}
.cine-img-fallback svg {
    width: 26%;
    stroke: var(--oro-suave);
    fill: none;
    stroke-width: 1.1;
    filter: drop-shadow(0 0 26px color-mix(in srgb, var(--oro-suave) 50%, transparent));
}

.cine-scrim {
    position: absolute;
    inset: 0;
    background:
        /* Viñeta cinematográfica */
        radial-gradient(
            ellipse at 50% 46%,
            transparent 52%,
            rgba(3, 7, 5, 0.5) 100%
        ),
        linear-gradient(
            180deg,
            rgba(6, 12, 9, 0.22) 0%,
            transparent 40%,
            rgba(6, 12, 9, 0.94) 100%
        );
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

/* Grano de película: textura de ruido que vibra sutilmente */
.cine-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    animation: cineGrain 0.85s steps(3) infinite;
}
@keyframes cineGrain {
    0% {
        transform: translate(0, 0);
        opacity: 0.05;
    }
    33% {
        transform: translate(-2px, 1px);
        opacity: 0.09;
    }
    66% {
        transform: translate(2px, -1px);
        opacity: 0.06;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0.05;
    }
}

/* Barras de cine (letterbox) sutiles arriba y abajo */
.cine-stage::before,
.cine-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(5px, 1.4vh, 12px);
    z-index: 6;
    pointer-events: none;
}
.cine-stage::before {
    top: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 5, 3, 0.9),
        rgba(2, 5, 3, 0.28)
    );
}
.cine-stage::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(2, 5, 3, 0.9), rgba(2, 5, 3, 0.28));
}

.cine-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem clamp(1.2rem, 4vw, 2.6rem) clamp(1.4rem, 3.5vw, 2.1rem);
    color: var(--crema);
    max-width: 760px;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}
.cine-scene.is-active .cine-content {
    animation: cineContentIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}
@keyframes cineContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cine-fecha {
    display: inline-block;
    font-family: var(--display);
    font-style: italic;
    color: var(--oro-suave);
    font-size: clamp(1.05rem, 2.6vw, 1.45rem);
    letter-spacing: 0.06em;
    border-left: 3px solid var(--oro);
    padding-left: 0.8rem;
    margin-bottom: 0.5rem;
}
.cine-titulo {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.45rem, 3.8vw, 2.3rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
}

/* Máquina de escribir: cada letra entra con su animación y cursor parpadeante */
.cine-type-char {
    display: inline;
    opacity: 0;
    will-change: opacity, transform;
    animation: cineTypeIn 0.32s ease forwards;
}
@keyframes cineTypeIn {
    from {
        opacity: 0;
        transform: translateY(0.28em);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}
.cine-type-caret {
    display: inline-block;
    color: var(--oro);
    font-style: normal;
    animation: cineCaretBlink 0.8s steps(1) infinite;
}
@keyframes cineCaretBlink {
    50% {
        opacity: 0;
    }
}
.cine-desc {
    font-weight: 300;
    line-height: 1.65;
    font-size: clamp(0.88rem, 1.7vw, 1.02rem);
    color: color-mix(in srgb, var(--crema) 90%, transparent);
    max-width: 620px;
    overflow: visible;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ---- Controles ---- */
.cine-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.2rem, 4vw, 2rem);
    background: var(--verde-oscuro);
    border-top: 1px solid color-mix(in srgb, var(--oro-suave) 18%, transparent);
    color: color-mix(in srgb, var(--crema) 85%, transparent);
}
.cine-count {
    font-family: var(--display);
    font-style: italic;
    color: var(--oro-suave);
    font-size: 1rem;
    letter-spacing: 0.08em;
    min-width: 4.6rem;
}
.cine-dots {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
.cine-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: color-mix(in srgb, var(--crema) 32%, transparent);
    cursor: pointer;
    transition:
        width 0.35s ease,
        background 0.35s ease;
}
.cine-dot:hover {
    background: color-mix(in srgb, var(--oro-suave) 70%, transparent);
}
.cine-dot.is-active {
    width: 28px;
    background: var(--oro);
}
.cine-nav {
    display: flex;
    gap: 0.55rem;
}
.cine-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--oro-suave) 40%, transparent);
    background: color-mix(in srgb, var(--crema) 6%, transparent);
    color: var(--crema);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}
.cine-arrow:hover {
    background: color-mix(in srgb, var(--oro-suave) 18%, transparent);
    border-color: var(--oro-suave);
    transform: scale(1.06);
}
.cine-arrow:active {
    transform: scale(0.96);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .cine {
        border-radius: 20px;
    }
    .cine-stage {
        height: clamp(400px, 88vw, 520px);
    }
    .cine-page {
        min-height: calc(100vh - 7.5rem);
        border-radius: 0;
    }
    .cine-page .cine-stage {
        min-height: 55vh;
    }
    .cine-fecha {
        font-size: 0.9rem;
    }
    .cine-titulo {
        font-size: clamp(1.15rem, 5vw, 1.6rem);
    }
    .cine-desc {
        max-width: 100%;
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

@media (max-width: 480px) {
    .cine-ui {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.7rem;
    }
    .cine-count {
        min-width: 0;
    }
    .cine-dots {
        order: 3;
        flex-basis: 100%;
    }
    .cine-intro-btn {
        padding: 0.85rem 1.8rem;
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cine-intro {
        display: none;
    }
    .cine-scene {
        transform: none;
    }
    .cine-img {
        transform: none;
        animation: none;
    }
    .cine-content {
        opacity: 1;
        transform: none;
    }
}

/* ---- Teléfonos en horizontal: compacta el escenario ---- */
@media (orientation: landscape) and (max-height: 520px) {
    .cine-page .cine-stage {
        min-height: 0;
    }
    .cine-ui {
        padding: 0.5rem clamp(1rem, 4vw, 2rem);
    }
    .cine-arrow {
        width: 36px;
        height: 36px;
    }
    .cine-content {
        padding: 0.9rem clamp(1.2rem, 4vw, 2.6rem) 0.8rem;
    }
    .cine-fecha {
        font-size: 0.92rem;
        margin-bottom: 0.3rem;
    }
    .cine-titulo {
        font-size: clamp(1.05rem, 3.5vw, 1.5rem);
        margin-bottom: 0.25rem;
    }
    .cine-desc {
        font-size: 0.85rem;
        max-width: 100%;
    }
    .cine-rotate {
        display: none;
    }
}

/* ---- Rotación con movimiento reducido: sin animación ---- */
@media (prefers-reduced-motion: reduce) {
    .cine-rotate-phone span {
        animation: none;
        transform: rotate(90deg);
    }
}

/* ============================================================
   MÓVIL: la foto y el texto ya no se superponen; el texto va
   sobre un fondo sólido (oscuro) y puede desplazarse solo.
   - Vertical:   foto arriba, texto debajo.
   - Horizontal: foto a la izquierda, texto a la derecha.
   ============================================================ */
@media (max-width: 820px) and (orientation: portrait) {
    .cine-scene {
        display: flex;
        flex-direction: column;
    }
    .cine-img,
    .cine-img-fallback {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        width: 100%;
        height: 34vh;
        min-height: 190px;
        max-height: 320px;
    }
    .cine-scrim {
        display: none;
    }
    .cine-content {
        position: relative;
        inset: auto;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        max-width: none;
        background: linear-gradient(180deg, var(--verde), var(--verde-oscuro));
        padding: 1.15rem clamp(1.2rem, 4vw, 2rem) 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--oro-suave) 40%, transparent)
            transparent;
    }
    /* El contenido breve se muestra directo (sin animación de entrada) */
    .cine-scene.is-active .cine-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    /* Miniatura compacta, centrada dentro del área de la foto */
    .cine-thumb {
        top: 17vh;
        width: clamp(110px, 30vw, 170px);
        height: clamp(82px, 22vw, 128px);
    }
}

@media (orientation: landscape) and (max-height: 560px) {
    .cine-page .cine-stage {
        min-height: 0;
    }
    .cine-scene {
        display: flex;
        flex-direction: row;
    }
    .cine-img,
    .cine-img-fallback {
        position: relative;
        inset: auto;
        flex: 0 0 42%;
        width: auto;
        min-width: 0;
        height: 100%;
        min-height: 0;
    }
    .cine-scrim {
        display: none;
    }
    .cine-content {
        position: relative;
        inset: auto;
        flex: 1 1 auto;
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        max-width: none;
        background: linear-gradient(180deg, var(--verde), var(--verde-oscuro));
        padding: 0.9rem 1.1rem 1rem;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--oro-suave) 40%, transparent)
            transparent;
    }
    .cine-scene.is-active .cine-content {
        animation: none;
        opacity: 1;
        transform: none;
    }
    /* Miniatura compacta dentro del área de la foto (columna izquierda) */
    .cine-thumb {
        right: auto;
        left: calc(42% - 0.9rem);
        transform: translate(-100%, -50%);
        width: clamp(96px, 24vw, 150px);
        height: clamp(70px, 18vw, 110px);
    }
    .cine-thumb:hover {
        transform: translate(-100%, -50%) scale(1.05);
    }
}
