/* ================================
   EL CUBO — page styles
   Eventos · Memorias · Vida
================================ */

.el-cubo-page {
    background: var(--bg-dark);
}

/* Bottom Maya banner only on this page — no top strip, so cancel the
   shared has-site-banners top reservation instead of leaving a blank gap. */
body.el-cubo-page.has-site-banners {
    padding-top: 0;
}

body.el-cubo-page.has-site-banners .navbar {
    top: 0;
}

/* ── HERO ──
   Full first-viewport shader tunnel with EL CUBO dead-center over it,
   same layout mechanics as the Authors hero (absolute canvas + absolute
   centered title container inside a 100vh section right below the
   sticky navbar). */
.el-cubo-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.el-cubo-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

.el-cubo-title-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    pointer-events: none;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.el-cubo-title-text {
    display: block;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-size: clamp(40px, 11vw, 128px);
    letter-spacing: 0.1em;
    color: var(--gold-light);
    filter: drop-shadow(0 0 24px rgba(255, 157, 31, 0.55))
            drop-shadow(0 0 56px rgba(255, 157, 31, 0.3));
}

.el-cubo-title-effect {
    display: inline-flex;
}

.el-cubo-title-text .char {
    display: inline-block;
    white-space: pre;
    will-change: transform, opacity, background;
}

.el-cubo-title-sub {
    font-family: var(--font-title);
    font-size: clamp(13px, 1.6vw, 17px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .el-cubo-title-container {
        gap: 12px;
    }
}

/* ============================================
   SCROLL-DOWN INDICATOR — EL CUBO HERO
   ============================================ */

.el-cubo-scroll-cue {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 21;
    width: 64px;
    height: 64px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.el-cubo-scroll-cue.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.el-cubo-scroll-cue-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.5;
    animation: el-cubo-scroll-pulse 2s ease-out infinite;
}

@keyframes el-cubo-scroll-pulse {
    0%   { opacity: 0.6; transform: scale(0.5); }
    50%  { opacity: 0.45; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.6); }
}

.el-cubo-scroll-cue-circle {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: filter 0.3s ease;
}

.el-cubo-scroll-cue-circle::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 2px solid rgba(4, 6, 10, 0.45);
}

.el-cubo-scroll-cue-circle svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 2;
    stroke: #04060a;
}

.el-cubo-scroll-cue:hover .el-cubo-scroll-cue-circle {
    filter: brightness(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .el-cubo-scroll-cue-pulse {
        animation: none;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .el-cubo-scroll-cue {
        bottom: 30px;
        width: 52px;
        height: 52px;
    }
    .el-cubo-scroll-cue-circle {
        width: 30px;
        height: 30px;
        top: 11px;
        left: 11px;
    }
    .el-cubo-scroll-cue-circle svg {
        width: 13px;
        height: 13px;
    }
}
