/* Estilo general */
html, body {
    font-family: 'Roboto', sans-serif;
    background-color: #0b2c50;
    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: auto;
    margin-top: 20px;
    text-align: center;
}



/*aqui comienza la edicion que deberia cambiar */

/* Contenedor principal */
.hero {
    position: relative;
    width: 100%;
    min-height: 350px;
   
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

@media screen and (min-width: 1400px) {
    .hero{
        height: 650px;
    }
}
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Título sobre la imagen */
.hero-content  h2{
    position: relative;
    background: csv(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    z-index: 2;
    font-size: 2.5rem;
}
/* Ola en la parte inferior */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 103%;
    height: auto;
}

/* Sección de descripción */
.descripcion {
    background: #0b2c50;
    color:white;
    text-align: center;
    padding: 40px 20px;
    max-width: 80%;
    margin: auto;
}

.descripcion h2 {
    font-size: 1.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.descripcion p {
    font-size: 0.8rem;
    font-weight: normal;
    max-width: 800px;
    margin: auto;
    line-height: 1.6;
}

/* Ajustes para dispositivos pequeños */
@media (max-width: 768px) {
    .descripcion h2 {
        font-size: 1.5rem;
    }

    .descripcion p {
        font-size: 1rem;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .hero {
        height: 250px;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
}


/*aqui comiensa las tarjetas */
/* Contenedor de tarjetas */
.tarjetas-container {
    
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 tarjetas en pantallas grandes */
    gap: 20px;
    padding: 20px;
    max-width: 900px; /* Controla el ancho máximo */
    margin: 0 auto; /* Centra el contenedor */
}
/* Tarjetas */
.tarjeta {
    position: relative;
    background: linear-gradient(to bottom, #1D66A5, #978FCB);
    border-radius: 15px;
    overflow: hidden;
    width: 270px;
    text-align: center;
    color: white;
    padding-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover */
.tarjeta:hover {
    transform: translateX(-10px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* Encabezado */
.tarjeta-header {
    font-weight: bold;
    padding: 10px;
    font-size: 1.2em;
    text-align: left;
}

/* Imagen dentro de la tarjeta */
.tarjeta-body img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 4px solid #60A5FA;
    border-radius: 5px;
}

/* Contenido de la tarjeta */
.tarjeta-body {
    padding: 15px;
}

/* Títulos */
.tarjeta-body h3 {
    font-size: 1.1em;
    margin: 10px 0;
    font-weight: bold;
}

/* Texto */
.tarjeta-body p {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Barra de estado */
.barra {
    height: 5px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #00FFFF, #1885D4);
    transition: background 0.3s ease;
}

/* Cuando la tarjeta está en hover, la barra se vuelve de un solo color */
.tarjeta:hover .barra {
    background: #00FFFF;
}


/* Diseño responsivo */
@media (max-width: 900px) {
    .tarjetas-container {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .tarjetas-container {
        grid-template-columns: repeat(1, minmax(250px, 1fr));
    }
}


.beneficios {
    background-color: #0b2c50;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    margin: 40px auto;
    margin-top: 0;
    max-width: 900px;
}

.beneficios h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.beneficios ul {
    list-style: none;
    padding: 0;
}

.beneficios li {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}




/* 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;
    max-height: 100%;
    overflow: hidden;
}
.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;
	overflow:hidden;
}
/* 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%;
    }
}


/* Informaci�n 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 m�s) */
@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 m�s compacto */
    }
    .footer-info {
        font-size: 16px; /* Texto m�s 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 */
