@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --verde-oscuro: #123c31;
    --verde: #237451;
    --verde-claro: #c8ef72;
    --fondo: #f4f8f1;
    --texto: #16382e;
    --gris: #718178;
    --borde: #dfe9df;
    --blanco: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family:
        'DM Sans',
        Arial,
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: var(--verde-oscuro);
    color: var(--blanco);
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 1180px;
    margin: auto;
    padding: 26px 30px;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family:
        'Plus Jakarta Sans',
        sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.maletin {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
}

.maletin svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu {
    display: flex;
    gap: 30px;
    color: #c2d7ca;
    font-size: 13px;
}

.menu a {
    transition: color .2s ease;
}

.menu a:hover {
    color: var(--verde-claro);
}


/* =========================================================
   HERO CONTENIDO
   ========================================================= */

.hero-contenido {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 60px auto 0;
    padding: 0 30px;
}

.etiqueta,
.kicker {
    color: var(--verde);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero .etiqueta {
    color: var(--verde-claro);
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0;
    font-family:
        'Plus Jakarta Sans',
        sans-serif;
    font-size:
        clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -4px;
}

.hero h1 em {
    color: var(--verde-claro);
    font-style: normal;
}

.hero p {
    max-width: 480px;
    color: #bed2c4;
    font-size: 15px;
    line-height: 1.7;
}

.boton-hero {
    display: inline-flex;
    gap: 14px;
    margin-top: 25px;
    padding: 13px 18px;
    align-items: center;
    border-radius: 8px;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    font-size: 13px;
    font-weight: 700;
    transition:
        transform .2s ease,
        background .2s ease;
}

.boton-hero:hover {
    background: #e0f99e;
    transform: translateY(-2px);
}


/* =========================================================
   DECORACIÓN HERO
   ========================================================= */

.circulo {
    position: absolute;
    border:
        1px solid
        rgba(200, 239, 114, .16);
    border-radius: 50%;
}

.circulo-1 {
    top: -180px;
    right: -90px;
    width: 460px;
    height: 460px;
}

.circulo-2 {
    top: -255px;
    right: -170px;
    width: 610px;
    height: 610px;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.contenido {
    max-width: 1180px;
    margin: auto;
    padding:
        66px 30px 95px;
}


/* =========================================================
   ENCABEZADO DE SECCIÓN
   ========================================================= */

.encabezado-seccion {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 27px;
}

.encabezado-seccion h2 {
    margin: 11px 0 0;
    font-family:
        'Plus Jakarta Sans',
        sans-serif;
    font-size: 37px;
    letter-spacing: -2px;
}

.encabezado-seccion p {
    max-width: 280px;
    margin: 0;
    color: var(--gris);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CONTADOR DE OPORTUNIDADES
   ========================================================= */

.contador-oportunidades {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    padding:
        16px 22px;
    border:
        1px solid
        rgba(35, 116, 81, .16);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #edf7e8 100%
        );
    box-shadow:
        0 8px 25px
        rgba(18, 60, 49, .06);
}

.contador-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    color: var(--verde);
    font-family:
        'Plus Jakarta Sans',
        sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: .95;
    letter-spacing: -3px;
}

.contador-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contador-principal {
    color: var(--verde-oscuro);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.contador-secundario {
    color: var(--gris);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.buscador {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.campo-busqueda {
    display: flex;
    flex: 1;
    align-items: center;
    border:
        1px solid
        var(--borde);
    border-radius: 10px;
    background: var(--blanco);
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.campo-busqueda:focus-within {
    border-color: #9fc7a7;
    box-shadow:
        0 0 0 3px
        rgba(35, 116, 81, .08);
}

.campo-busqueda span {
    padding-left: 16px;
    color: var(--verde);
    font-size: 24px;
    transform: rotate(-20deg);
}

.campo-busqueda input {
    width: 100%;
    padding: 15px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--texto);
    font: inherit;
    font-size: 13px;
}

.campo-busqueda input::placeholder {
    color: #9aa79f;
}

.buscador button {
    padding: 0 21px;
    border: 0;
    border-radius: 10px;
    background: var(--verde);
    color: var(--blanco);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}

.buscador button:hover {
    background: var(--verde-oscuro);
}


/* =========================================================
   GRID DE VACANTES
   ========================================================= */

.grid-vacantes {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 18px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.tarjeta {
    overflow: hidden;
    border:
        1px solid
        var(--borde);
    border-radius: 16px;
    background: var(--blanco);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.tarjeta:hover {
    border-color: #b9d7bd;
    box-shadow:
        0 18px 42px
        rgba(20, 70, 42, .11);
    transform: translateY(-5px);
}


/* =========================================================
   ENCABEZADO VISUAL DE LA TARJETA
   ========================================================= */

.encabezado-tarjeta {
    position: relative;
    height: 126px;
    overflow: hidden;
    color: var(--blanco);
}


/* =========================================================
   COLORES POR VACANTE
   ========================================================= */

.tarjeta-verde .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #123c31 0%,
            #237451 100%
        );
}

.tarjeta-azul .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #163b5c 0%,
            #26749b 100%
        );
}

.tarjeta-morado .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #3d315c 0%,
            #7456a2 100%
        );
}

