/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado */
.encabezado {
    background: #18048d;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.encabezado .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 50px;
    width: 50px;
}

.barra-navegacion ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.navegacion a:hover {
    color: #ffffffb9;
}

.navegacion a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.navegacion a:hover::after {
    width: 100%;
}


.boton-aula:hover {
    background: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.boton-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Carrusel Hero */
.hero {
    margin-top: 70px;
    position: relative;
    height: 80vh;
    max-height: 800px;
    overflow: hidden;
}

.carrusel {
    position: relative;
    width: 100%;
    height: 100%;
}

.contenedor-carrusel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.item-carrusel {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.item-carrusel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.texto-carrusel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    padding: 0 20px;
}

.texto-carrusel h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: aparecerDesdeArriba 1s ease;
}

.texto-carrusel p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: aparecerDesdeArriba 1s ease 0.3s forwards;
    opacity: 0;
}

.control-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-carrusel:hover {
    background: rgba(0, 0, 0, 0.7);
}

.anterior {
    left: 20px;
}

.siguiente {
    right: 20px;
}

.indicadores-carrusel {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicador.activo {
    background: white;
    transform: scale(1.2);
}

.boton-cta {
    display: inline-block;
    background: rgba(22, 9, 207, 0.452);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 1rem;
    transition: all 0.3s;
    border: 2px solid rgb(255, 255, 255);
    font-weight: 600;
    backdrop-filter: blur(5px);
    animation: aparecerDesdeArriba 1s ease 0.6s forwards;
    opacity: 0;
}

.boton-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sección Quiénes Somos */
.seccion-quienes-somos {
    padding: 5rem 0;
    background: #f8f9fa;
    position: relative;
}

.seccion-quienes-somos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/patron-puntos.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

.seccion-quienes-somos h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    font-size: 2.5rem;
    z-index: 1;
}

.seccion-quienes-somos h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
}

.contenido-quienes-somos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.texto-quienes-somos {
    padding-right: 2rem;
}

.texto-quienes-somos p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.lista-metodologia {
    list-style: none;
    margin-top: 2rem;
}

.lista-metodologia li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #2c3e50;
    font-weight: 500;
}

.lista-metodologia i {
    color: #4CAF50;
    font-size: 1.2rem;
}

