/* Estilo general */
html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #0F3759;
    color: white;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow-x: hidden; /* Evita desplazamiento horizontal */
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b2c50;  
    padding: 10px 20px;
    color: white;
	position: fixed; /* Hace que el men� quede fijo */
    top: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho */
    padding: 15px 0;
    z-index: 1000; /* Asegura que el men� est� por encima del contenido */
}
header h1 {
   margin: 2px;
	font-size: 25px;
}
.nav-menu {
    display: flex;
}
.nav-menu ul {
    list-style: none;
    display: flex;
    padding: 0;
}
.nav-menu ul li {
    margin: 0 15px;
}
.nav-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}
.nav-menu ul li a:hover {
     background-color: #21B8C7; /* Azul claro */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #0F3759;
        width: 100%;
        text-align: center;
    }
    .nav-menu ul {flex-direction: column;}
    .nav-menu ul li {margin: 10px 0;}
    .menu-toggle {display: block;}
    .nav-menu.active {display: flex;}
}
.nav-menu.active ~ .hero {
    margin-top: 250px; /* Ajusta seg�n la altura del men� */
}
.nav-link.active {
    background-color: #21B8C7; /* Azul claro */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}
#curso-content {
    background: #0b2c50;
    height: 100vh;
    margin-top: 20px;
    text-align: center;
}
/*aqui comienza la edicion que deberia cambiar */
.hero {
    position: relative;
    width: 100%;
    min-height: 360px;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-content{
    background: rgba(255, 255, 255, 0.1); /* Transparencia ligera */

}
/* Título sobre la imagen */
.hero-content  h2 {
    position: relative;
    z-index: 3;
    font-size: 2.5rem;
    overflow: hidden;
}
.hero-content  p {
    padding-left:50px;
    padding-right:50px;
    position: relative;
    z-index: 3;
    font-size: 1.0rem;
    overflow: hidden;
}
/* Ola en la parte inferior */
@media screen and (min-width: 900px) {
    .hero{
        height: 650px;
    }
    .hero-content  h2 {
        font-size: 3.5rem;
    }
    .hero-content  p {
        font-size: 1.5rem;
    }
}
.hero-wave {
    position: absolute;
    display: block;
    top: 310px;
    width: 100%;
    z-index: 5;
}

@media screen and (min-width: 300px) and (max-width: 500px) {
    .hero-wave { top: 260px; } .hero-content h2 { font-size: 1.0rem; margin-top: 2%;} .hero-content p { font-size: 0.6rem;}}
@media screen and (min-width: 500px) and (max-width: 800px) {
    .hero-wave{top:260px;} .hero-content h2 { font-size: 1.5rem;}}
@media screen and (min-width: 801px) and (max-width: 1400px) {
    .hero-wave{top:260px;} .hero-image{ min-height:410px;}}
@media screen and (min-width: 900px){
    .hero-wave{top:410px;}}


@media screen and (min-width: 1400px){
        .hero-wave{top:410px;}}


/* responsive para pantallas entre 1000px y 1400px */
/* Ajuste del carrusel */
/* Contenedor principal centrado */
#carrusel {
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}
/* Contenedor del carrusel */
.carousel-container {
    top:-20px;
    display: relative;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ajusta según necesidad */
    max-width: 90%; /* Tamaño máximo del carrusel */
    position: relative;
    overflow: hidden;
    z-index: 6;
}
/* Carrusel (alineado en el centro) */
.carousel {
     display: flex;
    transition: transform 0.5s ease-in-out;
    width: 90%;  /* Usa porcentaje en lugar de píxeles */
    max-width: 600px; /* Máximo tamaño */
    height: auto; /* Ajusta la altura automáticamente */
}
/* En pantallas menores a 1400px */
@media screen and (max-width: 2900px) {
    .carousel {
        width: 650px;
		height:500px;}
}
/* En pantallas menores a 1400px */
@media screen and (max-width: 1400px) {
    .carousel {
        width: 400px;
		height:350px;}
}
/* En pantallas menores a 768px */
@media screen and (max-width: 968px) {
    .carousel {
        width: 250px;
        height: 150px;}
}
/* En pantallas menores a 480px (móviles pequeños) */
@media screen and (max-width: 580px) {
    .carousel {
        width: 100px;
        height: 100px;
    }
}
/* Imágenes del carrusel */
.carousel img {
    width: 100%;
    flex: 0 0 100%;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    object-fit: cover;
}
.carousel-indicators {
    position: relative; /* Cambia de absolute a relative */
    text-align: center;
    margin-top: 20px; /* Aumenta la separación */
}
.carousel-indicators .indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #21B8C7;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}
.carousel-indicators .indicator.active {
    background-color: #0F3759;
}
/* Ocultar botones de navegación */
#prevBtn, #nextBtn {
    display: none;
}
.seccion{
    position: absolute;
    background: #f4f4f4;
    width: 100%;
    height: 200px;
}
.tuercas{
    position: relative;
    display: flex;
    width: 100%;
    z-index: 8;
    
}

