﻿/* ====== Curso Landing (usa _Layout: FullWidth, Body, FullWidthAfter, ExtraBody) ====== */

/* ---------- HERO full width ---------- */
.hero-cursos {
    background-image: url('/images/Cursos/hero-cursos-capacitacion-upskilling.jpg');
    background-size: cover;
    background-position: center 30%;
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    padding: 2rem 0;
}

    .hero-cursos .hero-mask {
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.08);
    }

    .hero-cursos .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: flex-end; /* texto a la derecha */
    }

    .hero-cursos .hero-textbox {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* alinea a la derecha */
        text-align: right;
        gap: .75rem;
        max-width: 820px;
        margin-bottom: 1.5rem;
        padding-right: 2rem; /* aire visual derecho */
    }

    .hero-cursos .hero-block {
        background: rgba(255,255,255,0.86);
        padding: .8rem 1.2rem;
        display: inline-block;
        box-shadow: 0 2px 6px rgba(0,0,0,.15);
        width: fit-content;
        max-width: 100%;
    }

    .hero-cursos .hero-block-title h1 {
        font-size: 2.2rem;
        font-weight: 900;
        margin: 0;
        color: var(--azul-principal);
    }

    .hero-cursos .hero-block-subtitle h2 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: var(--azul-principal);
        max-width: 610px; /* párrafo más angosto */
    }

    .hero-cursos .hero-block-desc {
        max-width: 510px; /* párrafo más angosto */
    }

        .hero-cursos .hero-block-desc p {
            margin: 0;
            color: var(--gris-oscuro);
            line-height: 1.5;
        }

    .hero-cursos .hero-cta {
        margin-top: .5rem;
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero-cursos {
        align-items: flex-end;
        padding: 1.5rem;
    }

        .hero-cursos .hero-content {
            justify-content: flex-start;
        }

        .hero-cursos .hero-textbox {
            align-items: flex-start;
            text-align: left;
            padding-right: 0;
            max-width: 100%;
        }

        .hero-cursos .hero-block-title h1 {
            font-size: 1.6rem;
        }

        .hero-cursos .hero-block-subtitle h2 {
            font-size: 1.1rem;
        }

        .hero-cursos .hero-block-desc {
            max-width: 100%;
        }

        .hero-cursos .hero-cta {
            justify-content: flex-start;
        }
}


/* ---------- Intro Cursos con logo ---------- */
.intro-cursos {
    padding: 4rem 0;
    background-color: #fff;
    color: var(--gris-oscuro);
    width: 100%;
}

    .intro-cursos .intro-layout {
        display: flex;
        align-items: center; /* centra verticalmente logo y texto */
        justify-content: center;
        gap: 4rem;
        max-width: 1400px; /* aprovecha más ancho */
        margin: 0 auto;
        padding: 0 2rem;
    }

    .intro-cursos .intro-logo {
        flex: 0 0 300px; /* ancho fijo para mantener proporción */
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .intro-cursos .intro-logo img {
            max-width:250px;
            object-fit: contain;
        }

    .intro-cursos .intro-content {
        flex: 1;
        max-width: 820px;
    }

    .intro-cursos .intro-headline {
        font-size: 2rem;
        font-weight: 900;
        color: var(--azul-principal);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .intro-cursos .intro-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }

        .intro-cursos .intro-text p {
            margin-bottom: 1.2rem;
        }

    .intro-cursos strong {
        color: var(--azul-principal);
        font-weight: 700;
    }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .intro-cursos .intro-layout {
        flex-direction: column;
        text-align: left;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }

    .intro-cursos .intro-logo {
        display: none;
    }

    .intro-cursos .intro-content {
        max-width: 100%;
    }

    .intro-cursos .intro-headline {
        font-size: 1.6rem;
    }

    .intro-cursos .intro-text {
        font-size: 1rem;
    }
}

/* ---------- PARALLAX SECCIÓN ---------- */
.parallax-learning {
    position: relative;
    width: 100%;
    height: 85vh;
    background-image: url('/images/Cursos/parallax-aprende-practicando.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* efecto parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



/* Contenido centrado */
.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 1rem 2rem !important;
}

    /* Texto */
    .parallax-content h2 {
        font-size: 2.4rem;
        font-weight: 900;
        line-height: 1.3;
        color: var(--azul-principal);
        display: inline-block;
        padding: 0.6rem 1rem;
        margin: 0;
    }

        .parallax-content h2 span {
            display: block;
            margin-top: 0.4rem;
            padding: 0.4rem 1rem;
        }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .parallax-learning {
        background-attachment: scroll; /* desactiva parallax en móviles */
        height: 45vh;
    }

    .parallax-content h2 {
        font-size: 1.6rem;
        padding: 0.5rem 0.8rem;
    }
}

