/* Eliminar márgenes y padding globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo general del cuerpo */
body {
    font-family: Arial, sans-serif;
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    
}

/* Encabezado - Fijado en la parte superior */
header {
   background-color: #494949; 
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo del logo */
.logo {
    height: 70px;
    padding-left: 20px;
}

/* Navegación */
nav {
    flex: 1;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* Estilo de la lista de enlaces principales */
.main-nav {
    list-style-type: none;
    display: flex;
    gap: 40px; 
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
}

/* Enlaces del menú */
.main-nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.main-nav li a:hover {
    text-decoration: underline;
}

/* Enlace "Iniciar sesión" */
.login-link {
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #318ce7;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.login-link:hover {
    background-color: #4a9ae9;
}




/* Secciones generales */
section {
    margin: 20px 0; 
}

/* Estilo para las secciones principales */
.hero {
    display: flex;              
    flex-direction: column;      
    justify-content: center;   
    align-items: center;       
    text-align: center;
    position: relative;          
    background-image: url('img/fondo4.jpg'); 
    background-size: cover;      
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    width: 100vw;              
    margin: 0;                
    min-height: 90vh;        
    box-sizing: border-box;
    z-index: 1;                
    padding: 0 20px;
}


.hero::before {
    content: "";               
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);  
    z-index: -1;                
}

/* Ajuste del tamaño de los textos */
h1 {
    font-size: 3em;              
    margin-bottom: 20px;         
}

h2 {
    font-size: 2em;            
    margin-bottom: 10px;        
}


/* Información general de las secciones */
.info {
    text-align: center;
}

.info img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Estilo para la sección call-to-action con fondo gris */
.call-to-action {
    background-color: #494949; 
    color: white;
    text-align: center;
    padding: 40px 20px; 
    margin: 0; 
}

.call-to-action h2 {
    font-size: 2.1em; /* Texto grande y atractivo */
    margin-bottom: 15px;
}

.call-to-action p {
    font-size: 1em; /* Texto de soporte */
}

/* Estilos para el botón "Saber más" */
.cta-button {
    display: inline-block;
    background-color: #318ce7;
    color: white;
    padding: 15px 30px; 
    font-size: 1.2em;
    border-radius: 25px; 
    text-decoration: none; 
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Efecto hover (cuando el cursor está sobre el botón) */
.cta-button:hover {
    background-color: #4a9ae9; 
    transform: translateY(-5px); 
}



/* Sección de Cursos */
.cursos {
    margin-top: 0;
    margin-bottom: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4; 
}

/* Contenedor de contenido de la sección cursos */
.cursos-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px; 
}

/* Estilo del texto en la sección de cursos */
.cursos .texto {
    flex: 1; 
}

.cursos .texto h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.cursos .texto p {
    font-size: 1.2em;
    color: #555; 
    line-height: 1.6;
}

/* Estilo de la imagen en la sección de cursos */
.cursos .imagen {
    flex: 1; 
}

.cursos .imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; 
}

/* Estilo del botón sutil "Saber más" */
.btn-saber-mas {
    display: inline-block;
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 10px 20px; 
    font-size: 1.1em;
    border-radius: 30px; 
    text-decoration: none; 
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* Efecto hover (cuando el cursor está sobre el botón) */
.btn-saber-mas:hover {
    background-color: #333;
    color: white; 
    transform: scale(1.05); 
}


/* Sección de Diplomas */
.diplomas {
    margin-top: 0;
    margin-bottom: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4; 
}

/* Contenedor de contenido de la sección diplomas */
.diplomas-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px; 
}

/* Estilo del texto en la sección de diplomas */
.diplomas .texto {
    flex: 1; 
}

.diplomas .texto h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.diplomas .texto p {
    font-size: 1.2em;
    color: #555; 
    line-height: 1.6;
}

/* Estilo de la imagen en la sección de diplomas */
.diplomas .imagen {
    flex: 1; 
}

.diplomas .imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; 
}

/* Botón sutil "Saber más" */
.btn-saber-mas {
    display: inline-block;
    background-color: transparent;
    color: #333; 
    border: 2px solid #333; 
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 30px; 
    text-decoration: none; 
    margin-top: 20px;
    transition: all 0.3s ease; 
}

/* Efecto hover (cuando el cursor está sobre el botón) */
.btn-saber-mas:hover {
    background-color: #333;
    color: white; 
    transform: scale(1.05); 
}

/* Estilo de la imagen en la sección de cursos, diplomas y asistentes */
.cursos .imagen img,
.diplomas .imagen img,
.asistentes .imagen img,
.eventos .imagen img {
    max-width: 150%;
    height: 350px; 
    object-fit: cover; 
    border-radius: 8px; 
}



/* Sección de Asistentes */
.asistentes {
    margin-top: 0;
    margin-bottom: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4; 
}

/* Contenedor de contenido de la sección asistentes */
.asistentes-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px; 
}

