/* ====================== INTRO ====================== */
.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: theme 10s linear infinite; /*velocidad de cambio*/
}

/* Capas giratorias */
.intro-screen::before,
.intro-screen::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.07);
    animation: background 90s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.intro-screen::after {
    left: 15%;
    animation-delay: -30s;
    animation-direction: reverse;
    background: rgba(255, 255, 255, 0.05);
}

/* colores*/
@keyframes theme {
    0%   { background: #fe4273; }
    16%  { background: #c00128; }
    33%  { background: #04294d; }
    50%  { background: #356b87; }
    66%  { background: #fe4273; }
    83%  { background: #c00128; }
    100% { background: #fe4273; }
}

/* Animación de rotación de las capas */
@keyframes background {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenedor del video */
.intro-wrapper {
    position: relative;
    z-index: 2;
    max-width: 380px;
    width: 90%;
    padding: 20px;
}

.intro-video {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    background: transparent;
}

.intro-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    padding: 0 20px;
    box-sizing: border-box;
}

.intro-video {
    width: 100% !important;
    height: auto !important;
    max-width: 580px;
    border-radius: 16px;
    display: block;
}

/* Animación de salida */
.intro-screen.fade-out {
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* === Responsive para telefonos=== */
@media (max-width: 576px) {
    .intro-wrapper {
        max-width: 320px;
    }
}

@media (max-width: 400px) {
    .intro-wrapper {
        max-width: 280px;
    }
}