/* ===== ESTILOS PARA LA HOMEPAGE ===== */

/* === Estilos del Slider de Podcast === */
.podcast-hero-section.container {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.swiper.hero-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    z-index: 5;
    background-color: #13203f;
}

.podcast-hero-slide {
    background: linear-gradient(135deg, #3f5994, #1a1a1a);
    color: #fff;
    padding: 2rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Estilos para la imagen/portada del podcast */
.podcast-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1/1;
    background-color: #13203f;
    transition: all 0.3s ease;
}

.podcast-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.podcast-cover:hover img {
    transform: scale(1.05);
}

/* Estilos para el placeholder cuando no hay imagen */
.podcast-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #0d6efd 0%, #b01a2e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.podcast-placeholder .site-name {
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.podcast-placeholder .play-icon {
    margin-top: 1rem;
}

.podcast-placeholder .play-icon i {
    font-size: 3rem;
    opacity: 0.9;
}

/* Estilos para el título y contenido */
.podcast-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.podcast-hero-content {
    padding: 0 1.5rem;
}

/* Estilos para los botones de acción */
.podcast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.btn-platform,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-platform i,
.btn-primary i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-platform:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Colores específicos para botones */
.btn-platform.ivoox {
    background-color: #ff7700;
    color: white;
}

.btn-platform.spotify {
    background-color: #1DB954;
    color: white;
}

.btn.btn-primary {
    background-color: #b01a2e;
    border-color: #b01a2e;
}

/* Controles del slider */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white !important;
    display: flex !important;
    z-index: 100;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--accent-color);
    opacity: 1;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
}


/* === Estilos del acordeón de archivos === */
.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    border-radius: 6px;
}

.accordion-button {
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    background-color: #f8f9fa;
}

.archive-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) .archive-count {
    background-color: rgba(255, 255, 255, 0.2);
}

.archives-months-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-month-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.archive-month-item:last-child {
    border-bottom: none;
}

.archive-month-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.archive-month-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--accent-color);
    padding-left: 1.5rem;
}

