/* ==========================================================================
   PODCAST CARDS SLIDER ADDON - STYLES
   ========================================================================== */

.podcast-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0;
    overflow: visible !important;
}

/* Swiper Container Overflow & Viewport */
.podcast-swiper-container {
    width: 100%;
    overflow: visible !important;
    padding: 0;
}

.podcast-swiper-container .swiper-wrapper {
    align-items: center;
    will-change: transform;
}

.podcast-swiper-container .swiper-slide {
    position: relative;
    z-index: 1;
    height: auto;
    box-sizing: border-box;
}

/* En PC y Tablet (>=768px), mostrar estrictamente las 3 tarjetas visibles (prev, active, next) y ocultar las demás sin usar overflow: hidden */
@media (min-width: 768px) {
    .podcast-swiper-container .swiper-slide {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), z-index 0.35s ease;
    }

    .podcast-swiper-container .swiper-slide-active,
    .podcast-swiper-container .swiper-slide-prev,
    .podcast-swiper-container .swiper-slide-next,
    .podcast-swiper-container .swiper-slide-duplicate-active,
    .podcast-swiper-container .swiper-slide-duplicate-prev,
    .podcast-swiper-container .swiper-slide-duplicate-next {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

.podcast-swiper-container .swiper-slide-active,
.podcast-swiper-container .swiper-slide-duplicate-active {
    z-index: 50 !important;
}

/* Tarjeta Base */
.podcast-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #F4F8FA;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Slide Central Activo - Z-index superior a laterales */
.swiper-slide-active .podcast-card,
.swiper-slide-duplicate-active .podcast-card {
    background-color: #F0F8FF;
    transform: scale(1.2);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    z-index: 50 !important;
}

/* Botón Play Circular Azul */
.podcast-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    min-width: 64px;
    background-color: #1D68F2;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 16px rgba(29, 104, 242, 0.25);
    flex-shrink: 0;
}

.podcast-play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 3px; /* Ajuste óptico del triángulo play */
    transition: fill 0.25s ease;
}

.podcast-play-btn:hover {
    background-color: #0F53D6;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(29, 104, 242, 0.35);
}

/* Contenido Central: Título, Subtítulo y Links */
.podcast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.podcast-title {
    margin: 0 0 4px 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.podcast-subtitle {
    margin: 0 0 12px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #334155;
    line-height: 1.35;
}

/* Bloque de Links de Plataformas (Spotify / YouTube) */
.podcast-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.podcast-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.podcast-link:hover {
    opacity: 0.8;
}

.podcast-link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Gráfico Decorativo Onda Sonora (Waveform) */
.podcast-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.podcast-waveform svg {
    height: 44px;
    width: auto;
    display: block;
}

/* Flechas de Navegación Posicionadas Fuera del Contenedor */
.podcast-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #000000;
    color: #000000;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 60;
    outline: none;
    padding: 0;
    box-shadow: none;
    margin: 0;
    flex-shrink: 0;
}

.podcast-slider-prev {
    left: -40px;
}

.podcast-slider-next {
    right: -40px;
}

.podcast-slider-arrow svg,
.podcast-slider-arrow i {
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, stroke 0.25s ease, color 0.25s ease, fill 0.25s ease;
}

.podcast-slider-arrow i {
    color: currentColor;
}

.podcast-slider-arrow svg path,
.podcast-slider-arrow svg polyline {
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.podcast-slider-prev:hover svg,
.podcast-slider-prev:hover i {
    transform: translateX(-2px);
}

.podcast-slider-next:hover svg,
.podcast-slider-next:hover i {
    transform: translateX(2px);
}

.podcast-slider-arrow:hover {
    background-color: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

.podcast-slider-arrow:hover svg path,
.podcast-slider-arrow:hover svg polyline {
    stroke: #FFFFFF;
}

/* Responsive Breakdown */
@media (max-width: 1024px) {
    .podcast-card {
        padding: 20px 22px;
        gap: 16px;
    }

    .podcast-play-btn {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .podcast-title {
        font-size: 16px;
    }

    .podcast-subtitle {
        font-size: 13px;
    }

    .podcast-waveform svg {
        height: 38px;
    }
}

@media (max-width: 767px) {
    .podcast-slider-wrapper {
        padding: 10px 0;
        flex-direction: column;
    }

    .podcast-swiper-container {
        padding: 10px 0;
    }

    .podcast-card {
        padding: 18px 20px;
        flex-direction: row;
        gap: 14px;
    }

    .swiper-slide-active .podcast-card {
        transform: scale(1);
    }

    .podcast-waveform {
        display: none; /* Ocultar onda en móviles pequeños si fuera necesario o reducir */
    }
}