@media screen and (min-width: 300px) and (max-width: 1050px) {
    .tuercas {
        top: calc(-190px - ((100vw - 300px) * 0.6));
    }
    .tuercas {
        margin-top: 8%;
    }
}



@media screen and (min-width:320px) and (max-width: 600px) {
    .contenedor-seccion {
    top:-155px;  
    }
}

@media screen and (min-width:600px) and (max-width: 900px) {
    .contenedor-seccion {
    top:-100px;  
    }
}
@media screen and (min-width:900px) and (max-width: 1100px) {
    .contenedor-seccion {
    top:-40px;  
    }
}

@media screen and (min-width:300px) and (max-width: 320px) {
    .contenedor-seccion {
    top:-165px;  
    }
}
@media screen and (min-width: 1051px) and (max-width: 1900px) {
    .tuercas {
        top: calc(-550px - ((100vw - 1050px) * 0.5));
    }
    
}
@media screen and (min-width: 1901px) {
    .tuercas {
        top:-950px;
    
}
}
@media screen and (min-width:1500px){
.contenedor-seccion{top:80px;}
}
/*aqui son los estilos del contenido */
.contenedor-seccion {
    background: #0F3759; /* Color azul de fondo */
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 210px;
    overflow: hidden;
}

.contenido-aprendizaje {
    max-width: 70%;
    margin: 0 auto;
    text-align: left;
}
@media screen and (min-width: 1800px) { .contenido-aprendizaje { margin-top: 80px; } }
.contenido-aprendizaje h2 {
    text-align: center;
    font-size: 1.5rem;
}

.contenido-aprendizaje p {
    margin-left: 10%;
    margin-right: 10%;
    font-size: 1.2rem;
}

.contenido-aprendizaje strong {
    display: block;
    font-weight: bold;
    color: white;
}

.contenido-aprendizaje em {
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 25px;
}

@media screen and (max-width: 968px) { .contenido-aprendizaje h2 { font-size: 1.2rem; } .contenido-aprendizaje p { font-size: 0.9rem; margin-left: 0; margin-right: 0;} }

.contenido-futuro-digital {
    max-width: 70%;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
}

.contenido-futuro-digital h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contenido-futuro-digital ul {
    list-style-type: disc;
    padding-left: 20px;
}

.contenido-futuro-digital li {
    font-size: 1.2rem;
    margin: 10px 0;
    color: white;
}

.contenido-futuro-digital strong {
    font-weight: bold;
    color: white;
}

.contenido-futuro-digital em {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 20px;
}

@media screen and (min-width: 1800px) { .contenido-futuro-digital { margin-top: 20px; } }
@media screen and (max-width: 968px) { .contenido-futuro-digital h2 { font-size: 1.2rem; } .contenido-futuro-digital p { font-size: 0.9rem; margin-left: 0; margin-right: 0;} }


.contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    z-index: 5;
}
.fila {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;  /* Permite que las columnas se acomoden según el espacio disponible */
    width: 100%;
    max-width: 1100px;
    z-index: 5;
}

.columna {
    padding: 20px;
    border-radius: 10px;
    width: 30%;  /* Ajustado para 3 columnas */
    min-width: 280px; /* Evita que se reduzcan demasiado */
    text-align: center;
    z-index: 5;
}