/* === RESPONSIVE: ADAPTACIÓN PARA DISPOSITIVOS MÓVILES === */
@media (max-width: 767.98px) {

    /* Reestructurar el slide para móvil */
    .podcast-hero-slide {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    /* Título primero */
    .podcast-title {
        font-size: 1.5rem;
        text-align: center;
        margin: 0 0 1.25rem 0;
        order: 1;
    }

    /* Imagen después del título */
    .podcast-cover {
        order: 2;
        margin-bottom: 1.25rem;
    }

    /* Botones al final */
    .podcast-actions {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 0;
    }

    /* Ajustar botones para tamaño uniforme */
    .btn-platform,
    .btn-primary {
        width: 100%;
        padding: 12px 15px;
        height: auto;
        margin: 0;
    }

    /* Ajustar controles del slider */
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .swiper-pagination {
        bottom: 5px !important;
    }

    /* Limpiar estructura original de columnas */
    .podcast-hero-slide .row,
    .podcast-hero-content {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Ocultar iconos sociales duplicados */
    .podcast-hero-section+.social-links,
    .podcast-hero-section~.social-links,
    .swiper~.social-links {
        display: none !important;
    }

    /* Aumentar separación entre secciones */
    .recent-articles {
        padding-top: 1rem;
    }

    /* Ajustar categorías a una columna en móvil pequeño */
    .category-item {
        flex-basis: 100%;
    }
}
/* Limitar altura del placeholder en escritorio */
@media (min-width: 768px) {

    .podcast-placeholder,
    .podcast-cover {
        max-height: 300px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .podcast-hero-section.container {
        max-width: 1140px;
    }

    /* Limitar ancho del slider */
    .swiper.hero-slider {
        max-width: 100%;
    }
}

/* Asegurar que las flechas sean visibles */
.swiper-button-next,
.swiper-button-prev {
    opacity: 1 !important;
}
/* Añadir estas reglas CSS al final de assets/css/index-styles.css */

/* Arreglo general del contenedor del slider */
.podcast-hero-section.container {
    max-width: 1140px;
    width: 100%;
    padding: 0;
    margin: 2rem auto;
}

/* Corregir el tamaño del slide */
.swiper.hero-slider {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Ajustar tamaño del contenedor de placeholder */
.podcast-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.podcast-placeholder {
    width: 300px;
    height: 300px;
    max-width: 100%;
}

/* Evitar solapamiento de sliders */
.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
}

/* Botones de navegación más visibles */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white !important;
    opacity: 1;
    z-index: 100;
}

/* Ajuste específico para pantallas grandes */
@media (min-width: 992px) {
    .podcast-hero-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .podcast-actions {
        margin-top: 1.5rem;
        justify-content: center;
    }
}
/* Ensure consistent height for podcast slides */
.podcast-hero-slide {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

@media (max-width: 767.98px) {
    .podcast-hero-slide {
        padding-bottom: 60px;
        /* Extra padding for pagination bullets */
    }

    .podcast-hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Make buttons take consistent space */
    .podcast-actions {
        margin-top: auto;
    }

    /* Fix for swiper container */
    .swiper.hero-slider {
        min-height: 480px;
    }
}
/* Add to /assets/css/index-styles.css */

/* Fix spacing and layout for the podcast slider */
.podcast-hero-slide {
    min-height: 550px;
    padding: 2rem;
}

.podcast-cover {
    margin-bottom: 30px;
}

.podcast-hero-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-title {
    margin-bottom: 25px;
}

.podcast-actions {
    margin-top: 20px;
}

.podcast-actions .btn {
    margin-bottom: 15px;
}

/* Ensure the "Ver detalles" button has proper spacing */
.podcast-actions .btn-primary {
    margin-top: 10px;
}

/* Better swiper controls positioning */
.swiper-pagination {
    bottom: 15px !important;
}

.swiper-button-next,
.swiper-button-prev {
    top: 45%;
}

/* Make sure the slide container maintains height */
.swiper.hero-slider {
    height: auto;
    min-height: 570px;
}

@media (max-width: 767.98px) {
    .podcast-hero-slide {
        min-height: 580px;
        padding-bottom: 70px;
    }

    .podcast-cover {
        margin-bottom: 35px;
    }

    .podcast-title {
        margin-top: 10px;
    }

    /* Ensure buttons have good spacing */
    .podcast-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .podcast-actions .btn {
        width: 100%;
    }
}
/* Mejoras para la sección de archivo y categorías */

/* Estilo para el widget de archivo */
.archives-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Estilos para los años en el acordeón */
.archives-year .accordion-button {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Estilos para el nombre del año */
.archive-year-name {
    flex-grow: 1;
}

/* Estilos para el contador - agregar margen izquierdo */
.archive-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 10px;
    /* Añadimos espacio entre el año y el contador */
    min-width: 30px;
    text-align: center;
}

.accordion-button:not(.collapsed) .archive-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Estilos para la lista de meses */
.archives-months-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-month-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.archive-month-item:last-child {
    border-bottom: none;
}

.archive-month-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.archive-month-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--accent-color);
    padding-left: 1.5rem;
}

.archive-month-name {
    flex-grow: 1;
}

/* Categorías estilo similar al archivo */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    width: 100%;
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.category-name {
    margin: 0;
}

.category-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.category-link:hover .category-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Ajustes adicionales para el acordeón */
.accordion-item {
    margin-bottom: 8px;
    border: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: #fff;
}

/* Estilo para el botón "Ver todos los artículos de año" */
.archive-year-link {
    padding: 0.75rem 1.25rem;
}

.archive-year-link .btn {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
/* Estilo para widgets de sidebar */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Previene que el contenido se salga */
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.75rem;
    position: relative;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Categorías en formato grid */
.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.category-item {
    width: 100%;
    margin-bottom: 0;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #444;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    /* Previene desbordamiento */
    text-overflow: ellipsis;
    /* Agrega puntos suspensivos */
    white-space: nowrap;
    /* Evita que se divida en varias líneas */
}

.category-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.category-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-right: 5px;
}

.category-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.category-link:hover .category-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Ajustes para alinear secciones */
.page-content {
    display: flex;
    flex-wrap: wrap;
}

.main-content,
.sidebar {
    margin-top: 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Responsive para categorías */
@media (max-width: 576px) {
    .categories-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilos para las secciones de contenido */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--accent-color);
}

/* Estilos para las categorías en formato grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    width: 100%;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: #444;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-item:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-name {
    margin-bottom: 5px;
    font-weight: 500;
}

.category-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.category-item:hover .category-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Estilos para los widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Estilos para el archivo */
.archives-year .accordion-button {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.archive-year-name {
    flex-grow: 1;
}

.archive-count {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-left: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-color);
    color: #fff;
}

.accordion-button:not(.collapsed) .archive-count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive para categorías */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