.tarjeta-naranja .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #754127 0%,
            #c8753d 100%
        );
}

.tarjeta-turquesa .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #164e51 0%,
            #269394 100%
        );
}

.tarjeta-coral .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #663b42 0%,
            #a95f6d 100%
        );
}

.tarjeta-indigo .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #29365f 0%,
            #526db2 100%
        );
}

.tarjeta-esmeralda .encabezado-tarjeta {
    background:
        linear-gradient(
            135deg,
            #174f3b 0%,
            #32916a 100%
        );
}


/* =========================================================
   PATRÓN DECORATIVO
   ========================================================= */

.patron-tarjeta {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}


/* Círculos */

.patron-circulo {
    position: absolute;
    display: block;
    border:
        1px solid
        rgba(255, 255, 255, .17);
    border-radius: 50%;
}

.patron-circulo-1 {
    top: -76px;
    right: -28px;
    width: 185px;
    height: 185px;
}

.patron-circulo-2 {
    right: 36px;
    bottom: -78px;
    width: 125px;
    height: 125px;
    border-color:
        rgba(255, 255, 255, .11);
}


/* Líneas */

.patron-linea {
    position: absolute;
    display: block;
    width: 115px;
    height: 1px;
    background:
        rgba(255, 255, 255, .13);
    transform: rotate(-34deg);
}

.patron-linea-1 {
    top: 27px;
    right: 52px;
}

.patron-linea-2 {
    top: 48px;
    right: 14px;
    width: 75px;
    transform: rotate(42deg);
}


/* Puntos */

.patron-punto {
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, .28);
}

.patron-punto-1 {
    top: 28px;
    left: 28px;
}

.patron-punto-2 {
    top: 48px;
    left: 46px;
    width: 3px;
    height: 3px;
}


/* =========================================================
   ICONO DE VACANTE
   ========================================================= */

.icono-vacante {
    position: absolute;
    z-index: 2;
    left: 21px;
    bottom: 19px;
    display: flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border:
        1px solid
        rgba(255, 255, 255, .25);
    border-radius: 12px;
    background:
        rgba(255, 255, 255, .13);
    backdrop-filter: blur(5px);
}

.icono-vacante svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   ESTADO ACTIVA
   ========================================================= */

.activa {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    padding: 6px 9px;
    border-radius: 20px;
    background:
        rgba(255, 255, 255, .94);
    color: var(--verde);
    font-size: 10px;
    font-weight: 700;
    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, .08);
}

.activa i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #61b85d;
}


/* =========================================================
   ETIQUETA DE OPORTUNIDAD
   ========================================================= */

