/* =========================
   HERO NOSOTROS
========================= */

.nosotros-hero {
    padding: 115px 0 95px;
    background:
        linear-gradient(rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.65)),
        url('../img/nosotros.jpg') center/cover no-repeat;
    color: var(--hf-white);
}

.nosotros-hero h1 {
    max-width: 850px;
    font-family: "Montserrat", sans-serif;
    font-size: 50px;
    line-height: 1.15;
    margin: 20px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.nosotros-hero p {
    max-width: 650px;
    font-size: 18px;
    color: #E5E7EB;
    line-height: 1.7;
    text-shadow: 0 3px 14px rgba(0,0,0,0.35);
}


/* =========================
   INTRODUCCIÓN
========================= */

.nosotros-intro {
    padding: 90px 0;
    background: var(--hf-white);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.titulo-con-icono {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 15px;
}

.nosotros-texto h2,
.section-head h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    color: var(--hf-primary);
    margin-bottom: 15px;
}

.nosotros-texto p,
.section-head p {
    color: var(--hf-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}


/* =========================
   ICONOS
========================= */

.icon-box {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    background: var(--hf-white);
    border: 1px solid var(--hf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.icon-box i {
    color: var(--hf-accent-hover);
    font-size: 24px;
}

.icon-box.small {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.icon-box.small i {
    font-size: 19px;
}


/* =========================
   CARD INTRO
========================= */

.nosotros-card {
    background: var(--hf-light-blue);
    padding: 38px;
    border-radius: 24px;
    border: 1px solid var(--hf-border);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.nosotros-card .icon-box {
    margin-bottom: 18px;
}

.nosotros-card h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--hf-primary);
    margin-bottom: 18px;
}

.nosotros-card ul {
    list-style: none;
}

.nosotros-card li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    color: var(--hf-text);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nosotros-card li:last-child {
    border-bottom: none;
}

.nosotros-card li i {
    color: var(--hf-accent-hover);
    font-size: 13px;
}


/* =========================
   MISIÓN / VISIÓN
========================= */

.mision-vision {
    padding: 90px 0;
    background: var(--hf-bg);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mv-card {
    background: var(--hf-white);
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--hf-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: .25s ease;
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

.mv-card .icon-box {
    margin-bottom: 18px;
}

.mv-card span {
    display: inline-block;
    color: var(--hf-accent-hover);
    font-weight: 800;
    margin-bottom: 12px;
}

.mv-card h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--hf-primary);
    margin-bottom: 12px;
}

.mv-card p {
    color: var(--hf-muted);
    line-height: 1.75;
}


/* =========================
   LEER MÁS
========================= */

.contenido-expandido {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mv-card.active .contenido-expandido {
    max-height: 400px;
    margin-top: 15px;
}

.btn-leer-mas {
    margin-top: 18px;
    background: transparent;
    border: none;
    color: var(--hf-accent);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.btn-leer-mas:hover {
    color: var(--hf-accent-hover);
}


/* =========================
   VALORES
========================= */

.valores {
    padding: 90px 0;
    background: var(--hf-white);
}

.section-head {
    max-width: 680px;
    margin-bottom: 45px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.valor-card {
    background: var(--hf-bg);
    padding: 30px;
    border-radius: 22px;
    border: 1px solid var(--hf-border);
    transition: .25s ease;
}

.valor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.valor-card strong {
    color: var(--hf-accent-hover);
}

.valor-card h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--hf-primary);
    margin: 12px 0;
}

.valor-card p {
    color: var(--hf-muted);
    line-height: 1.7;
    font-size: 14px;
}


/* =========================
   NUESTRO TRABAJO
========================= */

.nuestro-trabajo {
    padding: 100px 0;
    background: var(--hf-white);
}

.procesos-encabezado {
    max-width: 760px;
    margin-bottom: 45px;
}

.procesos-encabezado h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 38px;
    line-height: 1.15;
    color: var(--hf-primary);
    margin: 16px 0;
}

.procesos-encabezado p {
    max-width: 660px;
    color: var(--hf-muted);
    line-height: 1.75;
}

.procesos-panel {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1.15fr;
    min-height: 480px;
    border: 1px solid var(--hf-border);
    border-radius: 24px;
    overflow: hidden;
    background: var(--hf-white);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}


/* MENÚ IZQUIERDO */

.procesos-menu {
    padding: 22px;
    background: #F8FAFC;
    border-right: 1px solid var(--hf-border);
}

.proceso-tab {
    width: 100%;
    padding: 17px 14px;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;

    display: grid;
    grid-template-columns: 30px 1fr 18px;
    align-items: center;
    gap: 10px;

    text-align: left;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.proceso-tab + .proceso-tab {
    margin-top: 8px;
}

.proceso-tab:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateX(3px);
}

.proceso-tab.active {
    background: var(--hf-white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
}

.proceso-indice {
    color: var(--hf-accent-hover);
    font-size: 11px;
    font-weight: 800;
}

.proceso-tab-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proceso-tab-texto strong {
    color: var(--hf-primary);
    font-size: 13px;
    line-height: 1.3;
}

.proceso-tab-texto small {
    color: var(--hf-muted);
    font-size: 10px;
    line-height: 1.3;
}

.proceso-tab > i {
    color: var(--hf-accent-hover);
    font-size: 11px;
    transition: transform 0.3s ease;
}

.proceso-tab.active > i {
    transform: translateX(3px);
}


/* IMAGEN CENTRAL */

.proceso-imagen-box {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #E2E8F0;
}

.proceso-imagen-box img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    object-fit: cover;
    transition:
        opacity 0.3s ease,
        transform 0.5s ease;
}

.proceso-imagen-box:hover img {
    transform: scale(1.04);
}

.proceso-imagen-box img.cambiando {
    opacity: 0;
}

.proceso-ampliar {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
}

.proceso-ampliar:hover {
    background: var(--hf-accent-hover);
}

.proceso-imagen-etiqueta {
    position: absolute;
    left: 18px;
    bottom: 18px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.76);
    color: white;

    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}


/* INFORMACIÓN DERECHA */

.proceso-informacion {
    padding: 38px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proceso-numero {
    display: block;
    color: var(--hf-accent-hover);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proceso-informacion h3 {
    font-family: "Montserrat", sans-serif;
    color: var(--hf-primary);
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 15px;
}

.proceso-informacion > p {
    color: var(--hf-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.proceso-informacion ul {
    list-style: none;
    margin: 0 0 23px;
    padding: 0;
}

.proceso-informacion li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--hf-text);
    font-size: 13px;
    margin-bottom: 10px;
}

.proceso-informacion li i {
    color: var(--hf-accent-hover);
    font-size: 11px;
}

.proceso-nota {
    padding: 14px;
    border: 1px solid var(--hf-border);
    border-radius: 12px;
    background: #F8FAFC;

    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.proceso-nota i {
    color: var(--hf-accent-hover);
    margin-top: 3px;
}

.proceso-nota p {
    color: var(--hf-muted);
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
}


/* =========================
   RESPONSIVE PROCESOS
========================= */

@media (max-width: 1000px) {

    .procesos-panel {
        grid-template-columns: 1fr 1.2fr;
    }

    .proceso-informacion {
        grid-column: 1 / -1;
        padding: 30px;
    }

    .procesos-menu {
        border-bottom: 1px solid var(--hf-border);
    }

}


@media (max-width: 768px) {

    .procesos-encabezado {
        margin-bottom: 22px;
    }

    .procesos-encabezado h2 {
        font-size: 25px;
        margin: 11px 0;
    }

    .procesos-encabezado p {
        font-size: 13px;
        line-height: 1.55;
    }

    .procesos-panel {
        grid-template-columns: 1fr;
        border-radius: 18px;
        min-height: auto;
    }

    .procesos-menu {
        padding: 11px;
        border-right: none;
        border-bottom: 1px solid var(--hf-border);

        display: flex;
        gap: 7px;
        overflow-x: auto;
    }

    .proceso-tab {
        min-width: 205px;
        padding: 12px;
        grid-template-columns: 25px 1fr 14px;
    }

    .proceso-tab + .proceso-tab {
        margin-top: 0;
    }

    .proceso-tab-texto strong {
        font-size: 11.5px;
    }

    .proceso-tab-texto small {
        font-size: 9px;
    }

    .proceso-imagen-box,
    .proceso-imagen-box img {
        min-height: 290px;
        height: 290px;
    }

    .proceso-informacion {
        padding: 24px 20px;
    }

    .proceso-informacion h3 {
        font-size: 22px;
    }

    .proceso-informacion > p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .proceso-informacion li {
        font-size: 12px;
    }

}


@media (max-width: 420px) {

    .proceso-imagen-box,
    .proceso-imagen-box img {
        min-height: 240px;
        height: 240px;
    }

    .proceso-ampliar {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .proceso-imagen-etiqueta {
        left: 12px;
        bottom: 12px;
    }

}


/* =========================
   CTA NOSOTROS
========================= */

.cta-nosotros {
    padding: 80px 0;
    background: var(--hf-bg);
}

.cta-nosotros-box {
    background: linear-gradient(135deg, var(--hf-primary), var(--hf-secondary));
    color: var(--hf-white);
    padding: 48px;
    border-radius: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

.cta-nosotros-box h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 32px;
    margin: 14px 0;
}

.cta-nosotros-box p {
    color: #CBD5E1;
    line-height: 1.7;
}

.etiqueta-dark {
    background: rgba(56, 189, 248, 0.12);
    color: var(--hf-accent);
}


/* =========================
   ANIMACIONES
========================= */

.reveal {
    opacity: 0;
    transform: translateY(70px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   MODAL IMAGEN
========================= */

.modal-img {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.modal-img.active {
    opacity: 1;
    visibility: visible;
}

.modal-img img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 18px;
}

.cerrar-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 45px;
    cursor: pointer;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {
    .nosotros-grid,
    .mv-grid,
    .valores-grid,
    .trabajo-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-hero h1 {
        font-size: 38px;
    }

    .titulo-con-icono {
        flex-direction: column;
    }

    .trabajo-card {
        min-height: 420px;
    }

    .cta-nosotros-box {
        flex-direction: column;
        text-align: center;
        padding: 36px 24px;
    }
}


/* =========================
   MÓVIL COMPACTO
========================= */

@media (max-width: 768px) {

    .nosotros-hero {
        padding: 72px 0 48px;
    }

    .nosotros-hero h1 {
        font-size: 26px;
        line-height: 1.2;
        margin: 12px 0;
    }

    .nosotros-hero p {
        font-size: 14px;
        line-height: 1.55;
    }

    .nosotros-intro,
    .mision-vision,
    .valores,
    .nuestro-trabajo,
    .cta-nosotros {
        padding: 38px 0;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .section-head h2,
    .nosotros-texto h2 {
        font-size: 23px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .section-head p,
    .nosotros-texto p {
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .titulo-con-icono {
        flex-direction: row;
        gap: 10px;
        margin-top: 10px;
    }

    .icon-box {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
    }

    .icon-box i {
        font-size: 16px;
    }

    .nosotros-card {
        padding: 16px;
        border-radius: 16px;
    }

    .nosotros-card .icon-box {
        margin-bottom: 10px;
    }

    .nosotros-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .nosotros-card li {
        padding: 7px 0;
        font-size: 13px;
    }

    .mv-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mv-card {
        display: grid;
        grid-template-columns: 38px 1fr;
        column-gap: 12px;
        padding: 14px;
        border-radius: 15px;
        align-items: flex-start;
    }

    .mv-card .icon-box {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
        margin-bottom: 0;
        grid-row: span 4;
    }

    .mv-card span {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .mv-card h3 {
        font-size: 15.5px;
        margin-bottom: 4px;
    }

    .mv-card p {
        font-size: 12.8px;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .btn-leer-mas {
        margin-top: 7px;
        font-size: 12.5px;
    }

    .mv-card.active .contenido-expandido {
        max-height: 250px;
        margin-top: 7px;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .valor-card {
        padding: 12px;
        border-radius: 14px;
    }

    .valor-card .icon-box.small {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .valor-card .icon-box.small i {
        font-size: 14px;
    }

    .valor-card strong {
        font-size: 10.5px;
    }

    .valor-card h3 {
        font-size: 13.5px;
        margin: 5px 0;
        line-height: 1.2;
    }

    .valor-card p {
        font-size: 11.5px;
        line-height: 1.35;
    }

    .trabajo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .trabajo-card {
        min-height: 125px;
        height: 125px;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
    }

    .trabajo-card img {
        height: 125px;
    }

    .overlay-trabajo {
        padding: 13px;
        justify-content: center;
        background: linear-gradient(
            to right,
            rgba(15,23,42,0.95),
            rgba(15,23,42,0.30)
        );
    }

    .overlay-trabajo span {
        font-size: 9.5px;
        letter-spacing: .5px;
        margin-bottom: 4px;
    }

    .overlay-trabajo h3 {
        font-size: 15.5px;
        margin-bottom: 4px;
        line-height: 1.15;
    }

    .overlay-trabajo p {
        font-size: 11.5px;
        line-height: 1.3;
        margin-bottom: 7px;
        max-width: 86%;
    }

    .btn-trabajo {
        padding: 6px 11px;
        font-size: 11px;
    }

    .cta-nosotros-box {
        padding: 20px 16px;
        border-radius: 18px;
        gap: 14px;
        text-align: left;
        align-items: flex-start;
    }

    .cta-nosotros-box h2 {
        font-size: 20px;
        line-height: 1.25;
        margin: 8px 0;
    }

    .cta-nosotros-box p {
        font-size: 13px;
        line-height: 1.45;
    }

    .cta-nosotros-box .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .modal-img img {
        max-width: 92%;
        max-height: 78vh;
        border-radius: 14px;
    }

    .cerrar-modal {
        top: 18px;
        right: 22px;
        font-size: 36px;
    }

    .valor-card:hover,
    .mv-card:hover,
    .trabajo-card:hover img,
    .btn-trabajo:hover {
        transform: none;
    }
}


/* =========================
   CELULARES PEQUEÑOS
========================= */

@media (max-width: 420px) {

    .nosotros-hero h1 {
        font-size: 24px;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trabajo-card,
    .trabajo-card img {
        min-height: 112px;
        height: 112px;
    }

    .overlay-trabajo p {
        display: none;
    }

    .overlay-trabajo h3 {
        font-size: 15px;
        margin-bottom: 7px;
    }

    .btn-trabajo {
        padding: 6px 10px;
        font-size: 10.5px;
    }
}