:root {
    --primary-blue: #0118D8;
    /* Azul oscuro - Usar para headers, botones principales */
    --secondary-blue: #1B56FD;
    /* Azul claro - Usar para hover, íconos, enlaces activos */
    --accent-beige: #E9DFC3;
    /* Beige claro - Fondo general, secciones intermedias */
    --background-light: #FFF8F8;
    /* Blanco cálido - Tarjetas, inputs, fondos suaves */
    --text-dark: #0118D8;
    /* Azul oscuro también puede ser usado para textos importantes */
    --text-light: #FFFFFF;
    /* Blanco - Para textos sobre fondos oscuros */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--accent-beige);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/*----------------HEADER--LINEA 25 HASTA 151--------------------------------*/
.header {
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Para mejor comportamiento responsive */
    padding: 10px 30px;

    margin: 0 auto;
    /* Centra el header */
}

.header-logo img {
    max-width: 90px;

}

/**********MENU HAMBURGUESA*******************/
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}
.hamburger::before {
  content: "\2630";
}

.hamburger.show::before {
  content: "\00D7";
}

.header-menu {
    flex: 1;
    margin-left: 30px;
    
}

.header-menu.show{
    display: flex;
}

.header-menu-nav-ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 40px;
}

.header-menu-nav-ul li {
    background-color: var(--accent-beige);
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.header-menu-nav-ul li a {
    text-decoration: none;
    color: var(--text-dark);

}

.header-menu-nav-ul li:hover {
    background-color: var(--text-light);
    transform: scale(1.05);

}

/********************** Dropdown MENU CURSOS*************************/
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-blueS);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
    z-index: 100;
}

.dropdown-menu li {
    padding: 10px 20px;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: var(--text-dark);
    color: white !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


.header-iniciar-button a {
    text-decoration: none;
    background-color: var(--accent-beige);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-right: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header-iniciar-button a:hover {
    transform: scale(1.05);
    background-color: var(--background-light);
    color: var(--text-dark);
}



/*-----------------section  HERO -------------*/
.section-hero {
    background-color: var(--secondary-blue);
    color: var(--text-dark);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
}

.section-hero-bandera {
    grid-column: 1;
    /* Columna izquierda */
    grid-row: 1 / 5;
    /* Ocupa todas las filas */
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-hero-bandera img {
    max-width: 100%;
    /* Ajusta el tamaño de la bandera */
    height: auto;
}

.section-hero-parrafo-text {
    background-color: var(--text-light);
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 5px;
    /* Bordes suaves */
}

.section-hero-video {
    grid-column: 2;
    /* Columna derecha */
    grid-row: 2;
    /* Fila central */

}

.section-hero-video iframe {
    width: 100%;
    /* Haz el video más grande */
    height: 400px;
    /* Ajusta el tamaño del video */
}

.section-hero-info {
    display: grid;
    grid-column: 2;
    /* Columna derecha */
    grid-row: 3;
    /* Fila inferior */
}

.section-hero-info {
    margin-top: 40px;
    margin-left: 300px;
    width: 300px;

}

.section-hero-info a {
    background-color: var(--accent-beige);
    color: var(--text-dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    cursor: pointer;
    justify-items: center;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-hero-info a:hover {
    font-size: 26px;
    background-color: var(--background-light);
    color: var(--text-dark);
    ;

}



/* --------------Section nosotros--------------------------*/
.section-nosotros {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    /* Bordes suaves */
    margin-top: 20px;
}

.section-nosotros-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    /* Color del título */
}

.section-nosotros-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background-color: rgb(229, 224, 224);
    padding: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra ligera */
    text-align: center;
}



.card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-dark);
}


/*--------------------------Section-fundador-------------------------------*/
/*----------------Fondo--------------------*/
.section-fundador {
    background-color: var(--secondary-blue);
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    /* Bordes suaves */
    margin-top: 20px;
}

/*------------------contenedor de las cards-------------------------------*/
.section-fundador {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.section-fundador-card {
    background-color: rgb(229, 224, 224);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-fundador-info {
    text-align: center;
    margin-bottom: 20px;
}

.section-fundador-info h3,
.section-fundador-info h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-fundador-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Texto */
.section-fundador-descripcion {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    /* ← Asegura que los <p> se apilen verticalmente */
    align-items: flex-start;
    margin-top: 2.5rem;
}

.section-fundador-descripcion p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--primary-blue);
    margin: 0;
    margin-bottom: 1rem;

}

/* ------------------Video ---------------------*/
.section-fundador-video {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}



/**************************section cursos***********************/
/* Estilos del layout horizontal */
.cursos {
    padding: 40px 20px;
    background-color: var(--secondary-blue);
    margin-top: 20px;
    border-radius: 10px;
}

.cursos h2 {
    text-align: center;
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.curso {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--background-light);
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    gap: 10px;
}

.curso-info {
    flex: 1;
    padding: 30px;
    min-width: 300px;
}

.curso-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.curso-info p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-mas-info {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.btn-mas-info:hover {
    background-color: var(--secondary-blue);
}

.curso-media {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
    /* fallback si imagen no carga */
}

.curso-media img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-left: 2px solid var(--accent-beige);
    border-radius: 0 12px 12px 0;
}

/******************Section de contacto*************************/


/*Footer*/
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 30px 20px;
    margin-top: 20px;


}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contacto a {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;

    margin: 5px 0;
}

