/* ==========================================================================
   SIN MIEDO AL CAOS — Official Website Styles
   Domain: www.sinmiedoalcaos.com
   ========================================================================== */

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

html, body {
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden; /* No scrollbars, pure fullscreen */
}

/* --- Fullscreen Responsive Video Background --- */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 0;
    pointer-events: auto; /* Permite interactuar con el reproductor oficial de YouTube */
    overflow: hidden;
    background-color: #000000;
}

.video-background iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto !important;
    z-index: 1;
}

/* --- Overlay UI Layer --- */
.overlay-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; /* Dejar pasar los clicks al reproductor de YouTube */
}

/* Top Header & Right-aligned Social Icons */
.top-header {
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Let clicks pass through to YouTube UI at top */
    z-index: 30;
}

.social-icons-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px !important; /* Separación fija en píxeles inamovible */
    width: max-content; /* Abraza solo su contenido */
    flex: 0 0 auto; /* Evita que el contenedor crezca o se estire */
    pointer-events: auto; /* Mantiene la interactividad */
}

.icon-link {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-link i, .icon-link svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #ffffff;
    fill: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.9));
}

.icon-link:hover {
    color: #ffffff;
    transform: scale(1.35);
}

/* Centered Band Logo Container (Clickable Banner Area) */
.center-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none !important;
    padding: 0 1rem;
    z-index: 20;
}

/* Text Title (Clickable Banner Area) */
.main-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 5.5rem; /* Tamaño de fuente fijo grande, sin escalar */
    text-align: center;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
    user-select: none;
    position: relative;
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.line-1, .line-2 {
    white-space: nowrap;
}

/* --- Video Lightbox Modal Popup --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    width: 92%;
    max-width: 960px;
    z-index: 1001;
    pointer-events: auto;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal.active .modal-container {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 5px;
    line-height: 1;
    z-index: 1002;
}

.close-modal-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15);
    pointer-events: auto;
    z-index: 9999 !important; /* Supremo */
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto !important;
    z-index: 9999 !important; /* Supremo */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .line-1, .line-2 {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
        justify-content: center;
    }
    .social-icons-right {
        gap: 12px !important;
        width: 100%;
        flex-wrap: wrap;
        padding: 0 10px;
    }
    .icon-link {
        padding: 8px;
    }
    .icon-link i, .icon-link svg {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
    .custom-notify-btn {
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
        left: 20px !important;
        padding: 0.5rem 1rem;
    }
    .main-title {
        font-size: 4.5rem; /* Tamaño fijo, no usa vw ni clamp */
        line-height: 0.85; /* Interlineado ultracerrado, texto casi tocándose */
    }
    .line-1, .line-2 {
        display: block; /* Fuerza a bajar la frase completa */
    }
    .modal-container {
        width: 95%;
    }
    .close-modal-btn {
        top: -45px;
        right: 0;
        font-size: 2rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0.8rem;
    }
    
    /* Corrección para iconos superiores en móviles: una sola línea siempre */
    .social-icons-right {
        flex-wrap: nowrap !important; /* Desactiva el salto de línea para forzar una sola fila */
        gap: 2.5vw !important; /* Reduce el espaciado dinámicamente usando view-width */
        justify-content: center !important; /* Asegura que el contenedor siga centrado */
        width: auto;
    }
    
    .icon-link {
        flex-shrink: 1 !important; /* Asegura que los iconos puedan encogerse un poco */
        padding: 6px;
    }

    .icon-link i, .icon-link svg {
        font-size: 17px !important;
        width: 17px !important;
        height: 17px !important;
    }

    .main-title {
        font-size: 3.5rem; /* Tamaño fijo, sin scaling */
        line-height: 0.85; /* Mantiene el interlineado cerrado */
    }

    .modal-container {
        width: 100%;
        border-radius: 0;
    }
    .modal-video-wrapper {
        border-radius: 0; /* Bordes planos para maximizar espacio en celulares */
    }
    .close-modal-btn {
        top: -40px;
        right: 5px;
        font-size: 1.8rem;
    }
}
