﻿/* ==========================
   Página de Servicio: Outplacement y Recolocación Laboral
   ========================== */

/* Hero full width */
.hero-outplacement {
    background-image: url('/images/Servicios/Para_Empresas/outplacement-recolocacion-laboral-banner.jpg');
    background-size: cover;
    background-position: center 40%;
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

    .hero-outplacement .hero-mask {
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.15);
    }

    .hero-outplacement .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .hero-outplacement .hero-textbox {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        max-width: 780px;
        margin-bottom: 1.5rem;
    }

    /* Bloques */
    .hero-outplacement .hero-block {
        background: rgba(255, 255, 255, 0.88);
        padding: 0.8rem 1.2rem;
        display: inline-block;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .hero-outplacement .hero-block-title h1 {
        font-size: 2.3rem;
        font-weight: 900;
        margin: 0;
        color: var(--azul-principal);
    }

    .hero-outplacement .hero-block-subtitle h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        color: var(--azul-principal);
    }

    .hero-outplacement .hero-block-desc p {
        font-size: 1rem;
        margin: 0;
        color: var(--gris-oscuro);
        line-height: 1.5;
    }

/* Responsive hero */
@media (max-width: 768px) {
    .hero-outplacement {
        padding: 1rem;
        align-items: flex-end;
    }

        .hero-outplacement .hero-textbox {
            max-width: 100%;
        }

        .hero-outplacement .hero-block-title h1 {
            font-size: 1.6rem;
        }

        .hero-outplacement .hero-block-subtitle h2 {
            font-size: 1.1rem;
        }
}

/* Intro */
.intro {
    text-align: center;
    padding: 3rem 1rem;
}

    .intro h2 {
        color: var(--azul-principal);
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

    .intro p {
        max-width: 950px;
        margin: 0 auto;
        font-size: 1.15rem;
        color: var(--gris-oscuro);
        line-height: 1.6;
    }

.highlight {
    color: var(--azul-principal);
    font-weight: 700;
}

/* ==========================
   STEPS (CORRECCIÓN IMAGEN Y BORDE)
   ========================== */
.steps {
    background-color: var(--blanco);
    padding: 0rem 2rem;
}

.steps-headline {
    display: inline-block;
    background-color: var(--azul-principal);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    padding: 0.6rem 1rem;
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 3rem;
    align-items: stretch; /* 1. Fuerza alturas iguales */
    position: relative;
}

/* Contenedor de la Imagen */
.steps-image {
    position: relative; /* 2. Contexto para el absolute */
    border-right: 4px solid var(--azul-principal); /* Borde visible */
    min-height: 450px; /* Seguridad visual mínima */
    /* Importante: No usar overflow hidden si queremos asegurar que el borde se vea, 
       pero object-fit se encarga del recorte */
}

    /* La Imagen en sí */
    .steps-image img {
        position: absolute; /* 3. Saca la imagen del flujo para no empujar el alto */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Ocupa exactamente el alto del contenedor (definido por el texto) */
        object-fit: cover; /* 4. Recorte inteligente */
        object-position: center top; /* Prioriza rostros */
        display: block;
    }

/* Timeline */
.steps-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    padding: 1rem 0;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--azul-principal);
    font-weight: 700;
}

.step p {
    margin: 0;
    color: var(--gris-oscuro);
    line-height: 1.6;
}

.step-number {
    color: var(--azul-principal);
    font-weight: 900;
    margin-right: 0.25rem;
}

/* Responsive Steps */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .steps-headline {
        text-align: center;
    }

    .steps-image {
        position: relative;
        height: 350px; /* Altura fija en móvil */
        width: 100%;
        order: 2;
        border-right: none;
        border-bottom: 4px solid var(--azul-principal);
        margin-bottom: 2rem;
    }

        /* En móvil la imagen vuelve a comportarse normal dentro del contenedor fijo */
        .steps-image img {
            position: relative;
            height: 100%;
        }

    .steps-timeline {
        order: 1;
        padding-left: 0;
    }
}

