/* ==========================================================================
   1. VARIABLES DE DISEÑO (Colores Tradicionales Pastel y Tipografía)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    /* Paleta de Colores */
    --blanco-fondo: #F8FAFC;       /* Blanco sutil, descansa la vista */
    --blanco-puro: #FFFFFF;
    --celeste-pastel: #CBE6F5;     /* Celeste suave tradicional */
    --celeste-acento: #71A9CE;     /* Celeste con más fuerza para botones/detalles */
    --azul-profundo: #1E3545;      /* Azul criollo mate para máxima fuerza visual en textos */
    --gris-textos: #4A5568;        /* Para párrafos legibles */
    
    /* Tipografías */
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-cuerpo: 'Open Sans', sans-serif;
}

/* ==========================================================================
   2. RESETEO GENERAL Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Desplazamiento suave entre secciones */
}

body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--blanco-fondo);
    color: var(--gris-textos);
    line-height: 1.6;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* Títulos con fuerza visual */
.titulo-seccion {
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    font-weight: 800;
    color: var(--azul-profundo);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.subtitulo-seccion {
    text-align: center;
    color: var(--celeste-acento);
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ==========================================================================
   3. MENÚ DE NAVEGACIÓN (NAVBAR MOVILE-FIRST)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-logo {
    font-family: var(--fuente-titulos);
    font-weight: 800;
    color: var(--azul-profundo);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-profundo);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--celeste-acento);
}

/* ==========================================================================
   4. HERO SECTION (VIDEO DE FONDO IMPACTANTE)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco-puro);
    overflow: hidden;
    padding-top: 60px; /* Espacio para la navbar fijo */
}

.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

/* Capa oscura para que el texto resalte sobre cualquier video */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 53, 69, 0.5), rgba(30, 53, 69, 0.75));
    z-index: -1;
}

.hero-contenido {
    width: 90%;
    max-width: 800px;
}

.hero-contenido h1 {
    font-family: var(--fuente-titulos);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-contenido p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: var(--blanco-puro);
}

/* Botón de Llamado a la Acción (CTA) */
.btn-cta {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--celeste-acento);
    color: var(--blanco-puro);
    font-family: var(--fuente-titulos);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(113, 169, 206, 0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--azul-profundo);
    transform: translateY(-3px);
}

/* ==========================================================================
   5. SECCIÓN INTEGRANTES (GRID MOVILE-FIRST)
   ========================================================================== */
.seccion-banda {
    background-color: var(--blanco-puro);
}

.grid-integrantes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.tarjeta-integrante {
    background-color: var(--blanco-fondo);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border-bottom: 4px solid var(--celeste-pastel);
    transition: transform 0.3s ease;
}

.tarjeta-integrante:hover {
    transform: translateY(-5px);
}

.foto-contenedor {
    width: 240px;          /* Círculo grande */
    height: 240px;         
    margin: 0 auto 25px auto; 
    border-radius: 50%;    
    overflow: hidden;
    border: 6px solid var(--celeste-pastel); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.08); 
    background-color: var(--blanco-fondo); 
}

.foto-contenedor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; 
}

.tarjeta-integrante h3 {
    font-family: var(--fuente-titulos);
    color: var(--azul-profundo);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.tarjeta-integrante .rol {
    color: var(--celeste-acento);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.tarjeta-integrante .bio-corta {
    font-size: 0.9rem;
    color: var(--gris-textos);
}

/* ==========================================================================
   6. FORMULARIO DE CONTACTO (DISEÑO TÁCTIL)
   ========================================================================== */
.seccion-contacto {
    background-color: var(--blanco-fondo);
}

.contenedor-formulario {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0;
}

.formulario {
    background-color: var(--blanco-puro);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.grupo-input {
    margin-bottom: 20px;
}

.grupo-input label {
    display: block;
    font-family: var(--fuente-titulos);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--azul-profundo);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.grupo-input input,
.grupo-input textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    color: var(--azul-profundo);
    background-color: var(--blanco-fondo);
    transition: border-color 0.3s ease;
}

.grupo-input input:focus,
.grupo-input textarea:focus {
    outline: none;
    border-color: var(--celeste-acento);
    background-color: var(--blanco-puro);
}

.btn-enviar {
    width: 100%;
    padding: 15px;
    background-color: var(--azul-profundo);
    color: var(--blanco-puro);
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 53, 69, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover { background-color: var(--celeste-acento); }
.btn-enviar:active { transform: scale(0.98); }

/* ==========================================================================
   7. FOOTER Y REDES
   ========================================================================== */
.footer {
    background-color: var(--azul-profundo);
    color: var(--blanco-puro);
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.redes-sociales a {
    color: var(--blanco-puro);
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.redes-sociales a:hover {
    color: var(--celeste-pastel);
    transform: scale(1.2);
}

/* ==========================================================================
   8. REPRODUCTOR GENERAL (Estilos de base para el botón de música)
   ========================================================================== */
#btn-musica {
    background-color: var(--azul-profundo);
    color: var(--blanco-puro);
    border: 2px solid var(--celeste-pastel);
    padding: 12px 20px;
    border-radius: 50px;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#btn-musica.sonando {
    background-color: var(--celeste-acento);
    border-color: var(--blanco-puro);
}

#btn-musica:active {
    transform: scale(0.95);
}

/* ==========================================================================
   9. MEDIA QUERIES (OPTIMIZACIÓN PARA PANTALLAS GRANDES)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-contenido h1 {
        font-size: 4.5rem;
    }
    
    .grid-integrantes {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Cambiado a 240px fijo para calzar 4 integrantes */
    }
    
    .titulo-seccion {
        font-size: 2.5rem;
    }

    .reproductor-flotante {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }
} /* <--- ACÁ SE CIERRA CORRECTAMENTE LA LLAVE DE PANTALLAS GRANDES */

/* ==========================================================================
   10. MEDIA QUERIES (CORRECCIONES EXCLUSIVAS PARA PANTALLAS MÓVILES)
   ========================================================================== */
@media (max-width: 767px) {
    /* ARREGLO DEL MENÚ AMONTONADO */
    .navbar {
        flex-direction: column; /* Pone el logo arriba y los enlaces abajo */
        gap: 10px;
        padding: 10px 0;
        text-align: center;
    }

    .nav-links {
        gap: 15px; /* Más aire para tocar con el dedo */
        padding-bottom: 5px;
    }

    .nav-links a {
        font-size: 0.85rem; 
        text-transform: uppercase;
    }

    .hero-section {
        padding-top: 100px; /* Evita que el menú de dos renglones tape las letras de inicio */
    }

    /* ARREGLO DEL BOTÓN DE MÚSICA FLOTANTE EN CELULARES */
    .reproductor-flotante {
        position: fixed !important; 
        bottom: 20px !important;
        right: 20px !important;
        left: auto !important;
        top: auto !important;
        z-index: 99999 !important; /* Por encima de cualquier tarjeta */
    }

    #btn-musica {
        padding: 10px 16px; /* Más compacto para pantallas chicas */
        font-size: 0.8rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}