/* Estilo del texto en la sección de asistentes */
.asistentes .texto {
    flex: 1; 
}

.asistentes .texto h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333; 
}

.asistentes .texto p {
    font-size: 1.2em;
    color: #555; 
    line-height: 1.6;
}

/* Estilo de la imagen en la sección de asistentes */
.asistentes .imagen {
    flex: 1;
}


/* Botón sutil "Saber más" */
.btn-saber-mas {
    display: inline-block;
    background-color: transparent;
    color: #333; 
    border: 2px solid #333; 
    padding: 10px 20px; 
    font-size: 1.1em;
    border-radius: 30px; 
    text-decoration: none; 
    margin-top: 20px;
    transition: all 0.3s ease; 
}

/* Efecto hover (cuando el cursor está sobre el botón) */
.btn-saber-mas:hover {
    background-color: #333; 
    color: white; 
    transform: scale(1.05); 
}


/* Sección de Eventos */
.eventos {
    margin-top: 0;
    margin-bottom: 0;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4; 
}

/* Contenedor de contenido de la sección eventos */
.eventos-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px; 
}

/* Estilo del texto en la sección de eventos */
.eventos .texto {
    flex: 1; 
}

.eventos .texto h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.eventos .texto p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* Estilo de la imagen en la sección de eventos */
.eventos .imagen {
    flex: 1; 
}

.eventos .imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; 
}

/* Botón "Saber más" - mismo estilo en todas las secciones */
.btn-saber-mas {
    display: inline-block;
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-saber-mas:hover {
    background-color: #333;
    color: white;
    transform: scale(1.05);
}










/* Estilo general para el footer */
.footer {
    background-color: #494949; 
    color: white; 
    padding: 40px 20px; 
}

.footer-content {
    display: flex; 
    justify-content: space-between; 
    max-width: 1200px;
    margin: 0 auto; 
}

.footer-column {
    flex: 1; 
    padding: 0 30px; 
}

.footer-logo {
    width: 200px;
    margin-bottom: 20px;
}


/* Estilo para las redes sociales */
.social-icons a {
    margin-right: 10px; 
}

.social-icons img {
    width: 30px; 
    height: 30px;
}

/* Estilo para los enlaces del aviso legal */
.footer-column ul {
    list-style-type: none; 
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px; 
}

.footer-column ul li a {
    color: white;
    text-decoration: none; 
    transition: color 0.3s ease;
}

/* Cambiar el color de los enlaces al pasar el cursor */
.footer-column ul li a:hover {
    color: #4a9ae9; 
}

/* Estilo general para enlaces en el footer, incluyendo el correo */
.footer-column a {
    color: white; 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

/* Cambiar el color al pasar el cursor */
.footer-column a:hover {
    color: #4a9ae9; 
}



/* PÁGINA DE CURSOS */

/* Estilo para la sección hero */
.hero {
    text-align: center;
    background-image: url('img/fondo4.jpg'); 
    background-size: cover;
    padding: 100px 20px;
    color: white;
    min-height: 90vh;
}

/* Estilo para las entradas de cursos */
.cursos-entradas {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
    gap: 20px;
    padding: 40px 40px;
}

.entrada {
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px; 
}


.entrada img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.entrada h3 {
    margin-top: 15px;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.entrada p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
}

.leer-mas {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.leer-mas:hover {
    background-color: #4a9ae9;
}



/* PÁGINA DE INICIO DE SESIÓN */

/* Página de inicio de sesión */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #333 50%, #ffffff 50%);
}

/* Caja del formulario de inicio de sesión */
.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

/* Logo específico para la página de login */
.login-logo {
    width: 250px;
    margin-bottom: 20px;
    height: 100px;
}

/* Campos de texto para iniciar sesión */
.login-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

/* Enlace de olvidar contraseña */
.forgot-password {
    display: block;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Contenedor de botones */
.login-btn-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Botón de iniciar sesión */
.login-btn {
    display: inline-block;
    width: 48%;
    padding: 15px;
    background-color: #333;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #4a9ae9;
}

/* Botón de registrarse */
.login-btn-register {
    display: inline-block;
    width: 48%;
    padding: 15px;
    background-color: #333;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.login-btn-register:hover {
    background-color: #4a9ae9;
}



/* Página de registro */
/* Página de registro */
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #333 50%, #ffffff 50%);
}

/* Caja del formulario de registro */
.register-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* Campos del formulario de registro */
.register-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

/* Botón de registro */
.register-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #333;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #4a9ae9;
}


/* FLECHA PARA SUBIR ARRIBA */

/* Estilo para el botón circular con flecha */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #318ce7; 
    color: white;
    font-size: 24px; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000; 
}

/* Efecto hover en el botón */
.back-to-top:hover {
    background-color: #4a9ae9; 
    transform: translateY(-5px); 
}

/* Ocultar el botón por defecto */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Mostrar el botón cuando se hace scroll */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}


