/* Sección de Podcasts - Carrusel */
#podcasts {
    padding: 4rem 0;
    position: relative;
}

.podcasts-carousel {
    position: relative;
    margin: 2rem 0 3rem;
    overflow: hidden;
    --gap: 2rem;
}

/* Contenedor principal con overflow oculto */
.podcasts-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Track del carrusel */
.podcasts-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: var(--gap);
    flex-wrap: nowrap;
    will-change: transform;
    padding: 0;
    margin: 0;
    align-items: stretch;
}

/* Tarjetas individuales - tamaño fijo para cálculo preciso */
.podcast-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: calc((100% - (var(--gap) * 2)) / 3); /* 3 tarjetas por vista */
    min-width: 0;
}

.podcast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.podcast-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-card:hover .podcast-image img {
    transform: scale(1.05);
}

.spotify-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #1DB954;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.podcast-content {
    padding: 1.5rem;
}

.podcast-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    line-height: 1.4;
}

.podcast-desc {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-meta {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #888;
}

.podcast-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.spotify-embed {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #1DB954;
}

.spotify-embed iframe {
    border-radius: 8px;
    width: 100%;
    height: 102px;
}

/* Controles del carrusel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
}

.podcasts-cta {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.podcasts-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

/* Responsive */
@media (max-width: 1024px) {
    .podcast-card {
        width: calc((100% - var(--gap)) / 2); /* 2 tarjetas visibles */
    }
}

@media (max-width: 768px) {
    .podcast-card {
        width: 100%; /* 1 tarjeta visible */
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
    }
    
    .carousel-arrow.prev {
        left: 5px;
    }
    
    .carousel-arrow.next {
        right: 5px;
    }
    
    .podcast-content h3 {
        font-size: 1.1rem;
    }
}