/* Variables de color: Paleta Roja y Blanca */
:root {
    --bg-main: #ffffff;       
    --bg-alt: #f8f9fa;        
    --text-main: #212529;     
    --text-muted: #6c757d;    
    --accent-color: #E01E26;  
    --accent-hover: #b3161e;  
}

/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1rem 0; 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contenedor del Logo */
.logo-wrapper {
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none; 
}

.nav-logo-img {
    height: 70px; 
    width: auto;
}

.logo-text-group {
    display: flex;
    flex-direction: column; 
}

.logo-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.logo-highlight {
    color: var(--accent-color);
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Menú derecho */
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}

/* --- SECCIÓN HERO (INICIO) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    min-height: 100vh; /* Ocupa al menos el 100% de la altura de la pantalla */
    background: radial-gradient(circle at top right, #ffffff 0%, var(--bg-main) 100%);
    padding-top: 100px; 
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Botones */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(224, 30, 38, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- SECCIÓN QUÉ HACEMOS (PÁGINA INDEPENDIENTE) --- */
.main-content-page {
    padding-top: 140px;
    background-color: #ffffff;
    padding-bottom: 5rem;
}

.logo-header-center {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-circle {
    background-color: #ffffff;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); 
    border: 2px solid var(--accent-color); 
}

.logo-circle img {
    width: 248px; 
    height: auto;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #000000;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.divider {
    border: 0;
    height: 1px;
    background-color: #dee2e6;
    margin: 3rem 0;
}

.subtitle-areas-center {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grilla de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    background-color: #fcfcfc;
    border-left: 4px solid var(--accent-color); 
    padding: 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(224, 30, 38, 0.1);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
}

/* --- RESPONSIVE PARA CELULARES --- */
@media (max-width: 768px) {
    
    /* 1. Header: Subimos el logo y separamos el menú */
    .header {
        padding: 0.3rem 0; 
    }

    .nav-container {
        flex-direction: column;
        padding: 5px 0; 
        gap: 10px;
        align-items: center;
    }

    /* 2. Logo: Tamaño compacto para ganar espacio */
    .nav-logo-img {
        height: 55px !important; 
        width: auto;
    }

    /* 3. Menú: Forzamos alineación izquierda total para ver el 'Inicio' */
    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start !important; 
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 15px 15px 15px; 
        gap: 20px;
        margin: 0;
        list-style: none;
    }

    /* 4. Barra de scroll sutil roja */
    .main-nav ul::-webkit-scrollbar {
        height: 3px;
        display: block;
    }

    .main-nav ul::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }

    /* 5. Enlaces y estado activo */
    .main-nav ul li a {
        font-size: 14px;
        white-space: nowrap;
        color: var(--text-main);
        padding-bottom: 5px;
    }

    .main-nav ul li a.active {
        color: var(none) !important;
        font-weight: 700;
        border-bottom: 2px solid var(none);
    }

    /* 6. BAJAMOS EL CONTENIDO PARA QUE NO QUEDE TAPADO */
    .hero {
        padding-top: 180px !important; 
        height: auto;
    }

    .main-content-page {
        padding-top: 200px !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* 7. Dropdown interactivo para móviles (se activa con la clase .show-dropdown) */
    .dropdown:hover .dropdown-content {
        display: none; /* Desactivamos hover en móvil para usar el tap */
    }

    .show-dropdown {
        display: block !important;
        position: absolute;
        right: 10px;
        top: 100%;
    }

    /* Grillas a una sola columna */
    .services-grid, .certifications-grid, .other-trainings {
        grid-template-columns: 1fr;
    }
}


/* --- SECCIÓN QUIÉNES SOMOS --- */
.section-title-center {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-center span {
    color: var(--accent-color);
}

/* Grilla principal biografía */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* La foto ocupa 1 parte, el texto 2 partes */
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.8;
}

.about-quote {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--accent-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
    margin-top: 2rem;
}

/* Certificaciones */
.subtitle-certifications {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.certifications-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-top: 4px solid #333;
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top-color: var(--accent-color);
}

.cert-card h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.cert-card p {
    font-size: 0.9rem;
    color: #444;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cert-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive para Quiénes Somos */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* Una sola columna en celular */
        gap: 2rem;
    }
    .certifications-grid {
        grid-template-columns: 1fr; /* Tarjetas apiladas en celular */
    }
    .section-title-center {
        font-size: 2rem;
    }
}

/* --- SECCIÓN CAPACITACIONES --- */
.training-intro {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.other-trainings {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.training-box {
    background-color: var(--bg-alt);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

@media (max-width: 768px) {
    .other-trainings {
        grid-template-columns: 1fr; /* Una columna en celulares */
    }
}

/* --- GALERÍA DE IMÁGENES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 fotos por fila */
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Esto asegura que todas las fotos queden de la misma altura */
    object-fit: cover; /* Recorta la imagen para que no se deforme */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Efecto de zoom suave al pasar el mouse */
}

/* Responsive para la galería */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 fotos por fila en tablets */
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* 1 foto por fila en celulares chicos */
    }
}

/* --- VISOR DE IMÁGENES (LIGHTBOX) --- */

/* Hace que el cursor sea una manito al pasar por las fotos de la grilla */
.gallery-item img {
    cursor: pointer;
}

/* El fondo oscuro que cubre toda la pantalla */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000; /* Para que quede por encima del menú */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fondo negro con 90% de opacidad */
    justify-content: center;
    align-items: center;
}

/* La imagen grande en el centro */
.modal-contenido {
    max-width: 90%;
    max-height: 90vh; /* Para que no se pase del alto de la pantalla */
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomFoto 0.3s ease; /* Efecto de apertura */
}

