/* —— Página «Únete a ICASA» — hero estático de portada + formulario —— */

.page-solicitud-empleo {
    --empleo-green: #006837;
    --empleo-green-bright: #00a751;
    --empleo-ink: #0f172a;
    --empleo-muted: #64748b;
    --empleo-surface: #f1f5f4;
    --empleo-hero-h: clamp(16rem, 42vw, 22rem);
}

@media (min-width: 992px) {
    .page-solicitud-empleo {
        --empleo-hero-h: clamp(18rem, 28vw, 26rem);
    }
}

.page-solicitud-empleo .empleo-hero-banner {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 16px 44px rgba(15, 23, 42, 0.1);
}

.page-solicitud-empleo .empleo-hero-banner .empleo-hero-slide {
    width: 100%;
    min-height: var(--empleo-hero-h);
}

@media (min-width: 769px) {
    .page-solicitud-empleo .empleo-hero-banner .empleo-hero-slide {
        min-height: 0;
    }
}

.page-solicitud-empleo .empleo-hero-banner .empleo-hero-slide__caption {
    padding: 1rem 1.15rem 1.15rem;
    padding-right: 1.15rem;
}

@media (min-width: 576px) {
    .page-solicitud-empleo .empleo-hero-banner .empleo-hero-slide__caption {
        padding: 1.15rem 1.35rem 1.35rem;
        max-width: 85%;
    }
}

.empleo-page {
    background: linear-gradient(180deg, #eef6f2 0%, var(--empleo-surface) 38%, #e8eef0 100%);
    font-family: "Inter", "Montserrat", system-ui, sans-serif;
    min-width: 0;
}

/* —— Hero: carrusel contenido (no pantalla completa) —— */
.empleo-hero {
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0 0.35rem;
}

.empleo-hero__container {
    position: relative;
    max-width: 1140px;
}

.empleo-hero-carousel {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 16px 44px rgba(15, 23, 42, 0.1);
}

.empleo-hero-carousel .carousel-inner {
    border-radius: inherit;
}

.empleo-hero-slide {
    position: relative;
    height: var(--empleo-hero-h);
    min-height: 10.5rem;
    background: var(--empleo-slide-bg, #0b2a22);
    overflow: hidden;
}

.empleo-hero-slide__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.empleo-hero-slide__media picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.empleo-hero-slide__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.empleo-hero-slide__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(6, 24, 18, 0.72) 0%,
        rgba(6, 24, 18, 0.35) 45%,
        rgba(6, 24, 18, 0.2) 100%
    );
    pointer-events: none;
}

