/* Estilos para la sección de próximos cursos */
.upcoming-courses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

/* Encabezado de sección */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background-color: rgba(238, 67, 67, 0.1);
    color: #DC3545;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #212529;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title strong {
    font-weight: 700;
    color: #DC3545;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #DC3545, #f04c4c);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Filtros de cursos */
.course-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    margin-right: 10px;
    color: #495057;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: white;
    color: #495057;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(227, 68, 68, 0.2);
    outline: none;
}

.search-wrapper {
    flex-grow: 1;
    max-width: 350px;
    margin-left: 15px;
}

.search-group {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(216, 44, 44, 0.2);
    outline: none;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: #DC3545;
}

/* Navegación por meses */
.month-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.month-tab {
    flex: 1;
    min-width: 120px;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.month-tab:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.month-tab.active {
    background-color: #DC3545;
    color: white;
    border-color: #DC3545;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(229, 58, 58, 0.3);
}

.month-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.month-year {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.course-count {
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.month-tab.active .course-count {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Contenido de meses */
.month-content-wrapper {
    position: relative;
}

.month-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.month-content.active {
    display: block;
}

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

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.month-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #212529;
    display: flex;
    align-items: center;
}

.month-title i {
    margin-right: 10px;
    color: #DC3545;
}

.month-title strong {
    font-weight: 700;
    margin-left: 5px;
}

/* Carrusel y navegación */
.carousel-container {
    position: relative;
    padding: 0 0px;
    margin-bottom: 40px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e9ecef;
    color: #DC3545;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background-color: #DC3545;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Estilos para Owl Carousel */
.owl-carousel {
    padding: 10px 0;
}

.owl-carousel .item {
    padding: 10px;
}

.owl-dots {
    margin-top: 20px;
    text-align: center;
}

.owl-dot {
    width: 10px;
    height: 10px;
    background-color: #e9ecef !important;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.owl-dot.active {
    background-color: #DC3545 !important;
    transform: scale(1.2);
}

/* Tarjeta de curso */
.course-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.course-level {
    background-color: rgba(255, 255, 255, 0.9);
    color: #212529;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #DC3545;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #DC3545;
    color: white;
    transform: scale(1.1);
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.course-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.tag-psicologia {
    background-color: #008D34;
}

.tag-autismo {
    background-color: #FFC000;
}

.tag-educacion {
    background-color: #FE6300;
}

.tag-gerontologia {
    background-color: #9000FF;
}

.tag-crianza {
    background-color: #E72490;
}

.tag-coaching {
    background-color: #6AD200;
}

.tag-terapias {
    background-color: #72C3FF;
}

.tag-format {
    background-color: #DC3545;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #212529;
}

.course-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
}

.detail-item i {
    margin-right: 8px;
    color: #DC3545;
}

.course-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: auto;
}

.course-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #DC3545;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.course-button:hover {
    background-color: #e85050;
    transform: translateX(5px);
}

/* Botón Ver más */
.view-more-container {
    margin-top: 40px;
}

.view-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: white;
    color: #DC3545;
    border: 2px solid #DC3545;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more-button:hover {
    background-color: #DC3545;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(221, 60, 60, 0.3);
}

.view-more-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-more-button:hover i {
    transform: translateX(5px);
}

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .course-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-wrapper {
        margin-bottom: 15px;
    }
    
    .search-wrapper {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .upcoming-courses-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .month-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .month-tab {
        min-width: 100px;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .month-title {
        font-size: 1.3rem;
    }
    
    .carousel-container {
        padding: 0 0px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .course-details {
        grid-template-columns: 1fr;
    }
}




.tag-article {
    background-color: #4361ee;
}

.tag-research {
    background-color: #f72585;
}

.tag-guide {
    background-color: #7209b7;
}

.tag-psicologia {
    background-color: #008D34;
}

.tag-autismo {
    background-color: #FFC000;
}

.tag-educacion {
    background-color: #FE6300;
}

.tag-crianza {
    background-color: #E72490;
}

.news-featured-badge {
    background-color: rgba(247, 37, 133, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 25px;
}

.news-featured-badge i {
    font-size: 0.9rem;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #a0aec0;
}

.meta-item i {
    margin-right: 5px;
    font-size: 0.9rem;
    color: #f04c4c;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #f7fafc;
}

.news-card.featured .news-title {
    font-size: 1.8rem;
}

.news-description {
    color: #cbd5e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #f04c4c;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f7fafc;
}

.author-title {
    font-size: 0.8rem;
    color: #a0aec0;
}



/* Botón Ver más */
.view-more-container {
    margin-top: 20px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.view-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f7fafc;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-more-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-more-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-more-button:hover i {
    transform: translateX(5px);
}

/* Suscripción al boletín */
.newsletter-container {
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.newsletter-content {
    background: linear-gradient(135deg, #ee4343 0%, #a30c0c 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.newsletter-text {
    flex: 1;
    min-width: 200px;
}

.newsletter-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.newsletter-input:focus {
    outline: none;
    background-color: white;
}



.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    margin-top: 3px;
}

.form-check-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-check-label a {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .news-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .news-card {
        grid-column: span 6;
    }
    
    .news-card.featured {
        grid-column: span 12;
    }
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .newsletter-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }
    
    .newsletter-icon {
        margin: 0 auto;
    }
    
    .newsletter-text {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .latest-news-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-card, .news-card.featured {
        grid-column: span 1;
    }
    
    .news-card.featured .news-image-wrapper {
        height: 220px;
    }
    
    .news-card.featured .news-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .newsletter-button {
        border-radius: 8px;
        width: 100%;
    }
}