/* =============================================
   ESTILOS PRINCIPALES - PROGRAMACIÓN DE RADIO
   Versión mejorada con estructura clara y comentada
   ============================================= */

/* =============================================
   ESTILOS MODERNIZADOS - PROGRAMACIÓN DE RADIO
   Versión actualizada con diseño contemporáneo
   ============================================= */

/* ---------------------------------------------
   1. ESTRUCTURA GENERAL Y CONTENEDORES
   --------------------------------------------- */
.radio-programacion-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    color: #2d3436;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

/* ---------------------------------------------
   2. PROGRAMA DESTACADO (EN VIVO) - VERSIÓN MODERNA
   --------------------------------------------- */
.programa-destacado {
    background: linear-gradient(145deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.programa-destacado::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Badge "EN VIVO" moderno */
.badge-en-vivo {
    background: linear-gradient(to right, #ff5e62, #ff2d55);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    position: relative;
    z-index: 1;
}

.programa-destacado h2 {
    margin: 0 0 15px;
    font-size: 28px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.programa-destacado-info {
    position: relative;
    z-index: 1;
}

.programa-destacado p {
    margin: 0 0 12px;
    font-size: 16px;
    color: #d1e7ff;
    line-height: 1.5;
}

/* Sección del próximo programa modernizada */
.programa-siguiente {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.programa-siguiente:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.programa-siguiente h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #a8d8ff;
    font-weight: 600;
}

.programa-siguiente p {
    margin: 0;
    font-size: 16px;
    color: #d1e7ff;
    font-weight: 400;
}

.programa-siguiente .hora-siguiente {
    color: #4fc3f7;
    font-weight: 700;
    margin-top: 8px;
    display: inline-block;
}

/* ---------------------------------------------
   3. FILTRO POR DÍAS DE LA SEMANA - MODERNO
   --------------------------------------------- */
.filtro-dias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.dia-btn {
    background: #f1f3f5;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 15px;
    color: #495057;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 80px;
    text-align: center;
}

.dia-btn:hover {
    background: #4dabf7;
    color: white;
    box-shadow: 0 4px 8px rgba(77, 171, 247, 0.3);
    transform: translateY(-2px);
}

.dia-btn.active {
    background: #228be6;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(34, 139, 230, 0.4);
    transform: translateY(-2px);
}

/* ---------------------------------------------
   4. CUADRIÍCULA DE PROGRAMAS - DISEÑO MODERNO
   --------------------------------------------- */
.programacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.programa-tarjeta {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.programa-tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Imagen del programa moderna */
.programa-imagen {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.programa-imagen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.programa-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.programa-tarjeta:hover .programa-imagen img {
    transform: scale(1.1);
}

/* Contenido de la tarjeta moderno */
.programa-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.programa-contenido h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 700;
}

.programa-conductor {
    color: #6c757d;
    font-size: 15px;
    margin: 0 0 12px;
    font-style: italic;
    font-weight: 400;
}

.programa-dias {
    color: #339af0;
    font-size: 15px;
    margin: 0 0 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.programa-dias svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.programa-horario {
    color: #ff6b6b;
    font-size: 15px;
    margin: 12px 0 0;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.programa-horario svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ---------------------------------------------
   5. DISEÑO RESPONSIVE
   --------------------------------------------- */
@media (max-width: 992px) {
    .programacion-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .programa-destacado {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 20px;
    }
    
    .radio-programacion-container {
        padding: 20px;
    }
    
    .programacion-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .filtro-dias {
        gap: 8px;
    }
    
    .dia-btn {
        padding: 8px 16px;
        font-size: 14px;
        min-width: 70px;
    }
    
    .programacion-grid {
        grid-template-columns: 1fr;
    }
    
    .programa-tarjeta {
        max-width: 100%;
    }
    
    .programa-destacado h2 {
        font-size: 24px;
    }
}

/* ---------------------------------------------
   6. ESTADOS ESPECIALES - MEJORADOS
   --------------------------------------------- */
/* Programa actual en la cuadrícula */
.programa-tarjeta.programa-actual {
    border-left: 5px solid #ff6b6b;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.2);
}

.programa-tarjeta.programa-actual::after {
    content: 'EN VIVO';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(to right, #ff5e62, #ff2d55);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Efectos de filtrado modernizados */
.programa-tarjeta.hidden {
    display: none;
    animation: fadeOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        transform: scale(1);
    }
    to { 
        opacity: 0;
        transform: scale(0.95);
    }
}

.programa-tarjeta.visible {
    display: flex;
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}