/* ==========================
   URUSAYHUA · Producción Agropecuaria (VERDE)
   - Palette & tokens
   - Hero
   - Malla (tarjetas) + slider arrows
   - Certificaciones (bg con overlay)
   - ¿Por qué estudiar…?
   - Banner
   - ¿Dónde puedo trabajar?
   ========================== */

/* ====== Paleta / tokens (Agropecuaria) ====== */
:root {
    --c-primary-900: #139231;
    /* verde profundo */
    --c-primary-700: #2e7d32;
    /* verde principal */
    --c-primary-500: #17732C;
    /* verde medio */

    --c-ink: #0b1220;
    --c-muted: #778199;
    --c-white: #ffffff;

    /* Extras para componentes */
    --bg: #f7f8fb;
    --mora: var(--c-primary-700);
    /* acento */
    --card: #ffffff;
    --card-bd: rgba(20, 20, 43, .06);
}

/* ================== HERO ================== */
.career-hero2 {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 96px) 0;
    color: var(--c-white);
}

.career-hero2__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 400px at -10% -20%, rgba(255, 255, 255, .12), transparent 60%),
        linear-gradient(135deg, var(--c-primary-900), var(--c-primary-700));
    z-index: 0;
}

.career-hero2::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -18%;
    width: 56vw;
    height: 56vw;
    min-width: 520px;
    min-height: 520px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent 70%);
    filter: blur(6px);
    transform: rotate(12deg);
    z-index: 0;
}

.career-hero2 .container {
    position: relative;
    z-index: 1;
}

.career-hero2__eyebrow {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .8rem;
    color: #e6ffe6;
    margin-bottom: .5rem;
}

.career-hero2__title {
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(32px, 4.8vw, 54px);
    margin: 0 0 .95rem;
}

.career-hero2__title .accent {
    color: #b2f2bb;
}

.career-hero2__desc {
    color: #e8f5e9;
    max-width: 52ch;
    margin: 0 0 1rem;
    font-size: clamp(.98rem, 1.35vw, 1.08rem);
}

.career-hero2__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.career-hero2__chips .chip {
    padding: .48rem .85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
}

.career-hero2__chips .chip--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #f0fff4;
}

.career-hero2__bullets {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: #f6fbff;
}

.career-hero2__bullets li {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    margin: .35rem 0;
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
}

.career-hero2__bullets i {
    color: #c8e6c9;
}

.career-hero2__cta {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, .65);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.career-hero2__image-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
}

.career-hero2__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 26px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, .35);
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .career-hero2__image-wrap {
        max-width: 520px;
    }
}

@media (max-width: 575.98px) {
    .career-hero2 {
        padding: 40px 0;
    }

    .career-hero2__title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .career-hero2__image {
        border-radius: 18px;
    }
}

/* ============ Malla Curricular (tarjetas) ============ */
.malla-wrapper .malla-box {
    padding: clamp(22px, 3.4vw, 36px);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(26, 29, 45, 0.08);
    border: 1px solid rgba(20, 20, 43, 0.06);
}

.malla-wrapper .malla-box h4,
.malla-wrapper .malla-box h5 {
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    margin-bottom: .75rem;
    color: var(--mora);
}

.malla-wrapper .malla-box .subtitle {
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
    font-weight: 700;
    color: var(--mora);
    margin-bottom: .6rem;
}

.malla-wrapper .malla-box ul {
    margin: .3rem 0 0 0;
    padding: 0;
    list-style: none;
}

.malla-wrapper .malla-box ul li {
    position: relative;
    padding-left: 28px;
    margin: .55rem 0;
    line-height: 1.55;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.malla-wrapper .malla-box ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mora);
    border-radius: 50%;
    font-size: .75rem;
    box-shadow: 0 4px 10px rgba(46, 125, 50, .35);
}

@media (min-width: 992px) {
    .malla-wrapper .row.gap-lg {
        gap: 34px;
    }
}

/* ============ Malla: Slider con flechas y dots ============ */
.malla-slider {
    position: relative;
    overflow: hidden;
}

.malla-track {
    display: flex;
    transition: transform .45s ease;
    will-change: transform;
}

.malla-slide {
    min-width: 100%;
    padding: 8px;
}

@media (min-width: 992px) {
    .malla-slide {
        min-width: 50%;
    }
}

.malla-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .12);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    transition: background .2s ease, transform .2s ease;
}

.malla-arrow:hover {
    background: #f5f5f8;
    transform: translateY(-50%) scale(1.05);
}

.malla-prev {
    left: 10px;
}

.malla-next {
    right: 24px;
}

.malla-arrow svg {
    width: 20px;
    height: 20px;
    fill: #4b4f5c;
}

.malla-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.malla-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfd3dc;
}

.malla-dots .dot.is-active {
    background: #9aa3b2;
}

/* ============ Certificaciones (bg con overlay) ============ */
.cert-wrapper {
    position: relative;
    background: url("../images/imagens_carrera/produccion_agropecuaria.jpg") no-repeat center/cover;
    padding: clamp(38px, 5vw, 66px) 0;
    color: #fff;
    z-index: 1;
}

.cert-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-primary-700);
    opacity: .70;
    z-index: 0;
}

.cert-wrapper .container {
    position: relative;
    z-index: 1;
}