.etiqueta-oportunidad {
    position: absolute;
    z-index: 2;
    left: 77px;
    bottom: 24px;
    color:
        rgba(255, 255, 255, .78);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* =========================================================
   COMPATIBILIDAD CON ANTIGUA IMAGEN
   ========================================================= */

.imagen-tarjeta {
    display: none;
}

.imagen-tarjeta img {
    display: none;
}

.decoracion {
    display: none;
}


/* =========================================================
   CUERPO TARJETA
   ========================================================= */

.cuerpo-tarjeta {
    padding: 20px;
}

.fecha {
    display: block;
    color: #829188;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}


/* =========================================================
   TÍTULO DE LA VACANTE
   ========================================================= */

.cuerpo-tarjeta h3 {
    margin:
        11px 0 10px;
    color: var(--verde);
    font-family:
        'Plus Jakarta Sans',
        sans-serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.8px;
    text-align: center;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.cuerpo-tarjeta p {
    min-height: 45px;
    margin: 0;
    color: var(--gris);
    font-size: 13px;
    line-height: 1.65;
}

.descripcion-vacante {
    min-height: 0 !important;
    margin-bottom: 16px !important;
}

.texto-solo-imagen {
    min-height: 0 !important;
    margin-bottom: 16px !important;
    color: #65766c !important;
    text-align: center;
}


/* =========================================================
   DATOS DE LA VACANTE
   ========================================================= */

.datos-vacante {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top:
        1px solid
        #edf2ed;
}

.dato-vacante {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--verde);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.dato-vacante > span:last-child {
    min-width: 0;
    overflow: hidden;
    color: var(--verde);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dato-icono {
    display: flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border:
        1px solid
        rgba(35, 116, 81, .12);
    border-radius: 8px;
    background: #eef6eb;
    color: var(--verde);
}

.dato-icono svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   PIE TARJETA
   ========================================================= */

.pie-tarjeta {
    display: flex;
    margin-top: 18px;
    padding-top: 15px;
    align-items: center;
    justify-content: space-between;
    border-top:
        1px solid
        #edf2ed;
    color: var(--verde);
    font-size: 12px;
    font-weight: 700;
}

.pie-tarjeta b {
    font-size: 18px;
    transition:
        transform .2s ease;
}

.tarjeta:hover .pie-tarjeta b {
    transform:
        translateX(3px);
}


/* =========================================================
   CARD FINAL - TALENTO / ENVÍANOS TU CV
   ========================================================= */

.card-talento {
    position: relative;
    display: flex;
    min-height: 275px;
    margin-top: 55px;
    padding:
        48px 35px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(
            125deg,
            #123c31 0%,
            #1b5844 55%,
            #237451 100%
        );
    box-shadow:
        0 18px 45px
        rgba(18, 60, 49, .14);
}

.card-talento::before {
    content: '';
    position: absolute;
    width: 390px;
    height: 390px;
    right: -145px;
    top: -210px;
    border-radius: 50%;
    background:
        rgba(200, 239, 114, .12);
}

.card-talento::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    left: -145px;
    bottom: -150px;
    border-radius: 50%;
    background:
        rgba(200, 239, 114, .08);
}

.card-talento-decoracion {
    position: absolute;
    width: 170px;
    height: 170px;
    right: 8%;
    bottom: -105px;
    border:
        1px solid
        rgba(200, 239, 114, .16);
    border-radius: 50%;
}

.card-talento-contenido {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.card-talento-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--verde-claro);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.card-talento-contenido h2 {
    margin: 0;
    color: var(--blanco);
    font-family:
        'Plus Jakarta Sans',
        sans-serif;
    font-size:
        clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.card-talento-contenido p {
    margin:
        14px auto 25px;
    color:
        rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.6;
}

.card-talento-contenido p strong {
    color: var(--verde-claro);
    font-weight: 700;
}

.boton-cv {
    display: inline-flex;
    min-height: 48px;
    padding:
        0 22px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 9px;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    font-size: 13px;
    font-weight: 800;
    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, .12);
    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.boton-cv:hover {
    background: #e0f99e;
    transform:
        translateY(-2px);
    box-shadow:
        0 12px 25px
        rgba(0, 0, 0, .18);
}

.icono-correo {
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.icono-correo svg {
    width: 18px;
    height: 18px;
    stroke:
        currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   MENSAJES
   ========================================================= */

.mensaje {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 30px;
    border:
        1px dashed
        #b9d7bd;
    border-radius: 14px;
    background: var(--blanco);
    color: var(--gris);
}

.mensaje strong {
    color: var(--texto);
}

.mensaje.error {
    color: #a34646;
}

.mensaje.error strong {
    color: #8f3333;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    display: flex;
    justify-content: space-between;
    padding:
        25px max(
            30px,
            calc((100% - 1120px) / 2)
        );
    background: #e5f0e2;
    color: var(--verde);
    font-size: 13px;
}

.footer strong {
    font-weight: 700;
}

.footer span {
    color: var(--gris);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .grid-vacantes {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contador-oportunidades {
        min-width: 270px;
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 760px) {

    .navbar {
        padding: 20px;
    }

    .logo {
        font-size: 15px;
    }

    .menu {
        gap: 14px;
        font-size: 12px;
    }

    .menu a:last-child {
        display: none;
    }

    .hero {
        min-height: 540px;
    }

    .hero-contenido {
        margin-top: 64px;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -3px;
    }

    .hero p {
        font-size: 14px;
    }

    .contenido {
        padding:
            48px 20px 70px;
    }

    .encabezado-seccion {
        display: block;
    }

    .encabezado-seccion h2 {
        font-size: 31px;
    }


    /* Contador */

    .contador-oportunidades {
        width: 100%;
        min-width: 0;
        margin-top: 22px;
        padding:
            17px 19px;
    }

    .contador-numero {
        min-width: 58px;
        font-size: 46px;
    }

    .contador-principal {
        font-size: 13px;
    }

    .contador-secundario {
        font-size: 11px;
    }


    /* Buscador */

    .buscador {
        display: block;
    }

    .buscador button {
        width: 100%;
        height: 48px;
        margin-top: 9px;
    }


    /* Grid */

    .grid-vacantes {
        grid-template-columns: 1fr;
    }


    /* Encabezado de tarjeta */

    .encabezado-tarjeta {
        height: 122px;
    }

    .icono-vacante {
        left: 18px;
        bottom: 17px;
    }

    .etiqueta-oportunidad {
        left: 72px;
        bottom: 22px;
    }


    /* Cuerpo */

    .cuerpo-tarjeta {
        padding: 19px;
    }

    .cuerpo-tarjeta h3 {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 21px;
        line-height: 1.3;
    }


    /* Datos */

    .datos-vacante {
        gap: 8px;
        margin-top: 15px;
        padding-top: 13px;
    }

    .dato-vacante {
        font-size: 11px;
    }


    /* Card CV */

    .card-talento {
        min-height: 285px;
        margin-top: 45px;
        padding:
            42px 22px;
        border-radius: 18px;
    }

    .card-talento-contenido h2 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .card-talento-contenido p {
        font-size: 15px;
    }

    .boton-cv {
        width: auto;
        min-height: 47px;
    }


    /* Footer */

    .footer {
        display: block;
        padding:
            22px 20px;
    }

    .footer span {
        display: block;
        margin-top: 8px;
    }

}


/* =========================================================
   RESPONSIVE - MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 42px;
        letter-spacing: -2.5px;
    }

    .hero-contenido {
        margin-top: 52px;
    }

    .logo {
        gap: 8px;
    }

    .maletin {
        width: 32px;
        height: 32px;
    }

    .contador-oportunidades {
        gap: 11px;
    }

    .contador-numero {
        min-width: 52px;
        font-size: 42px;
        letter-spacing: -2px;
    }

    .contador-principal {
        font-size: 12px;
    }

    .contador-secundario {
        font-size: 10px;
    }


    /* Tarjeta */

    .encabezado-tarjeta {
        height: 116px;
    }

    .icono-vacante {
        width: 40px;
        height: 40px;
        left: 16px;
        bottom: 16px;
    }

    .icono-vacante svg {
        width: 22px;
        height: 22px;
    }

    .etiqueta-oportunidad {
        left: 67px;
        bottom: 21px;
        font-size: 8px;
    }

    .activa {
        top: 12px;
        right: 12px;
    }


    /* Título */

    .cuerpo-tarjeta h3 {
        font-size: 20px;
        line-height: 1.3;
    }


    /* Datos */

    .dato-vacante {
        font-size: 10.5px;
    }

    .dato-icono {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .dato-icono svg {
        width: 14px;
        height: 14px;
    }


    /* Card CV */

    .card-talento {
        padding:
            40px 18px;
    }

    .card-talento-contenido h2 {
        font-size: 26px;
    }

    .card-talento-contenido p {
        font-size: 14px;
    }

}
