/* Personalización de la barra de desplazamiento (Scrollbar) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #295773; /* Azul Primario */
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: #D9A05B; /* Oro al pasar el mouse */
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #295773 rgba(0, 0, 0, 0.3);
}

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

body, html {
    font-family: 'Lora', serif;
    color: white;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: black; /* Color de respaldo mientras carga el video */
}

/* Estilos para los videos de fondo */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

/* Control de visibilidad de videos */
.desktop-video {
    display: none;
}

.mobile-video {
    display: block;
}

@media (min-width: 768px) {
    .desktop-video {
        display: block;
    }
    .mobile-video {
        display: none;
    }
}

/* Capa oscura suave para mejorar legibilidad del texto */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Empieza transparente, se oscurece con el scroll */
    z-index: -1;
    transition: background 0.1s ease-out; /* Suaviza el cambio si es necesario */
}

header {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 20;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.music-btn {
    background: transparent;
    border: 1.5px solid white;
    color: white;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.music-btn i {
    font-size: 1.1rem;
}

.social-links {
    display: flex;
}

.social-links a, .social-links-footer a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-left: 15px;
}

.social-links a:hover, .social-links-footer a:hover {
    color: #D9A05B; /* Gold accent on hover */
    transform: translateY(-2px);
}

main {
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

.hero-spacer {
    height: 100vh;
    height: 100dvh; /* Pantalla completa para ocultar el contenido inicialmente */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1; /* Opacidad total para máxima claridad */
    animation: bounce 2s infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-family: 'Cinzel', serif;
    /* Sombra múltiple para crear un contorno oscuro muy marcado */
    text-shadow: 
        0px 0px 8px rgba(0, 0, 0, 1), 
        0px 0px 15px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sección de Historia */
.history-section {
    max-width: 900px;
    width: 90%;
    margin: 40px auto 100px auto; /* Margen superior e inferior */
}

.history-content {
    background: rgba(41, 87, 115, 0.85); /* Primary Blue de la paleta */
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-left: 5px solid #D9A05B; /* Gold accent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

h2 {
    font-family: 'Cinzel', serif;
    color: #D9A05B;
    font-size: 3rem;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 400;
}

p:last-child {
    margin-bottom: 0;
}

p strong {
    color: #D9A05B;
    font-weight: 700;
}

footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-email a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-email a:hover {
    color: #D9A05B;
}

.social-links-footer {
    margin-bottom: 5px;
}

.social-links-footer a {
    margin: 0 10px;
}

.copyright p {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero-spacer {
        height: 100vh;
        height: 100dvh;
        padding-bottom: 120px; /* Subido un poco más a petición del usuario */
    }

    .scroll-indicator {
        font-size: 0.7rem;
        width: 90%;
        text-align: center;
    }

    .history-content {
        padding: 40px 25px;
    }
    
    h2 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    
    p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    main {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}
