/* ===== PODCAST CSS - SIN BOOTSTRAP ===== */
/* Usando Grid y Flexbox para layouts modernos */

/* Variables CSS */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #007bff;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Botón "Ver episodio completo" */
.ver-episodio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.ver-episodio-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* Reset y base */
.podcast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.podcast-title {
    text-align: center;
    margin-bottom: 3rem;
}

.podcast-title h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.podcast-title p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de programas */
.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.programa-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.programa-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.programa-banner {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.programa-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.programa-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.programa-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.programa-conductor {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.conductor-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.conductor-info {
    flex: 1;
}

.conductor-nombre {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.conductor-horario {
    font-size: 0.9rem;
    color: var(--text-light);
}

.programa-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.programa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: var(--white);
    text-decoration: none;
}

/* Header del programa específico */
.programa-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
}

.programa-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.programa-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.programa-info .descripcion {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.programa-conductor-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.conductor-foto-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.conductor-details h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.conductor-details p {
    margin: 0;
    opacity: 0.9;
}

.back-btn {
    background: #212121;
    color: #ffffff;
    border: 2px solid #212121;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.back-btn:hover {
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    border-color: #333333;
}

.programa-banner-large {
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Sección de episodios */
.episodios-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.episodios-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.episodios-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.episodios-count {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.episodios-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.episodio-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.episodio-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--primary-color);
}

.episodio-content {
    width: 100%;
}

.episodio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.episodio-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.episodio-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.episodio-descripcion {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Paginación de episodios */
.episodios-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.pagination-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.pagination-info {
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
}

.episodios-range {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .episodios-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Reproductor flotante */
.audio-player-float {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--accent-color);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.audio-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.audio-info h6 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.audio-info audio {
    width: 100%;
    height: 40px;
}

.audio-close {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.audio-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Estados especiales */
.no-programas {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-programas i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.no-episodios {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .podcast-container {
        padding: 1rem;
    }
    
    .podcast-title h1 {
        font-size: 2.2rem;
    }
    
    .programas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .programa-header {
        padding: 2.5rem 0;
    }
    
    .programa-header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .programa-info h1 {
        font-size: 2.2rem;
    }
    
    .episodios-section {
        padding: 0 1rem;
    }
    
    .episodio-item {
        text-align: center;
    }
    
    .episodio-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .episodio-meta {
        justify-content: center;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .audio-player-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .podcast-title h1 {
        font-size: 1.8rem;
    }
    
    .programa-info h1 {
        font-size: 1.8rem;
    }
    
    .programas-grid {
        grid-template-columns: 1fr;
    }
    
    .conductor-foto-large {
        width: 60px;
        height: 60px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.programa-card {
    animation: fadeInUp 0.6s ease-out;
}

.episodio-item {
    animation: slideInRight 0.4s ease-out;
}

.programa-card:nth-child(even) {
    animation-delay: 0.1s;
}

.episodio-item:nth-child(even) {
    animation-delay: 0.1s;
}