.footer-redes,
.footer-contacto,
.footer-copy {
    flex: 1 1 250px;
}

.footer-redes {
    display: block;
    gap: 16px;
}

.footer-redes-svg {
    display: flex;
    gap: 30px;
}

.footer-redes svg {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.footer-redes svg:hover {
    transform: scale(1.15);
}

.footer-copy {
    margin-top: 90px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.dev-credit a {
  color: var(--accent-beige);
  text-decoration: underline;
}
.dev-credit a:hover {
  background-color: var(--background-light);
  color: black;
}




@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .header-menu {
        width: 100%;
        display: none;
    }

    .dropdown {
        display: none;
    }

    .header-menu-nav-ul {
        flex-direction: column;
        gap: 10px;
        background-color: var(--primary-blue);
        padding: 20px 0;
        align-items: center;
    }

    .header-menu-nav-ul li {
        width: 100%;
        text-align: center;
    }

    .header-iniciar-button {
        display: none;
    }

    .header-facebook {
        margin-top: 10px;
    }

    /* 💡 Asegúrate que section-one esté en display: grid en móvil */
    .section-hero {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 20px;
        padding: 20px;
    }

    .section-hero-bandera {
        grid-row: 1;
        justify-content: center;
        display: flex;
    }

    .section-hero-parrafo-text {
        grid-row: 2;
        text-align: center;
    }

    .section-hero-video {
        grid-row: 3;
        margin-top: 0;

    }

    .section-hero-video iframe {
        width: 100%;
        /* Haz el video más grande */
        height: auto;
        /* Ajusta el tamaño del video */
    }

    .section-hero-info {
        grid-row: 4;
        margin: 20px 0 0 0;
        width: 100%;
        display: flex;
        justify-content: center;

    }

    .section-hero-info-buton {
        width: 80%;
        text-align: center;

    }

    .section-hero-info a {
        border-radius: 0%;
        padding: 5px;
        font-size: 20px;
    }

    /* Section two / nosotros */
    .section-nosotros-content {
        grid-template-columns: 1fr;
        /* Una sola tarjeta por fila */
        width: 100%;
    }

    .card {
        width: 75%;
        max-width: 400px;
        margin: 0 auto;
    }

    .section-nosotros-title {
        font-size: 1.5rem;
    }

    .section-fundador-content {
        flex-direction: column;
    }

    .section-fundador-descripcion,
    .section-fundador-video {
        width: 100%;
    }



    .curso-info {
        padding: 10px;
    }

    .curso-media img {
        border-radius: 0 0 12px 12px;
        border-left: none;
        border-top: 2px solid var(--accent-beige);
        width: 100%;
        height: auto;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;

    }

    .footer-redes {
        order: 1;
        margin-top: 50px;
    }

    .footer-contacto {
        order: 2;
    }

    .footer-copy {
        order: 3;
        margin-top: 20px;
    }

    .footer-redes-svg {
        justify-content: center;
    }

}