.empleo-hero-slide--fallback.empleo-hero-slide--fb-1 {
    background: linear-gradient(135deg, #042f24 0%, #0a5c40 42%, #0d7a4d 100%);
}

.empleo-hero-slide--fallback.empleo-hero-slide--fb-2 {
    background: linear-gradient(135deg, #0a2340 0%, #124070 45%, #1a5490 100%);
}

.empleo-hero-slide--fallback.empleo-hero-slide--fb-3 {
    background: linear-gradient(135deg, #1a3d2e 0%, var(--empleo-green) 48%, #00a751 100%);
}

.empleo-hero-slide__scrim--fallback {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.empleo-hero-slide__caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem 2rem;
    padding-right: 3.25rem;
    text-align: left;
}

@media (min-width: 576px) {
    .empleo-hero-slide__caption {
        padding: 1rem 1.25rem 2.15rem;
        padding-right: 3.5rem;
        max-width: 85%;
    }
}

.empleo-hero-slide__eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(232, 255, 244, 0.92);
    margin: 0 0 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.empleo-hero-slide__title {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.2rem;
    text-wrap: balance;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.empleo-hero-slide__sub {
    font-size: clamp(0.78rem, 1.9vw, 0.875rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-wrap: balance;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empleo-hero-carousel .carousel-indicators.empleo-hero-carousel__indicators {
    bottom: 0.45rem;
    z-index: 4;
}

.empleo-hero-carousel__indicators [data-bs-target] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: transform 0.25s ease, background 0.25s ease;
}

.empleo-hero-carousel__indicators [data-bs-target].active {
    background: #fff;
    transform: scale(1.25);
}

.empleo-hero-carousel__control {
    width: 2.25rem;
    height: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    opacity: 0.88;
    z-index: 4;
}

.empleo-hero-carousel__control:hover,
.empleo-hero-carousel__control:focus {
    opacity: 1;
}

.empleo-hero-carousel .carousel-control-prev {
    left: 0.35rem;
}

.empleo-hero-carousel .carousel-control-next {
    right: 0.35rem;
}

.empleo-hero-carousel .carousel-control-prev-icon,
.empleo-hero-carousel .carousel-control-next-icon {
    width: 1.35rem;
    height: 1.35rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.empleo-hero__scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0.5rem auto 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--empleo-green);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.empleo-hero__scroll-btn:hover {
    background: #fff;
    transform: translateY(2px);
    box-shadow: 0 6px 18px rgba(0, 104, 55, 0.15);
}

.empleo-hero__scroll-btn:focus-visible {
    outline: 2px solid var(--empleo-green);
    outline-offset: 2px;
}

.empleo-hero__scroll-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

/* —— Bloque principal —— */
.empleo-main__container {
    max-width: 1100px;
}

.empleo-intro__kicker {
    color: var(--empleo-green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.empleo-intro__title {
    color: var(--empleo-ink);
    font-weight: 800;
    line-height: 1.18;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    text-wrap: balance;
}

.empleo-intro__lead {
    color: var(--empleo-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

.empleo-highlights__item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

.empleo-highlights__item:last-child {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.empleo-highlights__icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(0, 104, 55, 0.12), rgba(0, 167, 81, 0.08));
    color: var(--empleo-green);
    font-size: 1.1rem;
}

.empleo-form-shell {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 18px 48px rgba(15, 23, 42, 0.07);
}

.empleo-form-shell__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--empleo-ink);
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.empleo-form-shell__hint {
    font-size: 0.9rem;
    color: var(--empleo-muted);
    margin: 0;
}

.empleo-form-shell .form-label {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
}

.empleo-input {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.75rem;
    min-height: 2.85rem;
    box-shadow: none;
}

.empleo-input:focus {
    border-color: var(--empleo-green);
    box-shadow: 0 0 0 0.18rem rgba(0, 104, 55, 0.14);
}

.btn-empleo-submit {
    border: none;
    border-radius: 0.85rem;
    min-height: 3rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--empleo-green) 0%, #00522c 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-empleo-submit:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 8px 24px rgba(0, 104, 55, 0.28);
    transform: translateY(-1px);
}

.btn-empleo-submit:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .empleo-hero__scroll-btn,
    .btn-empleo-submit {
        transition: none;
    }

    .empleo-hero__scroll-btn:hover,
    .btn-empleo-submit:hover {
        transform: none;
    }
}

/* —— Móvil: altura unificada en icasa-hero-portada.css —— */

/* —— Desktop: portada ancha panorámica (igual que /destinos/) —— */
@media (min-width: 769px) {
    .page-contacto .empleo-hero__container.container,
    .page-solicitud-empleo .empleo-hero__container.container,
    .page-blog .empleo-hero__container.container {
        width: min(100%, calc(100vw - clamp(1rem, 3vw, 2.5rem)));
        max-width: 1680px;
        padding-left: clamp(0.5rem, 1.5vw, 0.75rem);
        padding-right: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .page-contacto .contacto-hero-banner,
    .page-solicitud-empleo .empleo-hero-banner,
    .page-blog .blog-hero-banner,
    .page-contacto .contacto-hero-banner.empleo-hero-carousel,
    .page-solicitud-empleo .empleo-hero-banner.empleo-hero-carousel,
    .page-blog .blog-hero-banner.empleo-hero-carousel {
        width: 100%;
    }

    .page-contacto .contacto-hero-banner .empleo-hero-slide,
    .page-solicitud-empleo .empleo-hero-banner .empleo-hero-slide,
    .page-blog .blog-hero-banner .empleo-hero-slide {
        display: block;
        width: 100%;
        height: auto;
        min-height: clamp(16rem, 28vw, 18rem);
        max-height: min(44vh, 30rem);
        aspect-ratio: 21 / 9;
        overflow: hidden;
        background: var(--empleo-slide-bg, #0b2a22);
    }

    .page-contacto .contacto-hero-banner .empleo-hero-slide--has-media,
    .page-solicitud-empleo .empleo-hero-banner .empleo-hero-slide--has-media,
    .page-blog .blog-hero-banner .empleo-hero-slide--has-media {
        min-height: 0;
    }
}

@media (min-width: 1400px) {
    .page-contacto .empleo-hero__container.container,
    .page-solicitud-empleo .empleo-hero__container.container,
    .page-blog .empleo-hero__container.container {
        max-width: min(1760px, calc(100vw - 3rem));
    }
}
