/* ==========================================================================
   Programación Radio - Estilos
   ========================================================================== */

/* Eliminar márgenes de elementos padre */
.tv-programming-container {
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    font-family: 'Arial', sans-serif;
}

/* Eliminar márgenes del contenedor padre (constructor de páginas) */
div.tv-programming-container,
section.tv-programming-container,
.elementor-widget-container .tv-programming-container,
.wpb_wrapper .tv-programming-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Eliminar márgenes superiores del primer hijo */
.tv-programming-container > *:first-child {
    margin-top: 0 !important;
}

/* Título principal */
.tv-programming-container .tv-programming-title,
h2.tv-programming-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background-color: #000 !important;
    background: #000 !important;
    color: white !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    letter-spacing: 2px;
    border: none !important;
    box-shadow: none !important;
}

/* Pestañas */
.tv-programming-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 20px auto;
    max-width: 1400px;
    border-bottom: 3px solid #E67E50;
}

.tv-tab {
    flex: 1;
    max-width: 300px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    letter-spacing: 1px;
}

.tv-tab:hover {
    background: #e0e0e0;
}

.tv-tab.active {
    background: #E67E50;
    color: white;
}

/* Contenido de pestañas */
.tv-tab-content {
    display: none;
}

.tv-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid de programas */
.tv-programs-grid {
    display: grid;
    grid-template-columns: repeat(var(--columnas, 3), 1fr);
    gap: 20px;
    margin: 0 auto 30px;
    max-width: 1400px;
    padding: 20px;
}

/* Tarjeta de programa */
.tv-program-card {
    position: relative;
    width: 100%;
    aspect-ratio: 737 / 315;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tv-program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Overlay de color */
.tv-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

/* Nombre del programa */
.tv-program-name {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Línea divisoria */
.tv-card-divider {
    width: 100%;
    height: 2px;
    background: white;
    margin: auto 0;
}

/* Parte inferior */
.tv-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tv-program-time {
    color: white;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tv-program-day {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
    .tv-programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tv-program-name {
        font-size: 20px;
    }
    
    .tv-program-time {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .tv-programs-grid {
        grid-template-columns: 1fr;
    }
    
    .tv-programming-tabs {
        flex-direction: column;
    }
    
    .tv-tab {
        max-width: 100%;
    }
    
    .tv-program-name {
        font-size: 18px;
    }
    
    .tv-program-time {
        font-size: 32px;
    }
    
    .tv-program-day {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .tv-card-overlay {
        padding: 15px;
    }
    
    .tv-program-name {
        font-size: 16px;
    }
    
    .tv-program-time {
        font-size: 28px;
    }
    
    .tv-program-day {
        font-size: 9px;
    }
}

/* Sin programas */
.tv-programs-grid:empty::after {
    content: "No hay programas para este día";
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 18px;
}
