/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

/* Establecer Space Grotesk como fuente principal */
body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    font-weight: 400;
    padding-top: 80px; /* Espacio para el header fijo */
}

main {
    min-height: calc(100vh - 200px);
    scroll-margin-top: 100px; /* Espacio al hacer scroll a secciones */
    padding: 2rem 0;
}

/* Aplicar Poppins a los encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Ajustes específicos para h1 */
h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Ajustes específicos para h2 */
h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Asegurar que los botones usen la fuente del cuerpo */
button, input, select, textarea {
    font-family: 'Space Grotesk', sans-serif;
}

/* Botón de cambio de tema */
.tema-toggle {
    background: none;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.tema-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.tema-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.tema-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    width: 18px;
    height: 18px;
}

/* Mostrar el icono del sol cuando el tema es claro */
[data-theme="light"] .icon-sun {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Mostrar el icono de la luna cuando el tema es oscuro */
[data-theme="dark"] .icon-moon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Efecto de rotación al cambiar de tema */
[data-theme="light"] .icon-sun {
    animation: rotateIn 0.3s ease-out forwards;
}

[data-theme="dark"] .icon-moon {
    animation: rotateIn 0.3s ease-out forwards;
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-30deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Variables CSS para el tema claro (por defecto) */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-bg: #2e0082;
    --header-text: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --accent-color: #e94560;
    --accent-hover: #d13354;
}

/* Tema oscuro */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #2e0082;
    --header-text: #ffffff;
    --card-bg: #1e1e1e;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --accent-color: #ff5c77;
    --accent-hover: #ff7e96;
}

/* Aplicar variables de tema */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Aseguramos espacio para el header */
}

/* Header y Navegación */
header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.logo {
    height: 50px;
    margin-right: 2rem;
}

/* Contenedor para el menú centrado */
.nav-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin: 0 0.5rem;
}

.nav-center ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Línea inferior para el enlace activo */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #e94560;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    background-color: #f72585;
}

nav ul li a:hover,
nav ul li a.active,
nav ul li a:focus {
    color: #f72585;
}

/* Contenedor para el botón de tema */
.nav-right {
    margin-left: auto;
}

/* Hero Section */
.hero {
    background: var(--bg-color);
    padding: 0; /* Eliminamos el padding ya que lo manejará el contenedor */
    margin: 0;
    position: relative;
    margin-top: 80px; /* Igual que en la página Nosotros */
    transition: all 0.3s ease;
    min-height: auto; /* Eliminamos la altura mínima fija */
    display: block; /* Cambiado de flex a block */
}

/* Contenedor del banner */
.banner-container {
    width: 90%;
    max-width: 1200px;
    height: 400px;
    margin: 60px auto; /* Añadido margen superior e inferior como en la página Nosotros */
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Estilo del botón flotante */
.hero .btn-escuchar {
    display: inline-block;
    margin: 0;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    padding: 12px 24px;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Botón */
.btn-escuchar {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-escuchar:hover {
background-color: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sección de Emisoras */
.emisoras {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    scroll-margin-top: 100px; /* Asegura espacio al hacer scroll a secciones */
    padding-top: 1rem; /* Espacio adicional en la parte superior */
    margin: 0 auto;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

/* Estilos para el banner hero */
.hero {
    width: 100%;
    margin: 100px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.hero-banner:hover {
    transform: scale(1.01);
}

/* Estilos de .emisoras h2 movidos a radio-cards.css */

.programa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.programa-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.programa-imagen {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.programa-contenido {
    padding: 1.5rem;
}

.programa-contenido h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.horario {
    color: var(--accent-hover);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    footer p {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        margin: 250px 0 40px;
        padding: 0 10px;
        scroll-margin-top: 160px; /* Asegura espacio para el header fijo */
    }
    
    .banner-container {
        padding: 0;
        max-width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-banner {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    
    .emisoras h2 {
        font-size: 1.8rem;
        margin: 1.5rem 0;
    }
    
    nav {
        flex-direction: column;
        padding: 0.5rem 1rem;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-center {
        width: 100%;
        margin: 0.5rem 0;
        overflow-x: visible;
        padding: 0;
    }
    
    nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }
    
    nav ul li a:hover {
        background: rgba(247, 37, 133, 0.2);
        color: #f72585;
    }
    
    .nav-right {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .logo {
        margin-bottom: 0.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

/* Estilos para la sección de características */
.caracteristicas {
    margin: 100px 0;
    padding: 0 20px;
}

.caracteristicas h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.caracteristicas h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #f72585;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.caracteristica-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.caracteristica-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.caracteristica-icono {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f72585 0%, #b5179e 33%, #7209b7 66%, #3a0ca3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.caracteristica-card:hover .caracteristica-icono {
    transform: rotate(10deg) scale(1.1);
}

.caracteristica-card h3 {
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.caracteristica-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 1rem;
    flex-grow: 1;
}

.caracteristica-frases {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.frase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.9;
}

.frase i {
    color: #f72585;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
}

/* Estilos responsivos para la sección de características */
@media (max-width: 768px) {
    .caracteristicas {
        margin: 60px 0 40px;
    }
    
    .caracteristicas h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .caracteristicas-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .caracteristica-card {
        padding: 25px 20px;
    }
}