/* ---------- Formación práctica ---------- */
.practice-learning {
    background-color: #fff;
    padding: 0;
    border-top: 2px solid var(--azul-principal);
    border-bottom: 2px solid var(--azul-principal);
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.practice-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
    padding-right:2rem;
}

.practice-image {
    flex: 0 0 300px; /* ancho fijo */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .practice-image img {
        max-width: 300px;
        height: auto;
        object-fit: contain;
        filter: brightness(1.05);
    }

.practice-content {
    flex: 1; /* el texto ocupa el resto */
}

    .practice-content h2 {
        font-size: 2rem;
        font-weight: 900;
        color: var(--azul-principal);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .practice-content p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
        color: var(--gris-oscuro);
    }

    .practice-content strong {
        color: var(--azul-principal);
        font-weight: 700;
    }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .practice-layout {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .practice-image {
        flex: none;
    }

        .practice-image img {
            max-width: 220px;
        }

    .practice-content h2 {
        font-size: 1.6rem;
    }

    .practice-content p {
        font-size: 1rem;
    }
}

/* ===============================
   SECCIÓN EMHA - CON IMAGEN
   =============================== */
.emha-section-full {
    background-color: #fff;
    border-bottom: 6px solid var(--azul-principal);
    padding: 1rem 0 0rem;
    color: var(--gris-oscuro);
}

/* ---------- ENCABEZADO ---------- */
.emha-header {
    display: grid;
    grid-template-columns: 520px 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1300px;
    margin: 0rem 5rem;
    padding: 0 3rem;
}

.emha-header-left {
    display: flex;
    justify-content: center;
}

.emha-logo {
    width: 550px;
    max-width: 100%;
    height: auto;
}

.emha-header-right {
    text-align: left;
}

.emha-subtitle {
    font-size: 1.6rem;
    color: var(--azul-principal);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.emha-intro {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ---------- DIAGRAMA COMO IMAGEN ---------- */
.emha-diagram-img {
    text-align: center;
    width: 100%;
    margin: 0 auto 2rem;
}

    .emha-diagram-img img {
        width: 100%;
        max-width: 80%;
        height: auto;
        display: block;
        margin: 0 auto;
        border: none;
    }

/* ---------- FOOTER TEXTO ---------- */
.emha-footer {
    background-color: #748aa3;
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.9;
    padding: 4rem 6rem;
}

    .emha-footer .intro-line {
        font-size: 1.25rem;
        font-weight: 500;
        margin-bottom: 3rem;
        color: #ffffff;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

/* ---------- TARJETAS DE ETAPAS ---------- */
.emha-steps-description {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    justify-content: center;
    margin: 0 auto 3rem;
    max-width: 1600px;
}

.step-block {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem 1.5rem;
    border-left: 4px solid #ffffff;
    border-radius: 0;
    text-align: left;
    transition: background 0.3s ease;
}

    .step-block:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .step-block h4 {
        color: #ffffff;
        font-weight: 800;
        margin-bottom: 0.6rem;
        border-bottom: 2px solid rgba(255, 255, 255, 0.25);
        display: inline-block;
        padding-bottom: 0.3rem;
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .step-block p {
        color: #f5f7fa;
        font-size: 1rem;
        line-height: 1.7;
    }

.emha-footer span {
    color: #cfe5ff;
    font-style: italic;
}

/* ---------- TEXTO FINAL ---------- */
.emha-footer .final-line {
    font-weight: 500;
    margin-top: 5rem;
    font-size: 1.6rem;
    color: #ffffff;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1300px) {
    .emha-steps-description {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .emha-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .emha-header-right {
        text-align: center;
    }

    .emha-logo {
        width: 380px;
        margin: 0 auto;
    }

    .emha-subtitle {
        font-size: 1.3rem;
    }

    .emha-intro {
        font-size: 1rem;
    }

    .emha-diagram-img {
        margin: 0 auto 3rem;
    }

    .emha-footer {
        padding: 3rem 2rem;
    }

    .emha-steps-description {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }

    .step-block {
        padding: 1.8rem 1.2rem;
    }

        .step-block h4 {
            font-size: 1.1rem;
        }

    .emha-footer .intro-line,
    .emha-footer .final-line {
        font-size: 1rem;
    }
}


/* ===============================
   CORTINILLA PARALLAX - OFERTA EDUCATIVA (PLECA AZUL, TEXTO BLANCO)
   =============================== */
.parallax-offer {
    position: relative;
    width: 100%;
    background-image: url('/images/oferta-educativa-the-upskilling-company.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--gris-oscuro);
    padding: 0 0 4rem;
    overflow: hidden;
}

/* ---------- CONTENIDO PRINCIPAL ---------- */
.parallax-content {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    margin: 4rem 60px 50px;
    padding: 0 3rem 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* ---------- PLECA AZUL COMPACTA ---------- */
.parallax-header {
    display: flex;
    justify-content: flex-end;
    margin-top: -1.8rem;
    margin-bottom: 2rem;
}

.parallax-title {
    background-color: var(--azul-principal) !important;
    color: #fff !important;
    font-size: 2.2rem;
    font-weight: 800;
    padding: 0.8rem 1.8rem;
    display: inline-block;
    margin: 0;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ---------- INTRO ---------- */
.offer-container {
    max-width: 100%;
    text-align: center;
}

.offer-intro {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto 2rem;
    color: #333;
}

/* ---------- COLUMNAS ---------- */
.offer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 2.5rem;
    position: relative;
}

    /* divisor vertical */
    .offer-columns::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background-color: #c9d6ec;
        transform: translateX(-50%);
    }

.offer-column {
    text-align: left;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ---------- TITULARES ---------- */
.offer-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--azul-principal);
    margin-bottom: 0.5rem;
}

.offer-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #444;
}

/* ---------- SUBTÍTULOS ---------- */
.offer-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--azul-principal);
    margin-bottom: 0.7rem;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid #d9e3f3;
    display: inline-block;
    width: 100%;
}

/* ---------- GRID DE TARJETAS ---------- */
.offer-grid {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    justify-content: center;
}

    .offer-grid.two-top {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

        .offer-grid.two-top .offer-card {
            min-height: 75px;
        }

/* ---------- TARJETAS ---------- */
.offer-card {
    background-color: #f3f6fc;
    border: 1px solid #dbe4f3;
    border-radius: 0;
    padding: 0.9rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    color: #1f1f1f;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .offer-card:hover {
        background-color: #e7eefc;
        border-color: var(--azul-principal);
        color: var(--azul-principal);
        transform: translateY(-2px);
    }

/* ---------- BOTONES ---------- */
.offer-btn {
    display: inline-block;
    background-color: var(--azul-principal);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.7rem 1.4rem;
    margin-top: auto;
    transition: all 0.3s ease;
    border: none;
    align-self: flex-start;
}

    .offer-btn:hover {
        background-color: #002b66;
    }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .offer-columns::after {
        display: none;
    }

    .parallax-offer {
        background-attachment: scroll;
        padding: 0 0 2rem;
    }

    .parallax-content {
        margin: 2rem 20px 20px;
        padding: 0 1.5rem 2rem;
    }

    .parallax-header {
        justify-content: center;
        margin-top: 0;
    }

    .parallax-title {
        font-size: 1.8rem;
        padding: 0.7rem 1.4rem;
    }

    .offer-columns {
        grid-template-columns: 1fr;
    }

    .offer-column {
        padding: 0;
    }

    .offer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


/* ---------- CTA FINAL (fondo blanco, un solo CTA) ---------- */
.closing-cta {
    background: #fff;
    color: var(--gris-oscuro);
    padding: 3.5rem 2rem;
    margin-top: 2.5rem;
    text-align: center;
    border-top: 4px solid var(--azul-principal);
}

.closing-cta__container {
    max-width: 950px;
    margin: 0 auto;
}

.closing-cta__copy {
    font-size: 1.25rem;
    line-height: 1.7;
    margin: 0 0 1.8rem 0;
    letter-spacing: 0.2px;
    color: #222;
}

.closing-cta__btn {
    display: inline-block;
    background: var(--azul-principal);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border: none;
    transition: all 0.25s ease;
}

    .closing-cta__btn:hover {
        background: #00397a;
        transform: translateY(-2px);
    }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .closing-cta {
        padding: 2.5rem 1.25rem;
    }

    .closing-cta__copy {
        font-size: 1.1rem;
    }
}


/* ==========================
   Botones CTA Final (Sobre fondo blanco)
   ========================== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Botón Principal (Azul Sólido) */
.closing-cta__btn {
    background-color: var(--azul-principal);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .closing-cta__btn:hover {
        background-color: #003a85;
        color: #fff;
    }

/* Botón WhatsApp (Outline Verde - Para fondo blanco) */
.btn-wa-outline {
    background-color: transparent;
    color: #25D366; /* Verde WA */
    border: 2px solid #25D366; /* Borde visible */
    font-weight: 600;
    padding: 0.9rem 2.2rem; /* Ajuste óptico por el borde */
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .btn-wa-outline:hover {
        background-color: #25D366; /* Relleno verde */
        color: #fff; /* Texto blanco */
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }

/* Ajuste móvil */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .closing-cta__btn,
    .btn-wa-outline {
        width: 100%;
        justify-content: center;
    }
}