* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ocultar completamente header y footer en la página de opening */
body.opening-page header,
body.opening-page footer,
body.opening-page .wp-block-template-part,
body.opening-page .site-header,
body.opening-page .site-footer,
body.opening-page nav:not(.opening-container nav) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.opening-page {
    overflow-x: hidden;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: #000 !important;
    color: #fff;
    margin: 0 !important;
    padding: 0 !important;
}

body.opening-page .wp-site-blocks,
body.opening-page main {
    padding: 0 !important;
    margin: 0 !important;
}

.opening-container {
    position: relative;
    height: 300vh; /* 3x la altura del viewport para permitir scroll */
}

/* Video fijo que se controla con scroll */
.video-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

#scroll-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay sobre el video */
.opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.opening-content {
    text-align: center;
    padding: 20px;
}

.opening-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    letter-spacing: 2px;
}

.opening-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    animation: arrowBounce 1.5s infinite;
}

/* Sección final */
.opening-end {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 3;
}

.end-content {
    text-align: center;
    padding: 20px;
}

.end-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.btn-enter {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn-enter:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Barra de progreso */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.delay-1 {
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.delay-2 {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .opening-container {
        height: 250vh;
    }

    .opening-title {
        font-size: 2.5rem;
    }

    .opening-subtitle {
        font-size: 1.2rem;
    }
}
