* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-identa-gray);
    color: #6d6d6d;
}

/* ================= HERO ================= */
.hero-cursos {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--azul-oscuro);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-ondas-izq {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
    opacity: 0;
    animation: heroOndasLeftIn 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-ondas-der {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    opacity: 0;
    animation: heroArrowsRightIn 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s forwards;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-left: 15%;
    color: var(--blanco);
    opacity: 0;
    animation: heroTextRightIn 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.35s forwards;
}

.hero-content h1 {
    font-family: var(--font-identa-semiblack);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.onda-hero {
    width: 90px;
    margin-left: 5px;
    filter: invert(72%) sepia(18%) saturate(996%) hue-rotate(174deg) brightness(89%) contrast(90%);
}

@keyframes heroOndasLeftIn {
    from {
        opacity: 0;
        transform: translateX(-180px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroArrowsRightIn {
    from {
        opacity: 0;
        transform: translateX(180px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroTextRightIn {
    from {
        opacity: 0;
        transform: translateX(70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= INTRODUCCIÓN ================= */
.intro-cursos {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: var(--blanco);
}

.titulo-compromiso {
    color: var(--azul-oscuro);
    font-size: 1.6rem;
    line-height: 1.5;
}

.titulo-compromiso .texto-bold {
    font-family: var(--font-identa-black);
}

.titulo-compromiso .texto-italic {
    font-family: var(--font-alt-bolditalic);
}

.onda-inline {
    display: inline-block;
    width: 50px;
    vertical-align: middle;
    margin-left: 8px;
    transform: translateY(-5px); 
    filter: invert(72%) sepia(18%) saturate(996%) hue-rotate(174deg) brightness(89%) contrast(90%);
}

/* ================= GRID CURSOS ================= */
.seccion-grid-cursos {
    position: relative;
    background-color: var(--blanco);
    padding: 30px 10% 80px;
    overflow: hidden;
}

.ondas-fondo-cursos {
    position: absolute;
    bottom: 0;
    left: -5%; 
    height: 80%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.grid-cursos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.tarjeta-curso {
    display: block;
    border: 2px solid var(--celeste-pastel);
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--blanco);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tarjeta-curso img {
    width: 100%;
    height: auto;
    display: block;
}

.tarjeta-curso:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ================= BREAKPOINTS (RESPONSIVE) ================= */

@media (max-width: 1200px) {
    .hero-cursos {
        height: 420px;
    }

    .hero-content {
        padding-left: 10%;
    }

    .grid-cursos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-cursos {
        height: 380px;
    }

    .hero-ondas-izq {
        left: -18%;
        opacity: 0.6;
    }

    .hero-ondas-der {
        right: -24%;
        opacity: 0.6;
    }

    .grid-cursos-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .hero-cursos {
        height: 330px;
    }

    .hero-bg {
        object-position: center;
    }

    .grid-cursos-container {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .hero-content {
        padding-left: 8%;
        max-width: 82%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-ondas-izq {
        left: -50%;
    }

    .hero-ondas-der {
        right: -62%;
    }

    .titulo-compromiso {
        font-size: 1.3rem;
    }

    .seccion-grid-cursos {
        padding: 24px 20px 70px;
    }
}

@media (max-width: 700px) {
    .hero-ondas-izq,
    .hero-ondas-der,
    .ondas-fondo-cursos {
        display: none;
    }

    .hero-content {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .tarjeta-curso {
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .hero-cursos {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .grid-cursos-container {
        max-width: 100%;
    }
}
