/* --- Variables de Color (Raíz) --- */
:root {
    --gris-claro: #f4f4f4;
    --gris-medio: #d4d4d4;
    --blanco: #ffffff;
    --negro: #1a1a1a;
    --ocre: #c49e58; /* Color principal cálido */
    --rojo-profundo: #8b0000; /* Color principal intenso */
    --verde-agua: #66b2b2; /* Nuevo color vibrante */
    --azul-oscuro-transparente: rgba(26, 26, 26, 0.85); /* Para superposiciones */
    --sombra-ligera: rgba(0, 0, 0, 0.1);
    --sombra-media: rgba(0, 0, 0, 0.2);
}

/* --- Estilos Globales y Base --- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--gris-claro);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--negro);
    text-align: center;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--ocre);
}

a:hover {
    color: var(--rojo-profundo);
    text-decoration: underline;
}

/* ------------------------------------------- */
/* --- HERO SECTION (Portada y Navbar) --- */
/* ------------------------------------------- */

.hero {
    /* Cambia 'portada.jpg' por el nombre de tu archivo */
    background: url('image1.jpeg') center/cover no-repeat;
    height: 100vh;
    position: relative;
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem; 
    
    /* SOLUCIÓN AL NAVAR FIJO: position: relative asegura que se desplace */
    position: relative; 
    
    z-index: 10; 
    background-color: rgba(26, 26, 26, 0.5); 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
    width: 100%;
}

/* Estilo para la imagen del logo */
.logo .logo-img {
    height: 60px; /* AJUSTAR Altura de la imagen */
    width: auto; 
    display: block; 
    padding: 5px 0; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem; 
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.nav-links li a:hover {
    color: var(--ocre);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 2rem;
    cursor: pointer;
}

.hero-text {
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
    margin: auto;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--blanco);
    text-shadow: 2px 2px 8px var(--sombra-media);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--gris-claro);
}

.cta-button {
    background-color: var(--ocre);
    color: var(--negro);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--rojo-profundo);
    transform: translateY(-3px);
    color: var(--blanco);
}

/* ------------------------------------------- */
/* --- SECCIONES GENERALES --- */
/* ------------------------------------------- */

.section {
    padding: 4rem 2rem;
    background-color: var(--blanco);
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px var(--sombra-ligera);
    max-width: 1200px;
    color: var(--negro); 
}

.section-title {
    font-size: 3rem;
    color: var(--rojo-profundo);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 2rem;
    color: var(--ocre);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ------------------------------------------- */
/* --- SECCIÓN SOBRE NOSOTROS (Miembros) --- */
/* ------------------------------------------- */

.descripcion-nosotros {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.miembros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 2.5rem;
}

.miembro-card {
    background-color: var(--gris-claro);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 15px var(--sombra-ligera);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--gris-medio);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.miembro-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 25px var(--sombra-media);
    background-color: var(--blanco);
}

.miembro-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--ocre);
    transition: border-color 0.3s ease;
}

.miembro-card:hover .miembro-foto {
    border-color: var(--rojo-profundo);
}

.miembro-info {
    margin-top: 10px;
}

.miembro-nombre {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 5px 0 5px;
    color: var(--negro);
}

.rol {
    font-size: 1rem;
    color: #666;
}

/* ------------------------------------------- */
/* --- SECCIÓN REPERTORIO (Galería) --- */
/* ------------------------------------------- */

.repertorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.obra-card {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--sombra-ligera);
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.obra-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px var(--sombra-media);
}

.obra-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--azul-oscuro-transparente);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blanco);
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.obra-card:hover .obra-overlay {
    opacity: 1;
}

.obra-overlay h3 {
    color: var(--ocre);
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 5px var(--negro);
}

.obra-overlay .genero {
    font-style: normal;
    color: var(--gris-claro);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.obra-overlay .detalles-link {
    background-color: var(--rojo-profundo);
    color: var(--blanco);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.obra-overlay .detalles-link:hover {
    background-color: var(--ocre);
    text-decoration: none;
}

/* ------------------------------------------- */
/* --- SECCIÓN EVENTOS (Lista/Tarjetas) --- */
/* ------------------------------------------- */

.eventos-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 2.5rem;
}

.evento-card {
    background: linear-gradient(to right, var(--ocre) 5px, var(--gris-claro) 5px);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 15px var(--sombra-ligera);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--sombra-media);
}

.evento-card.proximo {
    background: linear-gradient(to right, var(--rojo-profundo) 5px, var(--blanco) 5px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.2);
}

.evento-fecha {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    margin-right: 25px;
    min-width: 100px;
    line-height: 1.2;
    box-shadow: 1px 1px 5px var(--sombra-ligera);
}

.evento-card.proximo .evento-fecha {
    background-color: var(--rojo-profundo);
}

.evento-info {
    flex-grow: 1;
}

.evento-info h3 {
    margin: 0;
    color: var(--negro);
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.evento-info .lugar {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
    text-align: left;
}

.boleto-link {
    background-color: var(--ocre);
    color: var(--blanco);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    margin-left: 20px;
}

.boleto-link:hover {
    background-color: var(--verde-agua);
    transform: translateY(-2px);
    color: var(--negro);
}

.no-eventos {
    text-align: center;
    padding: 30px;
    border: 2px dashed var(--ocre);
    border-radius: 10px;
    margin-top: 20px;
    background-color: var(--gris-claro);
    color: var(--negro);
    font-size: 1.1rem;
    font-style: italic;
}

/* ------------------------------------------- */
/* --- SECCIÓN CONTACTO (Redes Sociales) --- */
/* ------------------------------------------- */

.email-contacto {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--negro); 
}

.email-contacto a.link-ocre {
    color: var(--ocre);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.email-contacto a.link-ocre:hover {
    color: var(--rojo-profundo);
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 25px;
    justify-content: center;
}

.social-links a {
    font-size: 2.8rem;
    color: var(--negro);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--ocre);
    transform: translateY(-5px) scale(1.1);
}

/* ------------------------------------------- */
/* --- FOOTER --- */
/* ------------------------------------------- */

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--negro);
    color: var(--gris-claro); 
    font-size: 0.95rem;
    margin-top: 2rem;
}

/* ------------------------------------------- */
/* --- MODAL PARA BIOGRAFÍAS --- */
/* ------------------------------------------- */

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--blanco);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px var(--sombra-media);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-button {
    color: var(--negro);
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--rojo-profundo);
}

.modal-content h3 {
    color: var(--rojo-profundo);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    color: var(--negro);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------- */
/* --- RESPONSIVE --- */
/* ------------------------------------------- */

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .hero-text p {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .navbar {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Ajuste del menú móvil */
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--negro);
        position: absolute;
        top: 80px; 
        right: 0;
        width: 100%;
        /* CORRECCIÓN: Aumentamos el ancho para "Contacto" */
        max-width: 300px; 
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .nav-links.show {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links li a {
        /* CORRECCIÓN: Aumentamos el padding para "Contacto" */
        padding: 1rem 2rem; 
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        white-space: nowrap; 
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Ajustes generales */
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .section {
        margin: 1.5rem auto;
        padding: 2.5rem 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .miembros-grid, .repertorio-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .obra-card {
        height: 250px;
    }
    
    /* Ajustes de Eventos */
    .evento-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .evento-fecha {
        margin-bottom: 15px;
        margin-right: 0;
        max-width: 120px;
    }
    .evento-info {
        width: 100%;
        margin-bottom: 15px;
    }
    .boleto-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .social-links a {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .miembros-grid {
        grid-template-columns: 1fr;
    }
}