/* Animación de apertura */
@keyframes zoomFoto {
    from {transform: scale(0.8); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

/* El botón de cerrar (la X) */
.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar:hover {
    color: var(--accent-color); /* Se pone roja al pasar el mouse */
}

/* --- SECCIÓN LOCUCIÓN --- */

/* Tarjetas de los programas de radio */
.radio-shows-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.show-card {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-bottom: 4px solid #212529; /* Borde oscuro abajo */
    transition: transform 0.3s ease;
}

.show-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color); /* Se vuelve rojo al pasar el mouse */
}

/* Reproductores de Audio */
.demos-section {
    background-color: var(--bg-alt);
    padding: 3rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.audio-player-container {
    margin-bottom: 1.5rem;
    text-align: left;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.audio-player-container:last-child {
    margin-bottom: 0;
}

.custom-audio {
    width: 100%;
    outline: none;
    margin-top: 0.5rem;
}

/* Responsive para Locución */
@media (max-width: 768px) {
    .radio-shows-grid {
        grid-template-columns: 1fr;
    }
    .demos-section {
        padding: 1.5rem;
    }
}

/* Espaciado para el botón final de locución */
.cta-final-radio {
    text-align: center;
    margin-top: 5rem; /* Mucho espacio arriba para que respire */
    padding-bottom: 2rem;
}

.cta-final-radio p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* --- ESTILOS DEL MENÚ DESPLEGABLE (DROPDOWN) --- */

/* Contenedor del ítem 'Más' */
.dropdown {
    position: relative;
    display: inline-block;
}

/* El menú oculto que baja */
.dropdown-content {
    display: none; /* Se oculta por defecto */
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-top: 3px solid var(--accent-color); /* Línea roja arriba para estilo */
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%; /* Aparece justo debajo del menú */
    left: 0;
}

/* Los links dentro del desplegable */
.dropdown-content li a {
    color: var(--text-main) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: background 0.3s;
}

/* Efecto al pasar el mouse sobre las opciones del desplegable */
.dropdown-content li a:hover {
    background-color: #f8f8f8;
    color: var(--accent-color) !important;
}

/* Muestra el menú cuando pasás el mouse por 'Más' */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Estilo para la flechita */
.arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* Ajuste para que no se corte en el borde de la pantalla */
.main-nav ul {
    align-items: center;
}

/* --- VISOR DE IMÁGENES (LIGHTBOX) ACTUALIZADO A FONDO GRIS --- */

/* Hace que el cursor sea una manito al pasar por elementos clickeables en el visor */
#visorModal {
    cursor: pointer;
}

/* El fondo oscuro que cubre toda la pantalla (Cambiado a gris oscuro) */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000; /* Para que quede por encima del menú */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Reemplazamos rgba(0,0,0,0.9) por un gris oscuro transparente */
    background-color: rgba(33, 37, 41, 0.95); /* Un gris oscuro profundo */
    justify-content: center;
    align-items: center;
}

/* El resto de estilos se mantienen igual... */
.modal-contenido {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomFoto 0.3s ease;
}

@keyframes zoomFoto {
    from {transform: scale(0.8); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar:hover {
    color: var(--accent-color);
}

/* Ajuste específico para el menú en móviles */
@media (max-width: 768px) {
    
    /* Separamos el contenedor del logo del contenedor del menú */
    .nav-container {
        flex-direction: column;
        padding: 15px 0;
    }

    /* Le damos aire a la lista de pestañas */
    .main-nav ul {
        display: flex;
        flex-wrap: wrap;       /* Permite que bajen si no entran */
        justify-content: center; /* Los centra para que no queden tirados a un lado */
        gap: 15px 25px;        /* 15px de espacio entre filas, 25px entre palabras */
        margin-top: 15px;      /* Separa todo el bloque de pestañas del logo */
        padding: 0 10px;
    }

    /* Opcional: un toque de tamaño para que sean fáciles de tocar con el dedo */
    .main-nav ul li a {
        font-size: 15px;
        padding: 5px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    /* 1. Achicamos el contenedor para ganar espacio lateral */
    .nav-container {
        padding: 10px 5px;
        flex-direction: column; /* Mantenemos logo arriba y menú abajo para no apretar */
    }

    /* 2. Forzamos que la lista no salte de línea */
    .main-nav ul {
        display: flex;
        flex-direction: row;    /* Asegura una sola fila */
        flex-wrap: nowrap;      /* Prohibe el salto de línea */
        justify-content: space-between;
        gap: 8px;               /* Espacio mínimo entre palabras */
        overflow-x: auto;       /* Si el celular es muy chico, permite deslizar de costado */
        width: 100%;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch; /* Suavidad al deslizar en iPhone */
    }

    /* 3. Reducimos el tamaño de la letra para que entre todo */
    .main-nav ul li a {
        font-size: 12px;        /* Letra más pequeña para el móvil */
        white-space: nowrap;    /* Evita que "Quiénes somos" se parta en dos */
        padding: 5px 2px;
    }

    /* 4. Ajuste para el desplegable 'Más' */
    .dropdown-content {
        position: absolute;
        right: 0;               /* Evita que el menú de Locución se salga de la pantalla */
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        height:42px; /* Un tamaño bien sutil y elegante para móvil */
        width: auto;
    }
}

/* Solo la pestaña de la página actual es roja */
.main-nav ul li a.active {
    color: #e31e24 !important;
    font-weight: 700;
}

/* Quitamos efectos de hover en móviles para que no se "peguen" */
@media (max-width: 768px) {
    .main-nav ul li a:hover, 
    .main-nav ul li a:focus, 
    .main-nav ul li a:active {
        color: inherit; /* Mantiene el color original, no el rojo */
        outline: none;
    }
    
    /* Si querés que 'Más' sea rojo solo cuando estás en Locución, 
       aseguráte de ponerle la clase .active solo en ese archivo */
}