/*======================= 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;
}

/* Estilo para móviles */
@media (max-width: 768px) {
    .detalles-curso-section {
        padding: 0;
        padding-bottom: 40px;
    }
    .detalles-curso-contenido {
        flex-direction: column;
    }

    .detalles-curso-imagen {
        display: none; /* Oculta la imagen en móviles */
    }

    .detalles-curso-texto {
        padding-right: 0;
    }
}


/*======================= 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-individual,
.switch-empresa {
    background-color: #fff;
    color: #888;
    border: 1px solid #00c3e3;
}

/* Botones activos */
.switch-individual.activo,
.switch-empresa.activo {
    background-color: #007bff;
    color: white;
}

/* Formulario estilo cuadrado */

.detalles-formulario {
    background-color: #FFF;
    border-radius: 0;
    margin-bottom: -90vh;
}

.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;
    }

    .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: 50%;
}

.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%;
    }
}