:root {
    --color-principal: rgb(103, 38, 108);
    --color-secundario: rgb(81, 4, 136);
    --blanco: #ffffff;
    --gris-claro: #f4f4f9;
    --gradiente: linear-gradient(135deg, var(--color-principal), var(--color-secundario));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-claro);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-secundario);
}
.logo-img {
    height: 40px;        /* Ajusta la altura según necesites */
    width: auto;         /* Mantiene la proporción */
    object-fit: contain;
}

.logo span {
    color: var(--color-principal);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    transition: 0.3s;
}

.btn-nav {
    background: var(--gradiente);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
}

/* Carrusel Moderno */
.hero-container {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative;
    padding: 0;
}
.carousel {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    width: 300%; /* Como tienes 3 slides, debe ser 300% */
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0; /* Evita que las imágenes se encojan */
    position: relative;
}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    color: white;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.btn-main {
    background: var(--gradiente);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(81, 4, 136, 0.4);
}

/* --- Efecto Hide Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease-in-out; /* Transición suave */
}

.nav-hidden {
    transform: translateY(-100%); /* Lo saca de la pantalla hacia arriba */
}

section {
    padding: 80px 10%;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-secundario);
}

/* BENEFICIOS */
.benefits-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 280px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

/* CURSOS */
.courses-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.course-card {
    background: var(--gradiente);
    color: white;
    padding: 30px;
    border-radius: 10px;
    width: 280px;
}

/* METODOLOGÍA */
.methodology {
    background: var(--gradiente);
    color: white;
}

/* TESTIMONIOS */
.testimonial {
    margin: 20px auto;
    max-width: 500px;
    font-style: italic;
}

/* CTA */
.cta {
    background: #111;
    color: white;
}


/* --- Footer Moderno --- */
.footer-avante {
    background-color: #1a1a1a; /* Fondo oscuro para contraste */
    color: white;
    padding: 60px 10% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo-footer {
    color: var(--blanco);
    margin-bottom: 15px;
}

.logo-footer span {
    color: var(--color-principal);
}

.footer-section h3 {
    border-left: 4px solid var(--color-secundario);
    padding-left: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-principal);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

/* Estilos para Estadísticas */
.stats {
    background: var(--color-secundario);
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 10%;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* Estilos para Niveles */
.levels-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.level-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-bottom: 5px solid var(--color-principal);
    transition: 0.3s;
}

.level-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.level-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--color-principal);
    font-weight: bold;
}

/* Estilos para Testimonios */
.testimonial-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    font-style: italic;
    max-width: 450px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card h4 {
    margin-top: 20px;
    color: var(--color-secundario);
    font-style: normal;
}

/* CTA Banner */
.cta-banner {
    background: var(--gradiente);
    color: white;
    text-align: center;
    padding: 100px 10%;
}

.cta-banner h2 {
    color: white;
    font-size: 3rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 2000; /* Para que esté por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333; /* Fondo oscuro inicial */
    color: white;
    border-radius: 50%; /* Los hace circulares */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

/* Colores de marca al pasar el mouse */
.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon:hover .fa-facebook-f { color: #1877F2; }
.social-icon:hover .fa-tiktok { color: #ff0050; }
.social-icon:hover .fa-whatsapp { color: #25D366; }

/* Opcional: que el fondo también cambie levemente */
.social-icon:hover {
    background-color: #444;
}

/* --- RESPONSIVE MEDIA QUERY --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Escondemos los links por defecto en móvil */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Ajusta según el alto de tu navbar */
        left: 0;
        background-color: white;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Se muestra cuando hacemos clic */
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Estilo del botón hamburguesa */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--color-secundario);
        transition: all 0.3s ease-in-out;
    }

    /* Ajuste para el contenido del hero en móvil */
    .slide-content h1 {
        font-size: 2rem;
    }
}

/* Ocultar hamburguesa en pantallas grandes */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