/* ==========================
   Benefits / Beneficios
   ========================== */
.benefits {
    background-color: var(--blanco);
    padding-bottom: 0;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem 2rem 2rem;
}

.benefits-headline {
    display: inline-block;
    background-color: var(--azul-principal);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1.8rem;
    align-self: flex-end;
    max-width: max-content;
}

.benefits-intro {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 2rem;
    align-items: center;
}

.benefits-text p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--gris-oscuro);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.benefits-text .highlight {
    color: var(--azul-principal);
    font-weight: 700;
}

.benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.benefits-subtitle {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--azul-principal);
    text-align: center;
    margin: 3rem 0 2rem 0;
}

.benefits-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.benefits-card {
    background: #fff;
    border: 1px solid var(--gris-claro);
    padding: 2rem 1.8rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    border-radius: 4px;
}

    .benefits-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    }

    .benefits-card h4 {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--azul-principal);
        margin-bottom: 1rem;
    }

    .benefits-card p {
        color: var(--gris-oscuro);
        line-height: 1.75;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

        .benefits-card p:last-child {
            margin-bottom: 0;
        }

@media (max-width: 992px) {
    .benefits-intro {
        grid-template-columns: 1fr;
    }

    .benefits-headline {
        align-self: center;
        text-align: center;
        margin: 0 auto 1.5rem auto;
    }

    .benefits-text p {
        font-size: 1.1rem;
    }

    .benefits-catalog {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .benefits-card {
        max-width: 100%;
        padding: 1.6rem;
    }

        .benefits-card h4 {
            font-size: 1.1rem;
        }
}


/* Valor agregado */
.value {
    background-color: var(--gris-claro);
    padding: 3rem 2rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
}

.value-item {
    position: relative;
    padding: 2rem 1.25rem 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .value-item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 60%;
        width: 1px;
        background: rgba(0, 0, 0, 0.18);
    }

    .value-item h3 {
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--azul-principal);
        margin-bottom: 0.6rem;
    }

    .value-item p {
        font-size: 0.95rem;
        color: var(--gris-oscuro);
        line-height: 1.6;
        margin: 0;
    }

@media (max-width: 992px) {
    .value-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        padding: 1.8rem 1rem;
    }

        .value-item:not(:last-child)::after {
            right: auto;
            left: 12%;
            width: 76%;
            height: 1px;
            top: auto;
            bottom: 0;
            transform: none;
        }
}


/* CTA */
.cta {
    background: url('/images/Servicios/Para_Empresas/outplacement-cta-banner.jpg') center/cover no-repeat;
    position: relative;
    text-align: center;
    padding: 5rem 2rem;
    color: #fff;
}

    .cta::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 77, 167, 0.7);
    }

    .cta .container {
        position: relative;
        z-index: 1;
        max-width: 800px;
        margin: 0 auto;
    }

    .cta h2 {
        margin-bottom: 1rem;
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
    }

    .cta p {
        margin-bottom: 2rem;
        font-size: 1.1rem;
        color: #fff;
    }

.btn-primary {
    display: inline-block;
    background-color: #fff;
    color: var(--azul-principal);
    font-weight: 600;
    padding: 1rem 2.2rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

    .btn-primary:hover {
        background-color: var(--gris-claro);
    }

@media (max-width: 768px) {
    .cta {
        padding: 3rem 1.5rem;
    }

        .cta h2 {
            font-size: 1.6rem;
        }

        .cta p {
            font-size: 1rem;
        }
}

/* ==========================
   Botones CTA (Dual Action)
   ========================== */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Botón WhatsApp Sólido */
.btn-wa-white {
    background-color: #ffffff;
    color: #25D366; /* Verde WhatsApp */
    font-weight: 600;
    padding: 1rem 2.2rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

    .btn-wa-white:hover {
        background-color: #25D366;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }

/* Ajuste Mobile */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-wa-white,
    .cta .btn-primary {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}
