/*======================= Sección del curso =======================*/
.detalles-curso-section {
    background-color: #003366; /* Azul marino */
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24vh;
}

/* Contenedor del contenido */
.detalles-curso-contenido {
    display: flex;
    width: 80%;
    align-items: center;
}

/* Texto del curso */
.detalles-curso-texto {
    flex: 1;
    padding-right: 20px;
}

/* Título del curso */
.detalles-curso-titulo {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Descripción del curso */
.detalles-curso-descripcion {
    margin-bottom: 20px;
}

/* Rating del curso */
.detalles-curso-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #fbbd08;
    font-weight: bold;
}

.detalles-curso-estrella-icono {
    fill: #fbbd08; /* Color amarillo */
    width: 20px;
    height: 20px;
    margin: 0 5px;
}

.detalles-curso-calificaciones {
    color: gray;
    font-size: 12px;
}

/* Instructor del curso */
.detalles-curso-instructor {
    margin-bottom: 10px;
}

.detalles-curso-instructor-nombre {
    font-weight: bold;
}

/* Actualización del curso */
.detalles-curso-actualizacion {
    display: flex;
    align-items: center;
    color: #FFF; /* Texto blanco */
    font-weight: 100;
}

.detalles-curso-reloj-icono {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Imagen del curso */
.detalles-curso-imagen img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

/* Botón del temario */
.boton-temario {
    background-color: #fbbd08;
    color: #000066;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.boton-temario:hover {
    background-color: #e6a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 189, 8, 0.3);
}

/* Estilo para móviles */
@media (max-width: 768px) {
    .detalles-curso-section {
        padding: 28px 20px 40px;
        min-height: auto;
        align-items: flex-start;
    }

    .detalles-curso-contenido {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .detalles-curso-texto {
        padding-right: 0;
        width: 100%;
    }

    .detalles-curso-titulo {
        font-size: 2rem;
        line-height: 1.2;
        margin-top: 0;
        margin-bottom: 18px;
    }

    .detalles-curso-imagen {
        display: none;
    }

    .boton-temario {
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 12px;
    }
}


/*======================= SECCIÓN DE CURSO =======================*/

.detalles-certificados-cursos {
    background-color: #fff;
    padding: 40px 150px;
    padding-bottom: 0px;
    display: flex;
    flex-wrap: wrap;
}

.detalles-contenido {
    display: flex;
    justify-content: space-between;
    width: 60%;
}

.detalles-texto {
    flex: 1;
    margin-right: 20px;
}

.detalles-titulo {
    color: #3E7BFF;
    font-weight: bold;
    margin-bottom: 10px;
}

.detalles-lista {
    list-style: none;
    padding: 0;
}

.detalles-lista li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.detalles-lista li strong {
    margin-left: 5px; /* Espacio entre el texto y el paréntesis */
}

.icono-lista {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #f1b300;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg>') no-repeat center;
    mask-size: contain;
}

.detalles-formulario {
    flex: 1;
    border: 1px solid #ccc; /* Borde gris alrededor del formulario */
    border-radius: 5px; /* Opcional: para esquinas redondeadas */
    max-width: 400px;
}

/* Modalidad */
.texto-seleccion {
    font-weight: bold;
    margin-top: 15px;
}

.botones-modalidad {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.boton-modalidad {
    padding: 10px;
    border: 1px solid #AFAFAF;
    background-color: white;
    color: #222221;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

.boton-modalidad:hover {
    border: 1px solid #007bff;
    background-color: white;
    color: #007bff;
}

.boton-modalidad.activo {
    background-color: #007bff;
    color: white;
}

/* Fechas */
.fechas-container {
    display: none; /* Oculto por defecto */
}

.texto-fecha {
    font-weight: bold;
    margin-top: 10px;
}

.botones-fecha {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.boton-dia {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #007bff;
    color: #007bff;
    cursor: pointer;
    border-radius: 5px;
}

.boton-dia.activo {
    background-color: #007bff;
    color: white;
}

/* Texto de acceso y pago */
.texto-acceso,
.texto-pago {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

.formulario-switch {
    display: flex;
}

.formulario-switch button {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

.switch-tab.activo {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Formulario estilo cuadrado */

.detalles-formulario {
    background-color: #FFF;
    border-radius: 12px;
    margin-bottom: 0;
}

.detalles-formulario form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
}

.imagen-formulario {
    width: 100%; /* Se ajusta al ancho del contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
}

.linea-divisoria {
    border: none;
    height: 1px;
    background-color: #ccc;
    width: 60%;
    margin: 20px 0;
}

.centrar_boton-cart-buy {
    display: flex;
    align-items: stretch;
    width: 90%;
    margin: 20px;
    flex-direction: column;
}

/* Botón de bienvenida */
.cart-buy-button {
    background-color: #fbbd08; /* Amarillo oscuro */
    color: #000066; /* Azul marino */
    padding: 10px 20px; /* Ajusta los valores para cambiar el tamaño */
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: auto; /* Deja que el ancho se ajuste al contenido */
    white-space: nowrap; /* Evita que el texto se envuelva */
    /*margin-bottom: 10px;*/
}

.cart-buy-button i {
    margin-left: 10px; /* Espaciado entre texto y ícono */
    font-size: 24px;
}

.cart-buy-button:hover {
    background-color: #007bff;
    color: #FFF;
}

/* Estilo para móviles */
@media (max-width: 768px) {
    .detalles-contenido {
        flex-direction: column;
        width: 100%;
    }

    .detalles-texto {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .detalles-formulario {
        width: 100%;
        margin-bottom: 0;
        top: 20px!important;
    }

    .detalles-certificados-cursos {
        padding: 40px 40px;
    }

    .linea-divisoria {
        display: none;
    }

    .icono-lista {
        flex: none;
    }

}

/*======================= FORMULARIO INDIVIDUAL =======================*/

/* Estilo para el formulario individual */
.formulario-individual {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 500px;
    margin: auto;
}

.texto-acceso {
    color: #a3a3a3; /* Gris claro */
    font-size: 10px;
    margin-bottom: 0px;
}

.precio {
    color: #007bff; /* Color del precio */
    font-weight: bold;
    font-size: 24px;
    margin: 0;
}

.texto-fecha {
    color: #000; /* Texto en negro */
    font-size: 10px;
    margin-top: 0px;
    margin-bottom: 20px;
}

.botones-fecha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

/* Botón de fecha básico */
.boton-dia {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    width: 100%;
}

/* Estado hover del botón de fecha */
.boton-dia:hover {
    background-color: #007bff;
    color: #fff;
}

/* Estado seleccionado del botón de fecha */
.boton-dia.seleccionado {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #0056b3;
}

/*======================= FORMULARIO EMPRESAS =======================*/

.formulario-empresa {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-width: 500px;
    margin: auto;
}

/* Texto del formulario */
.empresa-texto-gris {
    color: #cccccc;
    font-size: 10px;
    margin-bottom: 0;
}

.empresa-texto-azul {
    color: #007bff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.empresa-texto-negro {
    color: #000;
    font-size: 10px;
    margin-bottom: 15px;
}

/* Estilo de los inputs */
.empresa-input-linea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.empresa-input-completo {
    width: 100%;
    padding: 10px 5px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Contenedor para las fechas */
.empresa-fechas-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.empresa-fechas-inputs div {
    width: 48%;
}

.formulario-empresa {
    display: none;
}

.formulario-individual {
    display: block; /* Mostrar por defecto el formulario individual */
}

/* Etiquetas de los inputs */
.formulario-empresa label {
    display: block; /* Asegura que el label ocupe toda la línea */
    font-weight: bold; /* Texto en negrita */
    margin-bottom: 10px; /* Espacio entre el label y el input */
    color: #333; /* Color de texto */
    font-size: 12px; /* Tamaño del texto */
}

.formulario-empresa input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}

/* Cuando el input tipo date es seleccionado */
.formulario-empresa input[type="date"]:focus {
    border-color: #007bff;
    outline: none;
}

/*======================= DETALLES INSTRUCTOR =======================*/

.seccion-instructor {
    background-color: white;
    padding: 10px 150px;
    max-width: 45%;
}

.nombre-instructor {
    font-weight: bold;
    color: #003366; /* Azul marino */
    font-size: 18px;
    margin: 0;
}

.cargo-instructor {
    color: #555; /* Gris oscuro */
    font-size: 16px;
    margin-bottom: 20px;
    margin: 0;
    margin-bottom: 10px;
}

.contenedor-instructor {
    display: flex;
    align-items: start;
    gap: 20px;
    flex-wrap: nowrap;
}

.foto-instructor {
    flex-shrink: 0;
}

.foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.descripcion-instructor {
    margin-top: -15px;
}

.descripcion-instructor p {
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .contenedor-instructor {
        flex-direction: column;
        align-items: flex-start;
    }
    .foto {
        width: 80px;
        height: 80px;
    }
}

/* Estilo para móviles */
@media (max-width: 768px) {
    .seccion-instructor {
        padding: 0px 40px;
        max-width: 100%;
    }
}

/*======================= SECCIÓN DE PREGUNTAS FRECUENTES =======================*/

.seccion-faq {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.faq-titulo {
    color: #003366;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    margin-top: 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-pregunta {
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-pregunta:hover {
    background: #f8f9fa;
}

.faq-pregunta.activo {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.faq-icono {
    font-size: 20px;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-pregunta.activo .faq-icono {
    transform: rotate(180deg);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.faq-respuesta.activo {
    max-height: 200px;
    padding: 20px;
}

.faq-respuesta p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

/* Responsive para FAQ */
@media (max-width: 768px) {
    .seccion-faq {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .faq-titulo {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .faq-pregunta {
        padding: 15px;
        font-size: 14px;
    }
    
    .faq-respuesta.activo {
        padding: 15px;
    }
    
    .faq-respuesta p {
        font-size: 13px;
    }
    
    .faq-icono {
        font-size: 18px;
    }
}

/*======================= SECCIÓN DEL TEMARIO =======================*/

.seccion-temario {
    background-color: #fff;
    padding: 40px 150px;
    min-height: 100vh;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.temario-contenido {
    max-width: 1400px;
    margin: 0 auto;
}

.temario-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.temario-columna-izquierda {
    flex: 0 0 400px;
    position: sticky;
    top: 20px;
}

.temario-columna-derecha {
    flex: 1;
    max-width: 800px;
}

.temario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.temario-titulo {
    color: #003366;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.temario-expandir-todo {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.temario-expandir-todo:hover {
    background-color: #0056b3;
}

.temario-modulos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.temario-modulo {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.temario-modulo:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modulo-header {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.modulo-header:hover {
    background: #e9ecef;
}

.modulo-header.activo {
    background: #007bff;
    color: white;
}

.modulo-numero {
    background: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.modulo-header.activo .modulo-numero {
    background: white;
    color: #007bff;
}

.modulo-titulo {
    flex: 1;
    margin-left: 15px;
    font-weight: 600;
    font-size: 16px;
}

.modulo-icono {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.modulo-header.activo .modulo-icono {
    transform: rotate(180deg);
}

.modulo-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fff;
}

.modulo-contenido.activo {
    max-height: 300px;
    padding: 20px;
}

.modulo-tema {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.modulo-tema:hover {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 12px 20px;
}

.modulo-tema:last-child {
    border-bottom: none;
}

.tema-titulo {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.tema-duracion {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive para el temario */
@media (max-width: 768px) {
    .seccion-temario {
        padding: 20px;
    }
    
    .temario-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .temario-titulo {
        font-size: 24px;
    }
    
    .temario-expandir-todo {
        align-self: flex-end;
    }
    
    .modulo-header {
        padding: 15px;
    }
    
    .modulo-titulo {
        font-size: 14px;
        margin-left: 10px;
    }
    
    .modulo-numero {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .modulo-contenido.activo {
        padding: 15px;
    }
    
    .modulo-tema {
        padding: 10px 0;
    }
    
    .modulo-tema:hover {
        margin: 0 -15px;
        padding: 10px 15px;
    }
    
    .tema-titulo {
        font-size: 13px;
    }
    
    .tema-duracion {
        font-size: 11px;
    }
}

/*======================= TARJETA DE INFORMACIÓN DEL CURSO =======================*/

.curso-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.curso-imagen {
    margin-bottom: 20px;
}

.curso-imagen img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.curso-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.activo {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.curso-detalles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.curso-titulo {
    color: #003366;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.curso-descripcion {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.curso-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-numero {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.rating-estrellas {
    display: flex;
    gap: 2px;
}

.rating-estrellas i {
    color: #fbbd08;
    font-size: 16px;
}

.rating-texto {
    color: #666;
    font-size: 12px;
}

.curso-instructor {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.instructor-label {
    color: #666;
    font-size: 12px;
}

.instructor-nombre {
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.curso-actualizacion {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 12px;
}

.curso-actualizacion i {
    color: #007bff;
    font-size: 14px;
}

.boton-temario-volver {
    background-color: #fbbd08;
    color: #000066;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.boton-temario-volver:hover {
    background-color: #e6a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 189, 8, 0.3);
}

/* Responsive para la tarjeta del curso */
@media (max-width: 768px) {
    .temario-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .temario-columna-izquierda {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .temario-columna-derecha {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .curso-info-card {
        position: static;
        padding: 20px;
    }
    
    .curso-imagen img {
        height: 150px;
    }
    
    .curso-titulo {
        font-size: 18px;
    }
    
    .boton-temario-volver {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/*======================= CARRUSELES =======================*/

.curso-carousel,
.temario-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    width: 500%;
}

.carousel-slide {
    flex: 0 0 20%;
    width: 20%;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 28px;
    transition: none;
    z-index: 10;
}

.carousel-btn:hover {
    color: #007bff;
    background: none;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    margin-bottom: 16px!important;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* Responsive para carruseles */
@media (max-width: 768px) {
    .carousel-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/*======================= FORMACIONES RELACIONADAS EN TEMARIO =======================*/

.formation-list-temario {
    background-color: #fff;
    padding: 40px 150px;
    margin-top: 40px;
}

.formation-list-temario .formation-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.formation-list-temario .formation-title {
    color: #003366;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.formation-list-temario .formation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.formation-list-temario .formation-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.formation-list-temario .formation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.formation-list-temario .formation-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.formation-list-temario .formation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.formation-list-temario .formation-item:hover .formation-image img {
    transform: scale(1.05);
}

.formation-list-temario .cart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formation-list-temario .cart-icon:hover {
    background: rgba(0, 0, 0, 0.9);
}

.formation-list-temario .formation-text {
    padding: 20px;
}

.formation-list-temario .formation-initials {
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.formation-list-temario .formation-card-title {
    color: #333;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.formation-list-temario .formation-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.formation-list-temario .formation-rating i {
    color: #fbbd08;
    font-size: 14px;
}

.formation-list-temario .formation-rating-number {
    color: #666;
    font-size: 12px;
}

.formation-list-temario .formation-price {
    color: #007bff;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.formation-list-temario .formation-divider {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 10px 0;
}

.formation-list-temario .formation-duration {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
}

/* Responsive para formaciones en temario */
@media (max-width: 768px) {
    .formation-list-temario {
        padding: 20px;
    }
    
    .formation-list-temario .formation-title {
        font-size: 24px;
    }
    
    .formation-list-temario .formation-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Estilos para la vista completa del temario */
.seccion-temario.vista-completa {
    background-color: #fff !important;
    padding: 40px 150px !important;
    min-height: calc(100vh - 200px) !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    height: auto !important;
    overflow-y: visible !important;
    z-index: auto !important;
}

/* Responsive para la vista completa */
@media (max-width: 768px) {
    .seccion-temario.vista-completa {
        padding: 20px !important;
        min-height: calc(100vh - 150px) !important;
    }
}

/*======================= ESTILOS ADICIONALES PARA EL CALENDARIO =======================*/

/* Mejoras adicionales para el calendario */
.calendario-presencial .flatpickr-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Asegurar que los días estén perfectamente centrados */
.flatpickr-day {
    box-sizing: border-box;
    height: 40px;
    line-height: 24px;
}

/* Mejorar la apariencia de los días del mes anterior/siguiente */
.flatpickr-day.prev-month-day, 
.flatpickr-day.next-month-day {
    opacity: 0.3;
}

/* Efecto hover más suave */
.flatpickr-day:hover {
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Estilo para el día seleccionado */
.flatpickr-day.selected {
    box-shadow: 0 2px 8px rgba(0, 0, 102, 0.3);
}

/* Responsive para el calendario */
@media (max-width: 480px) {
    .flatpickr-day {
        font-size: 13px;
        height: 35px;
        padding: 6px 0;
    }
    
    .flatpickr-current-month {
        font-size: 1em;
    }
    
    .flatpickr-weekday {
        font-size: 12px;
    }
}

/*======================= ESTILOS ESPECÍFICOS PARA EL CALENDARIO FLATPICKR =======================*/

/* Forzar centrado perfecto de los días */
.flatpickr-day {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: calc(14.2857% - 4px) !important;
    height: 40px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 2px !important;
}

/* Días del mes anterior/siguiente más opacos */
.flatpickr-day.prev-month-day,
.flatpickr-day.next-month-day {
    opacity: 0.3 !important;
    color: #ccc !important;
}

/* Asegurar que los días de la semana estén centrados */
.flatpickr-weekday {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: calc(100% / 7) !important;
    flex: 1 !important;
}

/* Flecha izquierda siempre visible */
.flatpickr-prev-month {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Mes/año no seleccionable */
.flatpickr-current-month {
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* Contenedor de días con distribución perfecta */
.flatpickr-days {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Header del calendario con distribución perfecta */
.flatpickr-months {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/*======================= ESTILOS ADICIONALES PARA FORZAR EL CENTRADO =======================*/

/* Forzar el centrado de los días usando CSS Grid */
.flatpickr-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 8px 0 !important;
}

/* Días individuales con centrado perfecto */
.flatpickr-day {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 40px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 15px !important;
    color: #222 !important;
}

/* Días de la semana con centrado perfecto */
.flatpickr-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 8px 0 !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.flatpickr-weekday {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    color: #888 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar completamente la flecha del mes */
.flatpickr-current-month .cur-month {
    display: none !important;
}

/* Asegurar que el mes/año sea solo texto */
.flatpickr-current-month {
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
    text-align: center !important;
}