.imagen-quienes-somos {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.imagen-quienes-somos:hover {
    transform: translateY(-10px);
}

.imagen-quienes-somos img {
    width: 100%;
    height: auto;
    display: block;
}

/* Beneficios */
.beneficios {
    padding: 5rem 0;
    text-align: center;
    background: white;
}

.beneficios h2 {
    margin-bottom: 3rem;
    color: #2c3e50;
    font-size: 2.5rem;
    position: relative;
}

.beneficios h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #254e26;
    border-radius: 2px;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tarjeta-beneficio {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.tarjeta-beneficio:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tarjeta-beneficio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta-beneficio h3 {
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #2c3e50;
}

.tarjeta-beneficio p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Cómo funciona */
.como-funciona {
    padding: 5rem 0;
    background: linear-gradient(135deg, #18048d 0%, #0c025a 100%);
 
    color: white;
    text-align: center;
}

.como-funciona h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.como-funciona h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
}

.contenedor-pasos {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.tarjeta-paso {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
   
    transition: all 0.3s;
}

.tarjeta-paso:hover {
    
    background: rgba(255, 255, 255, 0.15);
}

.icono-paso {
    position: relative;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.numero-paso {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    color: #18048d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.tarjeta-paso h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tarjeta-paso p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contenedor-boton {
    margin-top: 3rem;
    text-align: center;
}

.boton-principal {
    display: inline-block;
    background: white;
    color: #18048d;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.boton-principal:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Modal de Registro */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.contenido-modal {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: aparecerModal 0.4s ease;
    position: relative;
}

.cerrar-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar-modal:hover {
    color: #333;
}

.contenido-modal h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.pasos-registro {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 3rem;
    gap: 1.5rem;
}

.paso-registro {
    text-align: center;
    flex: 1;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.paso-registro:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.numero-paso-modal {
    width: 50px;
    height: 50px;
    background: #3700ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.paso-registro h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.paso-registro p {
    color: #666;
    font-size: 0.9rem;
}

.formulario-registro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grupo-formulario {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grupo-formulario label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.grupo-formulario input {
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.grupo-formulario input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

.texto-login {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.texto-login a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.texto-login a:hover {
    text-decoration: underline;
}

/* Sección de Cursos */
.seccion-cursos {
    padding: 5rem 0;
    background: #f8f9fa;
}

.seccion-cursos h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.subtitulo-seccion {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.grid-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.tarjeta-curso {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.tarjeta-curso:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.imagen-curso {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.imagen-curso img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tarjeta-curso:hover .imagen-curso img {
    transform: scale(1.05);
}

.categoria-curso {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.contenido-curso {
    padding: 1.5rem;
}

.contenido-curso h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.contenido-curso p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.meta-curso {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-curso span {
    display: flex;
    align-items: center;
    gap: 5px;

}

.boton-secundario {
    display: inline-block;
    background: #18048d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.boton-secundario:hover {
    background: #0c025a;
    box-shadow: 0 5px 15px rgba(24, 4, 141, 0.3);
}



/* Pie de página */
.pie-pagina {
    background: #0b0047;
    color: white;
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

.grid-pie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.columna-pie {
    margin-bottom: 1.5rem;
}

.logo-pie {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.descripcion-pie {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.columna-pie h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.columna-pie h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #4CAF50;
}

.enlaces-pie {
    list-style: none;
    padding: 0;
}

.enlaces-pie li {
    margin-bottom: 0.8rem;
}

.enlaces-pie a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.enlaces-pie a:hover {
    color: white;
    padding-left: 5px;
}

.contacto-pie li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contacto-pie i {
    width: 20px;
    color: #4CAF50;
}

.iconos-sociales {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.iconos-sociales a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.iconos-sociales a:hover {
    background: #4CAF50;
    transform: translateY(-3px);
}

.base-pie {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.creditos-pie {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes aparecerDesdeArriba {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecerModal {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contenido-quienes-somos {
        grid-template-columns: 1fr;
    }
    
    .imagen-quienes-somos {
        order: -1;
        max-width: 600px;
        margin: 0 auto 2rem;
    }
    
    .tarjetas-motivacion {
        flex-wrap: wrap;
    }
    
    .tarjeta-motivacion {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .navegacion {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #18048d;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .navegacion.activo {
        display: block;
        animation: aparecerDesdeArriba 0.3s ease-in-out;
    }
    
    .navegacion ul {
        flex-direction: column;
        gap: 0;
    }
    
    .navegacion li {
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navegacion a::after {
        display: none;
    }
    
    .boton-menu {
        display: block;
        z-index: 1000;
    }
    
    .boton-aula {
        display: none;
    }
    
    .hero {
        height: 70vh;
    }
    
    .texto-carrusel h1 {
        font-size: 2rem;
    }
    
    .texto-carrusel p {
        font-size: 1rem;
    }
    
    .contenedor-pasos {
        flex-direction: column;
    }
    
    .pasos-registro {
        flex-direction: column;
    }
    
    .grid-cursos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }
    
    .texto-carrusel h1 {
        font-size: 1.8rem;
    }
    
    .boton-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .seccion-quienes-somos h2,
    .beneficios h2,
    .como-funciona h2,
    .seccion-cursos h2 {
        font-size: 2rem;
    }
    
    .tarjeta-motivacion {
        width: 100%;
    }
    
    .boton-principal {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
/* Estilos para el botón de menú hamburguesa */
.boton-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.linea-menu {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Estilos cuando el menú está activo */
.boton-menu.activo .linea-menu:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.boton-menu.activo .linea-menu:nth-child(2) {
    opacity: 0;
}

.boton-menu.activo .linea-menu:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .boton-menu {
        display: block;
    }
    
    .barra-navegacion {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #18048d;
        transition: all 0.5s ease;
        padding: 1rem 0;
    }
    
    .barra-navegacion.activo {
        left: 0;
    }
    
    .barra-navegacion ul {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos para el botón de menú hamburguesa */
.boton-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.linea-menu {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Estilos cuando el menú está activo */
.boton-menu.activo .linea-menu:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.boton-menu.activo .linea-menu:nth-child(2) {
    opacity: 0;
}

.boton-menu.activo .linea-menu:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .boton-menu {
        display: block;
    }
    
    .barra-navegacion {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #18048d;
        transition: all 0.5s ease;
        padding: 2rem 0;
        overflow-y: auto;
    }
    
    .barra-navegacion.activo {
        left: 0;
    }
    
    .barra-navegacion ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .barra-navegacion li {
        width: 100%;
        text-align: center;
    }
    
    .barra-navegacion a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }
}