/* PÁGINA CURSO-DETALLE */

/* PÁGINA DE CURSOS DETALLE */

/* Contenedor de las entradas de los cursos */
.cursos-entradas {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Permite que las entradas se adapten al ancho de la pantalla */
    gap: 20px;
    padding: 40px 40px;
}

/* Estilo de cada entrada de curso */
.curso-info {
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%; /* Asegura que haya 3 entradas por fila */
    padding: 20px;
    text-align: center;
    margin-bottom: 40px; /* Espaciado inferior entre filas */
}

.curso-info h3 {
    margin-top: 15px;
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.curso-info p {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

/* Estilo para pantallas pequeñas */
@media (max-width: 768px) {
    .cursos-entradas {
        flex-direction: column;
        padding: 20px;
    }

    .curso-info {
        width: 100%; /* En pantallas pequeñas, cada curso ocupará todo el ancho */
    }
}

/* Sección de inscripción */
.inscripcion-curso {
    background-color: #f9f9f9; /* Fondo claro para el formulario */
    padding: 40px;
    max-width: 600px;
    margin: 0 auto; /* Centra la sección en la página */
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Sombra suave para el contenedor */
    text-align: center;
}

/* Título del formulario */
.inscripcion-curso h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

/* Estilos generales para los campos del formulario */
.inscripcion-curso input[type="text"],
.inscripcion-curso input[type="date"],
.inscripcion-curso select {
    width: 100%; /* Los inputs ocupan todo el ancho */
    padding: 15px; /* Relleno interno para que los campos sean cómodos de usar */
    margin-bottom: 20px; /* Espaciado entre los campos */
    border: 1px solid #ccc; /* Borde gris claro */
    border-radius: 8px; /* Bordes redondeados */
    font-size: 1em; /* Tamaño de fuente cómodo */
    box-sizing: border-box;
}

/* Estilo para el menú desplegable */
.inscripcion-curso select {
    padding: 12px;
    background-color: #fff;
    cursor: pointer;
}

/* Botón de inscripción */
.inscripcion-curso button[type="submit"] {
    background-color: #4a9ae9;
    color: white;
    padding: 15px 30px; /* Tamaño del botón */
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Efecto hover (al pasar el ratón sobre el botón) */
.inscripcion-curso button[type="submit"]:hover {
    background-color: #318ce7;
}

/* Estilos para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .inscripcion-curso {
        padding: 20px;
    }

    .inscripcion-curso h2 {
        font-size: 1.8em;
    }
}



/* Sección Acerca de Nosotros */
.acerca-nosotros {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

/* Título principal */
.acerca-nosotros h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

/* Estilo del grid con 2 columnas y 3 filas */
.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto; /* Centra el grid */
}

/* Estilo de cada recuadro */
.recuadro {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    text-align: left;
    position: relative;
}

/* Estilos para las imágenes en los recuadros */
.recuadro img {
    width: 300px; /* Tamaño medio de la imagen */
    height: auto;
    display: block;
    margin: 0 auto 20px auto; /* Centrar la imagen y agregar margen inferior */
}

/* Estilo del título y texto */
.recuadro h2 {
    font-size: 1.8em;
    color: #4a9ae9;
    margin-bottom: 10px;
    text-align: center;
}

.recuadro p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    text-align: center;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .nosotros-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
}





/* Sección de Eventos */
.eventos {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

/* Título principal */
.eventos h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

/* Grid para los eventos: 3 columnas y 4 filas */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto; /* Centrar el grid */
}

/* Estilo de cada evento */
.evento {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    display: flex;
    flex-direction: column; /* Flex para alinear el botón */
    justify-content: space-between; /* Asegura que el botón esté abajo */
    height: 100%;
    text-align: left;
}

.evento h2 {
    font-size: 1.8em;
    color: #4a9ae9;
    margin-bottom: 10px;
}

.evento p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Botón de Apuntarse */
.evento button {
    padding: 10px 30px; /* Ajusta el tamaño verticalmente (menos largo) y ancho moderado */
    background-color: #4a9ae9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block; /* Asegura que el botón no ocupe todo el ancho */
    margin: 0 auto; /* Centra el botón horizontalmente */
}

/* Efecto hover con animación */
.evento button:hover {
    background-color: #318ce7;
    transform: scale(1.05); /* Botón se agranda ligeramente */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2); /* Añade sombra */
}



/* Galería de Fotos (Collage) */
.galeria-eventos {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: #f4f4f4;
}

.galeria-eventos h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    text-align: center; /* Título centrado */
}

/* Collage de imágenes */
.collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas para el collage */
    grid-template-rows: repeat(2, 1fr); /* Dos filas */
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .eventos-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }

    .collage {
        grid-template-columns: 1fr; /* Collage a una sola columna en pantallas pequeñas */
        grid-template-rows: repeat(6, 1fr); /* Ajuste de filas en móvil */
    }
}