/* CAMBIO: rejilla de tarjetas 1 → 2 → 3 columnas */
.cert-mod-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* móvil */
    gap: 24px;
}

@media (min-width: 992px) {
    .cert-mod-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* desktop: 2 */
}

@media (min-width: 1400px) {
    .cert-mod-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* xl+: 3 */
}

@media (max-width: 575.98px) {
    .cert-card {
        width: 100%;
    }
}

.cert-card {
    width: 100%;
    min-height: 194px;
    padding: 24px 28px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    border: 1px solid rgba(0, 0, 0, .06);
    display: grid;
    place-items: center;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .16);
}

.cert-card h5 {
    font-weight: 800;
    color: var(--c-primary-700);
    font-size: clamp(1.12rem, 1.9vw, 1.32rem);
    margin: 0 0 8px;
}

.cert-card p {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.cert-card .icon {
    font-size: 30px;
    color: var(--c-primary-700);
    margin-bottom: 6px;
}

/* ============ ¿Por qué estudiar…? ============ */
.why-wrapper {
    padding: clamp(34px, 5vw, 64px) 0;
}

.why-wrapper .why-box {
    width: clamp(300px, 36vw, 460px);
    min-height: 172px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 56px rgba(0, 0, 0, .10);
    border: 1px solid rgba(0, 0, 0, .06);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-title .kicker {
    font-size: clamp(1.15rem, 2.3vw, 1.45rem);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title .heading {
    font-size: clamp(2.1rem, 4.8vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--c-primary-900);
}

/* ============ Banner (verde) ============ */
.banner-future {
    min-height: clamp(260px, 36vh, 400px);
    padding: 36px 0;
    display: grid;
    place-items: center;
}

.banner-future .title {
    font-size: clamp(1.9rem, 4.6vw, 3rem);
    font-weight: 700;
}

.bg-admin {
    background: linear-gradient(var(--c-primary-500), var(--c-primary-700)) !important;
    color: #fff !important;
}

section.banner-future.bg-admin {
    position: relative;
    background-image: linear-gradient(var(--c-primary-500), var(--c-primary-700)) !important;
    background-color: var(--c-primary-500) !important;
    color: #fff !important;
}

section.banner-future.bg-admin .title {
    color: #fff !important;
}

/* ============ ¿Dónde puedo trabajar? ============ */
.jobs-wrapper {
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0;
    background:
        radial-gradient(1200px 400px at -10% -20%, rgba(27, 94, 32, .08), transparent 60%),
        linear-gradient(180deg, #ffffff, #ffffff);
    overflow: hidden;
}

.jobs-wrapper::before {
    content: "";
    position: absolute;
    inset: auto -12% -18% auto;
    width: 60vw;
    height: 60vw;
    min-width: 520px;
    min-height: 520px;
    background: radial-gradient(closest-side, rgba(46, 125, 50, .12), transparent 70%);
    transform: rotate(10deg);
    pointer-events: none;
}

.jobs-title {
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--c-primary-700);
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    margin: 0 0 .6rem;
}

.jobs-lead {
    color: #4a5368;
    font-size: clamp(1rem, 1.6vw, 1.08rem);
    margin: 0 0 1rem;
    max-width: 60ch;
}

.jobs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem .6rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.jobs-chips li {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    color: #2d3345;
    border: 1px solid rgba(20, 20, 43, .08);
    box-shadow: 0 8px 22px rgba(20, 20, 43, .08);
    padding: .6rem .9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
}

.jobs-chips i {
    color: var(--c-primary-700);
}

.jobs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.badge-pill {
    background: linear-gradient(135deg, var(--c-primary-900), var(--c-primary-700));
    color: #fff;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .2px;
    box-shadow: 0 10px 24px rgba(46, 125, 50, .22);
}

/* Foto flotante */
.jobs-photo {
    display: inline-block;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(20, 20, 43, .18);
}

.jobs-photo img {
    display: block;
    max-width: 420px;
    border-radius: 18px;
}

@media (max-width:991.98px) {
    .jobs-photo img {
        max-width: 340px;
    }
}

@media (max-width:575.98px) {
    .jobs-chips li {
        font-size: .9rem;
    }

    .jobs-photo {
        padding: 10px;
        border-radius: 20px;
    }

    .jobs-photo img {
        border-radius: 14px;
        max-width: 250px;
    }
}

/* ===== Botones hero (todas las carreras) ===== */

.career-hero2__cta .btn {
    border-radius: 999px;
    /* bordes totalmente redondos */
    padding: 0.7rem 1.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

/* Botón principal: "Ver malla curricular" */
.career-hero2__cta .btn.btn-primary {
    background: linear-gradient(135deg,
            var(--c-primary-900),
            var(--c-primary-700));
    /* usa la paleta de cada carrera */
    border: none;
    color: #fff;
}

.career-hero2__cta .btn.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Botón secundario: "Postula ahora" */
.career-hero2__cta .btn.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* borde clarito */
    color: #fff;
}

.career-hero2__cta .btn.btn-outline-light:hover {
    background: #ffffff;
    color: var(--c-primary-700);
    /* texto con color de la carrera */
    border-color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.jobs-photo {
    display: inline-block;
    background: #fff;
    border-radius: 26px;
    box-shadow:
        0 0 0 15px var(--c-primary-700),
        /* verde grueso */
        0 30px 70px rgba(20, 20, 43, 0.18);
}