/* Paleta de Colores:
    Morado Principal: #6A1B9A
    Rojo Énfasis: #D32F2F
    Naranja Interactivo: #FF9800
    Gris Fondo: #f0f2f5
*/

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; 
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAV BAR (ESCRITORIO) --- */
.navbar {
    background-color: #6A1B9A; /* Morado Oscuro */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-nav {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.logo-nav a {
    color: white; 
    text-decoration: none; 
    transition: color 0.3s;
}

.logo-nav a:hover {
    color: #FF9800; /* Naranja en hover */
}

/* Estilos para logo de imagen (si lo implementas) */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
    vertical-align: middle;
}


.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 400;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}

.nav-links li a:hover {
    background-color: #7B1FA2; /* Morado ligeramente más claro */
    color: #FF9800; /* Texto naranja en hover */
}

/* --- HERO HEADER --- */
.hero-header {
    background: url('hero-bg.jpg') center/cover no-repeat;
    height: 300px;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-header h2 {
    font-size: 3em;
    margin-bottom: 5px;
    color: #FF9800; /* Naranja */
}

.hero-header p {
    font-size: 1.2em;
}

/* --- Contenido Principal --- */
.main-content {
    padding: 40px 0;
}

.section-title {
    color: #D32F2F; /* Título en Rojo */
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 40px;
    font-size: 2em;
    font-weight: 700;
}

/* --- GRID DE RADIOS (ESCRITORIO) --- */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columnas en escritorio, adaptable */
    gap: 30px;
}

.radio-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    display: flex; 
    flex-direction: column; /* Vertical por defecto */
    align-items: center;
    text-align: center;
    border-top: 5px solid #6A1B9A; /* Detalle superior Morado */
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.radio-card h3 {
    color: #6A1B9A;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 1.4em;
}

.radio-slogan {
    margin: 0 0 20px;
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}

/* --- Área de Logo --- */
.logo-area {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #D32F2F; /* Borde rojo alrededor del logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

.radio-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.podcast-logo {
    width: 25%;
    height: 25%;
    object-fit: cover;
}
.comercial-logo {
    width: 25%;
    height: 25%;
    object-fit: cover;
}
/* --- Botón de Reproducción --- */
.play-btn {
    background-color: #FF9800; /* Naranja */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px; 
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background-color 0.3s;
    width: 100%;
}

.play-btn:hover {
    background-color: #F57C00;
}

.playing {
    background-color: #D32F2F; /* Rojo cuando está reproduciendo */
}

.playing:hover {
    background-color: #B71C1C;
}

/* --- ESTILOS DE BLOG/NOTICIAS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #FF9800; /* Naranja en el borde */
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.news-title {
    color: #6A1B9A;
    font-size: 1.3em;
    margin-top: 0;
}

.news-date {
    font-size: 0.9em;
    color: #D32F2F;
    margin-bottom: 15px;
}

.news-card p {
    color: #555;
    font-size: 1em;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    color: #FF9800;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: #D32F2F;
}

/* --- ESTILOS DE CONTACTO (MODERNO) --- */

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-form, .contact-info {
    flex: 1; 
    min-width: 300px;
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    background-color: white; 
}

.contact-info {
    background: linear-gradient(135deg, #6A1B9A 0%, #7B1FA2 100%); 
    color: white;
    box-shadow: 0 10px 25px rgba(106, 27, 154, 0.4); 
}

.contact-form h3 {
    color: #D32F2F;
    border-bottom: 3px solid #FF9800; 
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.contact-info h3 {
    color: white; 
    border-bottom: 3px solid #FF9800;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #FF9800; 
    outline: none;
}

.submit-btn {
    background-color: #FF9800; 
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #D32F2F; 
    transform: translateY(-2px);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    color: #FF9800; 
    font-size: 1.8em;
    margin-right: 15px;
    margin-top: 3px;
}

.info-item p {
    margin: 0;
    font-size: 1.1em;
}

.social-links {
    margin-top: 40px;
    border-top: 1px dashed rgba(255, 255, 255, 0.4); 
    padding-top: 20px;
    text-align: center;
}

.social-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    color: white;
    font-size: 1.4em;
    margin: 0 8px;
    transition: transform 0.3s, opacity 0.3s;
    background-color: rgba(255, 255, 255, 0.15);
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
}

.facebook { background-color: #1877F2; }
.twitter { background-color: #1DA1F2; }
.instagram { background-color: #C13584; }
.youtube { background-color: #FF0000; }

/* --- Pie de Página (Footer) --- */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

/* ========================================================== */
/* ======== MEDIA QUERIES (ADAPTACIÓN A MÓVILES) ============ */
/* ========================================================== */
@media (max-width: 768px) {
    
    .container {
        padding: 0 15px; 
    }

    /* NAV BAR RESPONSIVE */
    .nav-content {
        flex-direction: column; 
        align-items: center;
        padding: 10px 0;
    }
    
    .logo-nav {
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column; 
        align-items: center;
        margin-top: 5px;
    }
    
    .nav-links li {
        width: 100%; 
        text-align: center;
        margin: 5px 0;
    }

    .nav-links li a {
        padding: 8px 0; 
    }
    
    .logo-img {
        height: 45px;
    }

    /* HERO SECTION */
    .hero-header {
        height: 200px;
    }
    .hero-header h2 {
        font-size: 2em;
    }

    /* RADIO CARD RESPONSIVE FIX (HORIZONTAL LAYOUT) */
    .radio-card {
        padding: 15px;
        flex-direction: row; /* ¡ESTO LO HACE HORIZONTAL! */
        align-items: center;
        text-align: left;
        justify-content: space-between; /* Distribuye espacio */
    }

    .logo-area {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-right: 15px;
        border-width: 2px;
    }

    .info-area {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: auto; /* Dejar que el contenido defina el ancho */
        flex-grow: 1; /* Ocupar el espacio restante */
    }
    
    .radio-card h3 {
        margin-top: 0;
        margin-bottom: 3px;
        font-size: 1.2em;
    }
    .radio-slogan {
        margin-bottom: 0;
        font-size: 0.85em;
    }

    .play-btn {
        width: 100px; /* Ancho fijo para el botón */
        min-width: 100px;
        padding: 10px;
        font-size: 0.9em;
    }

    /* BLOG & CONTACTO RESPONSIVE */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form, .contact-info {
        min-width: unset;
        padding: 25px;
    }
}