@media screen and (min-width: 1000px) {
    .columna { width: 25%; /* Ahora caben 2 columnas */}
    .coumna h3{ font-size: 2.5rem; }
    .columna p{ font-size: 1.0rem; }
}
@media screen and (min-width: 1500px) {
    .columna { width: 25%; /* Ahora caben 2 columnas */}
    .fila h3{ font-size: 1.5rem; }
    .fila p{ font-size: 1.2rem; }
}

/* Ajuste para 2 columnas cuando el ancho es menor a 1000px */
@media screen and (max-width: 1000px) {
    .columna { width: 45%; /* Ahora caben 2 columnas */}
}
/* Ajuste para 1 columna cuando el ancho es menor a 600px */
@media screen and (max-width: 600px) {
    .columna {width: 90%; /* Ahora solo hay 1 columna centrada */ }
}
/* aqui inicia el footer */
/* Estilo general del footer */
.footer {
    position: relative;
    background: url('../fondos/fondo-footer.webp') no-repeat center center;
    background-size: cover;
    color: black;
    padding: 60px 20px 20px 20px ;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    z-index: 3;
}

.footer-copyright {
    justify-content: center;
    text-align: center;
    padding: 10px;
    background-color: #1AE2E4;
    color: #fff;
    font-size: 14px;
}
/* Contenedor del contenido */
.footer-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
/* Imagen a la izquierda */
.footer-image {
    flex: 1;
    max-width: 400px; /* Tamaño maximo de la imagen */
    display: flex;
    justify-content: flex-start;
}
.footer-image img {
    max-width: 100%;
    height: auto;
}
@media screen and (min-width: 760px) and (max-width: 900px) {
    .footer-image img {
        position: absolute;
        height: 250px; 
        width: 250px;
        top:200px;
        left: 2%;
    }
}
@media screen and (min-width: 250px) and (max-width: 760px) {
    .footer-image img {
        position: absolute;
        height: 200px; 
        width: 200px;
        top:200px;
        left: 2%;
    }
}
/* Informacion de contacto en el centro */
.footer-info {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
	margin-top:100px;
}
/* Espaciado�neas de contacto */
.footer-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
}
.footer-info p {
    margin: 5px 0;
}
/* Iconos encima del texto */
.footer-info i {
    font-size: 24px;
    color: white;
    margin-bottom: 5px;
    display: block;
}
/* Formulario a la derecha */
.footer-form {
flex: 1;
    max-width: 33%;
    text-align: center;
}
/* Estilos de los campos del formulario */
.footer-form input,
.footer-form textarea,
.footer-form button {
    width: 80%;
    padding: 12px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}
.footer-form textarea {
    resize: none;
    height: 120px;
}
.footer-form button {
    background: #0056b3;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
/* Ajustes para pantallas ALTAS */
@media (min-height: 1500px) {
    .footer {min-height: 650px; /* Aumenta el tama�o del footer */}
    .footer-form {max-width: 400px; /* Aumenta el tama�o del formulario */}
    .footer-info {font-size: 20px; /* Aumenta el tamaño del texto */}
}
/*  Ajustes para pantallas MUY ALTAS (1900px o mas) */
@media (min-height: 1900px) {
    .footer {min-height: 900px;}
    .footer-form { max-width: 450px; /* Formulario m�s g7ande */}
    .footer-info {font-size: 22px;}
}
/*  Responsividad para pantallas peque�as */
@media (max-width: 900px) {
    .footer-container {flex-direction: column;
        text-align: center;}
    .footer-image,
    .footer-info,
    .footer-form {max-width: 100%;
        margin-bottom: 20px;}
}
/* Ajustes para pantallas muy pequeñas (altura < 500px) */
@media (max-height: 500px) {
    .footer {min-height: 350px; /* Reduce el tamaño */}
    .footer-form {max-width: 250px; /* Formulario mas compacto */}
    .footer-info {font-size: 16px; /* Texto mas pequeño */}
}

@media screen and (max-width: 900px) {
    .footer-image img {
        position: relative; /* Cambiar de absolute a relative */
        width: 150px; /* Ajustar tamaño */
        height: auto;
        margin: 0 auto; /* Centrar si es necesario */
        left: -100px;
    }
}
/*aqui termina el footer */