/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* BODY */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    color: #ffffff;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
}

/* LOGO */
.logo img {
    height: 80px;
    cursor: pointer;
}

/* NAV DESKTOP */
.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #00e0ff;
}

/* HAMBURGUESA */
.menu-toggle {
    display: none;
    width: 35px;
    height: 30px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2001; /* CLAVE */
}

.menu-toggle span {
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* CONVERSIÓN A X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* MAIN */
.main {
    flex: 1;
    padding: 60px 20px;
    text-align: center;
}

.bienvenida h1 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #fd0303;
}

.bienvenida p {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* FOOTER */
.footer {
    margin-top: auto;
    background: #020617;
    padding: 15px;
    text-align: center;
    font-size: 14px;
}

/* ============================= */
/* ===== RESPONSIVE MÓVIL ===== */
/* ============================= */
@media (max-width: 768px) {

    /* Mostrar hamburguesa */
    .menu-toggle {
        display: flex;
    }

    /* Ocultar menú desktop */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #020617;
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 2000;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav a {
        font-size: 18px;
    }
}


/* ================= CURSOS ================= */
.cursos {
    max-width: 1100px;
    margin: 0 auto;
}

.cursos h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 40px;
}

.curso {
    margin-bottom: 70px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.curso h2 {
    color: #00ff73;
    margin-bottom: 20px;
}

.curso p {
    max-width: 800px;
    margin: 20px auto;
}

.curso ul {
    max-width: 800px;
    margin: 0 auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #020617;
        padding-top: 100px;
        transition: right 0.4s ease;
        z-index: 2000;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .carousel-track img {
        height: 200px;
    }

    .collage {
        grid-template-columns: 1fr;
    }

    .collage img {
        height: 220px;
    }
}


.curso-info, .curso-includes, .curso-costos {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.curso-requisitos {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.curso-requisitos h3 {
    color: #00ff73;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.curso-requisitos ul {
    list-style: disc inside;
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: center;
}

.curso-info h3,
.curso-includes h3,
.curso-costos h3 {
    color: #00ff73;
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.curso-info p,
.curso-costos p {
    font-size: 1.1rem;
    text-align: center;
    margin: 5px 0;
}

.curso-includes ul,
.curso-costos ul {
    list-style: disc inside;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .curso-info, .curso-includes, .curso-costos {
        padding: 10px;
    }
    .curso-info h3,
    .curso-includes h3,
    .curso-costos h3 {
        font-size: 1.3rem;
    }
}

/* Aumentar tamaño de párrafos y listas dentro de cada curso */
.curso p {
    font-size: 1.2rem; /* antes estaba 1rem, ahora un poco más grande */
    line-height: 1.6;  /* mejora la lectura */
    text-align: center; /* opcional, si quieres que quede centrado */
}

.curso ul {
    font-size: 1.15rem; /* ligeramente más grande que antes */
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px auto; /* centrado con margen inferior */
}



/* boton informes*/

.curso-boton {
    text-align: center;
    margin: 25px 0;
}

.btn-informes {
    display: inline-block;
    padding: 14px 28px;
    background: #25D366;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 40px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-informes:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
}

/* 🔥 Mejora para móviles */
@media (max-width: 768px) {
    .btn-informes {
        width: 100%;
        max-width: 320px;
        font-size: 1.1rem;
        padding: 16px;
    }
}
