/* =========================================
   ABOUT
========================================= */
.about {
    background: white;
    padding: 68px 88px 48px;
}

.about-container {
    width: min(1230px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.about-left h2 {
    font-size: clamp(22px, 2.4vw, 27px);
    line-height: 1.35;
    font-weight: 500;
}

.about-left .black       { color: #000000; }
.about-left .green-dark  { color: var(--verde-oscuro); }
.about-left .green-light { color: var(--verde-medio); }

.about-right p {
    color: #000000;
    font-size: clamp(15px, 1.1vw, 16px);
    line-height: 1.65;
    font-weight: 400;
    max-width: 550px;
}

/* =========================================
   PORTADA NOSOTROS
========================================= */
.nosotros-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background-image: url("/static/img/nosotros/Fondo_Nosotros.91d3e090bd1e.jpg");
    background-size: cover;
    background-position: center;
}

.nosotros-hero-content {
    position: absolute;
    top: var(--hero-contenido-top);
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--hero-contenido-ancho), 100%);
    padding: 0 var(--hero-contenido-left);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nosotros-hero-title {
    color: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 58px;
    font-weight: 100;
    line-height: 1.02;
    letter-spacing: -0.01em;
}
.nosotros-hero-title .segunda-linea {
    color: #90BF3E;
    display: inline;
    font-weight: 600;
    white-space: nowrap;
}

.nosotros-hero-title .segunda-linea .accent {
    display: inline;
    color: #90BF3E;
    font-weight: 600;
}

.nosotros-hero-description {
    margin-top: 48px;
    max-width: 850px;
    color: #FFFFFF;
     font-family: "Montserrat", Arial, sans-serif;
    font-size: 20PX;
    line-height: 1.5;
    font-weight: 400;        /* Regular */
    text-align: justify;
}

/* Franja inferior: certificaciones CNE / CENACE */
.nosotros-certifications {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: min(var(--hero-contenido-ancho), 100%);
    padding: 0 var(--hero-contenido-left);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.certification-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.5;
}
.cert-logos {
    display: flex;
    align-items: center;
    gap: 40px;
}
.logo-cne,
.logo-cenace {
    height: 46px;
    width: auto;
}

/* =========================================
   ETIQUETA SOBRE NOSOTROS
========================================= */
.sobre-nosotros-label {
    width: fit-content;
    margin: 0 0 22px 0;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    color: var(--verde-oscuro);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
}

.sobre-nosotros-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--verde-oscuro);
}

/* =========================================
   QUÉ HACEMOS
========================================= */
.que-hacemos {
    background: #ffffff;
    padding: 65px 55px 80px;
}


.que-hacemos-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 65px;
    align-items: start;
}

.que-hacemos-left,
.que-hacemos-right {
    display: contents;
}

.sobre-nosotros-label {
    grid-column: 1;
    grid-row: 1;
}

.que-hacemos-left h2 {
    grid-column: 1;
    grid-row: 2;
}

/* =========================================
   COLUMNA IZQUIERDA
========================================= */

.que-hacemos-left h2 {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 64px;
    line-height: 0.98;
    font-weight: 400;
}

.que-hacemos-left h2 > span {
    display: block;
    color: #000000;
    font-weight: 400;
}

.que-hacemos-left h2 > strong {
    display: block;
    color: #399C20 !important;
    font-weight: 700;
}

/* =========================================
   LÍNEA VERTICAL
========================================= */
.que-hacemos-left .que-hacemos-parrafo {
    grid-column: 1;
    grid-row: 3;
    max-width: 650px;
    margin-top: 38px;
}

.que-hacemos-divider {
    grid-column: 2;
    grid-row: 3;
    width: 1px;
    min-height: 0;
    margin-top: 38px;
    align-self: stretch;
    background: #D9D9D9 !important;
}

.que-hacemos-right .que-hacemos-parrafo {
    grid-column: 3;
    grid-row: 3;
    max-width: 600px;
    margin-top: 38px;
}

.que-hacemos-parrafo {
    margin: 0;
    color: #3B3B39;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
    text-align: justify;
}

.que-hacemos-parrafo {
    color: #3B3B39 !important;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.65;
}

/* =========================================
   SECCIÓN PROYECTOS (cabecera + acordeón)
========================================= */

.casos-carrusel {
    scroll-margin-top: 110px;
    padding: 70px clamp(24px, 6vw, 90px) 80px;

    background-image: url("/static/img/nosotros/fondo-proyectos.c797b6e0cc64.webp");
    background-size: 100% auto;        
    background-position: center top;
    background-repeat: no-repeat;
   
}

/* ---- Cabecera ---- */
.proyectos-head {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}
.proyectos-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}
.proyectos-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--verde-claro);
}
.proyectos-titulo {
    margin-top: 16px;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
}
.proyectos-titulo .hl {
    display: inline-block;
    margin-top: 8px;
    background: var(--verde-medio);
    color: #fff;
    padding: 2px 18px;
    border-radius: 10px;
}
.proyectos-sub {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
}




.casos-carrusel-track {
    max-width: 1230px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    height: 380px;        /* ← antes 460px */
    overflow: hidden;
}

/* Cada tarjeta */
.caso-card {
    position: relative;
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    min-width: 0;
    transition: flex 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.caso-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;   /* angosta → muestra la izquierda (el nombre) */
    display: block;
}

/* Monterrey (expandida por defecto) */
.caso-card.caso-central {
    flex: 1.6;
}

/* Hover: la del cursor se expande, las demás se encogen */
.casos-carrusel-track:hover .caso-card {
    flex: 1;
}
.casos-carrusel-track:hover .caso-card:hover {
    flex: 1.6;
}


/* =========================================
   ACERCA DE NOSOTROS
========================================= */

.acerca-nosotros {
     width: 100%;
    padding: 40px 0 0;        /* antes: 105px 30px 40px — quita laterales y abajo */
    background: #FFFFFF;
    text-align: center;
}
/* Título (izq) + tabs (der) en la misma línea */
.acerca-header {
    width: 100%;
    padding: 0 10%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.acerca-nosotros-titulo {
    margin: 0;
    display: flex;
    flex-direction: column;        /* "Acerca" arriba, línea 2 abajo */
    align-items: flex-start;
    gap: 6px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 56px;
    line-height: 1;
}
/* "Acerca" — sin bold */
.acerca-nosotros-titulo .t-acerca {
    color: #000000;
    font-weight: 400;
}

/* Línea 2: "de" + caja verde en la misma fila */
.acerca-nosotros-titulo .t-linea2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* "de" — negro, sin bold */
.acerca-nosotros-titulo .t-de {
    color: #000000;
    font-weight: 400;
}

/* "Nosotros" — caja verde */
.acerca-nosotros-titulo strong {
    padding: 4px 16px;
    background: #90BF3E;
    color: #FFFFFF;
    font-weight: 700;
}

.acerca-nosotros-titulo span {
    color: #000000;
    font-weight: 700;
}

.acerca-nosotros-titulo strong {
    margin-left: 10px;
    padding: 5px 18px;

    background: #90BF3E;
    color: #FFFFFF;

    font-weight: 700;
}

.acerca-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    padding: 6px 10px;
}

.acerca-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.acerca-tab:focus {
    outline: none;
}

.acerca-tab:not(.acerca-tab-active):hover {
    background: rgba(3, 102, 53, 0.12);
    color: var(--verde-oscuro);
    transform: translateY(-2px);
}

.acerca-tab-active {
    padding: 13px 27px;
    background: #036635;
    border-radius: 30px;
    color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.18);
}

.acerca-tab-active:hover {
    transform: translateY(-2px);
}


/* Acerca — lista desplegable (móvil / tablet) */
.acerca-tabs-nav {
    flex-shrink: 0;
}

.acerca-tabs-dropdown {
    display: none;
    position: relative;
    width: 100%;
    max-width: 420px;
}

.acerca-tabs-dropdown-trigger {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    background: #ffffff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acerca-tabs-dropdown-trigger:focus {
    outline: none;
    border-color: #036635;
    box-shadow: 0 0 0 3px rgba(3, 102, 53, 0.2);
}

.acerca-tabs-dropdown-label {
    flex: 1;
    min-width: 0;
}

.acerca-tabs-dropdown-icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: -3px;
    border-right: 2px solid #036635;
    border-bottom: 2px solid #036635;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.acerca-tabs-dropdown-abierto .acerca-tabs-dropdown-icon {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.acerca-tabs-dropdown-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    max-height: min(320px, 58vh);
    overflow-y: auto;
}

.acerca-tabs-dropdown-option {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #111111;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.acerca-tabs-dropdown-option:hover,
.acerca-tabs-dropdown-option:focus {
    outline: none;
    background: rgba(3, 102, 53, 0.12);
    color: #036635;
}

.acerca-tabs-dropdown-option-activa {
    background: #036635;
    color: #ffffff;
}

.acerca-tabs-dropdown-option-activa:hover,
.acerca-tabs-dropdown-option-activa:focus {
    background: #02542b;
    color: #ffffff;
}


@media (max-width: 900px) {
    .acerca-header {
        flex-direction: column;
        align-items: center;
        padding: 0 24px;
        gap: 24px;
    }

    .acerca-nosotros-titulo {
        align-items: center;
    }

    .acerca-tabs-nav {
        width: 100%;
        max-width: 420px;
    }

    .acerca-tabs {
        display: none;
    }

    .acerca-tabs-dropdown {
        display: block;
    }
}


@keyframes armarPiezaSoloFade {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* NUESTRA VISIÓN */

.vision-section {
    width: 100%;
    padding: 30px 0px 0px;
    background: #FFFFFF;
}

.vision-container {
    width: 100%;
    margin: 0;
}

/* Visión — desktop: título (izq) + texto (der) sobre la imagen */
.vision-imagen-container {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    grid-template-rows: clamp(480px, 42vw, 580px);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vision-imagen {
    grid-row: 1;
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(480px, 42vw, 580px);
    object-fit: cover;
}

.vision-overlay {
    grid-row: 1;
    grid-column: 1 / -1;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.42) 45%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.vision-titulo {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: start;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 clamp(24px, 8%, 100px);
    max-width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(48px, 5.5vw, 70px);
    line-height: 0.95;
    font-weight: 700;
    text-align: left;
}

.vision-titulo span {
    color: #ffffff;
}

.vision-titulo strong {
    color: #aee318;
    font-weight: 700;
}

.vision-texto {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    justify-self: start;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 clamp(32px, 6%, 88px) 0 clamp(8px, 2vw, 20px);
    background: transparent;
    box-sizing: border-box;
}

.vision-texto p {
    margin: 0;
    max-width: none;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.55;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
}
/* =========================================
   NUESTRA MISIÓN
========================================= */

.mision-section {
    width: 100%;
    padding: 30px 0px 0px;
    background: #FFFFFF;
}

.mision-container {
    width: 100%;
    margin: 0;
}

.mision-imagen-container {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    grid-template-rows: clamp(480px, 42vw, 580px);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.mision-imagen {
    grid-row: 1;
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(480px, 42vw, 580px);
    object-fit: cover;
}

.mision-overlay {
    grid-row: 1;
    grid-column: 1 / -1;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.42) 45%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.mision-titulo {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
    justify-self: start;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 clamp(24px, 8%, 100px);
    max-width: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(48px, 5.5vw, 70px);
    line-height: 0.95;
    font-weight: 700;
    text-align: left;
}

.mision-titulo span {
    color: #ffffff;
}

.mision-titulo strong {
    color: #aee318;
    font-weight: 700;
}

.mision-texto {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    justify-self: start;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 clamp(32px, 6%, 88px) 0 clamp(8px, 2vw, 20px);
    background: transparent;
    box-sizing: border-box;
}

.mision-texto p {
    margin: 0;
    max-width: none;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.55;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
}

.vision-imagen-container .vision-titulo.pieza,
.mision-imagen-container .mision-titulo.pieza {
    animation: armarPiezaSoloFade 0.55s ease both;
    animation-delay: var(--delay, 0s);
}

.vision-imagen-container .vision-texto.pieza,
.mision-imagen-container .mision-texto.pieza {
    --from-x: 0px;
}

/* Visión / Misión — ≤900px: título sobre imagen, descripción debajo */
@media (max-width: 900px) {
    .vision-imagen-container,
    .mision-imagen-container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: min(380px, 52vh) auto;
    }

    .vision-imagen,
    .mision-imagen {
        grid-row: 1;
        grid-column: 1;
        height: min(380px, 52vh);
        min-height: 0;
    }

    .vision-overlay,
    .mision-overlay {
        grid-row: 1;
        grid-column: 1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.1) 42%,
            rgba(0, 0, 0, 0.58) 100%
        );
    }

    .vision-titulo,
    .mision-titulo {
        grid-row: 1;
        grid-column: 1;
        align-self: end;
        margin: 0 0 clamp(20px, 4vw, 32px) clamp(20px, 5vw, 28px);
        padding: 0;
        max-width: calc(100% - 40px);
    }

    .vision-texto,
    .mision-texto {
        grid-row: 2;
        grid-column: 1;
        align-self: start;
        padding: clamp(24px, 4vw, 32px) clamp(20px, 5vw, 28px) clamp(32px, 5vw, 40px);
        background: #ffffff;
    }

    .vision-texto p,
    .mision-texto p {
        color: #1a1a1a;
        font-size: clamp(16px, 4vw, 18px);
        line-height: 1.6;
        text-align: left;
    }
}


/* =========================================
   NUESTROS VALORES
========================================= */

.valores-section {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;                    /* ← normal, sin 100vw ni margin negativo */
    margin-top: 40px;   

    padding: 30px clamp(24px, 6vw, 90px) 30px 190px;

    background-image: url("/static/img/nosotros/valores.1eca16e17015.webp");
    background-size: cover;
    background-position: center;
}


.valores-container {
    position: relative;
    z-index: 1;
    width: min(1230px, 100%);
    margin: 0 auto;
    text-align: left;  
}

/* Título */
.valores-titulo {
    display: flex;
    flex-direction: column;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 50px;
}
.valores-titulo span { color: #fff; }
.valores-titulo strong { color: #aee318; font-weight: 700; }

/* Layout: lista izquierda + texto derecha */
.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ---- Lista (timeline) ---- */
.valores-lista {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-left: 30px;
    align-items: flex-start;
}


.valor-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;

}
/* Punto en la línea */
.valor-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: background 0.3s ease, transform 0.3s ease;
}

/* Estado activo (hover o el que esté marcado) */
.valor-item.is-active {
    transform: scale(1.06);
    background: rgba(0, 0, 0, 0.35);
    border-color: #fff;
    font-weight: 600;
}
.valor-item.is-active::before {
    background: #fff;                                    /* círculo blanco relleno */
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25);    /* aro transparente alrededor */
}

/* ---- Texto derecha ---- */
.valores-texto {
    max-width: 360px;
}
.valores-texto p {
    color: #fff;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    font-weight: 500;
    text-align: justify;
}
/* =========================================
   POLÍTICA INTEGRAL DE GESTIÓN
   ========================================= */

.politica-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    margin-top: 30px;
    padding: 100px 0px 30px;
    background-image: url("/static/img/nosotros/fondo-politica.767db537b818.webp");
    background-size:100%;
    background-position: center top;
    background-repeat: no-repeat;

    overflow: hidden;
}

.politica-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

}


/* =========================================
   TÍTULO
   ========================================= */

.politica-titulo {
    display: flex;
    flex-direction: column;

    margin-bottom: 60px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 70px;
    line-height: 0.95;
     text-align: left;
}

.politica-titulo span {
    color: #FFFFFF;

 font-weight: 600;
}

.politica-titulo strong {
    color: #AEE318;
    font-weight: 800;
}


/* =========================================
   GRID DE TARJETAS
   ========================================= */

.politica-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 18px;
}


/* =========================================
   TARJETAS
   ========================================= */

.politica-card {
    min-height: 108px;

    padding: 15px 27px;

    display: flex;
    flex-direction: column;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 5px;

    background: rgba(217, 217, 217, 0.15);

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-sizing: border-box;
     align-items: flex-start;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}


/* Primeros 6 */

.politica-card:nth-child(1),
.politica-card:nth-child(2),
.politica-card:nth-child(3),
.politica-card:nth-child(4),
.politica-card:nth-child(5),
.politica-card:nth-child(6) {
    grid-column: span 2;
}


/* Últimas 2 */

.politica-card:nth-child(7),
.politica-card:nth-child(8) {
    grid-column: span 3;
}

.politica-card {
    /* ...lo que ya tienes... */
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* HOVER: fondo blanco, texto negro */
.politica-card:hover {
    background: #FFFFFF;
}
.politica-card:hover .politica-numero,
.politica-card:hover .politica-reducido,
.politica-card:hover .politica-completo {
    color: #000000;                     /* todo el texto en negro */
}


/* =========================================
   NÚMEROS
   ========================================= */

.politica-numero {
    margin-bottom: 30px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 35px;
    line-height: 1;
    font-weight: 600;

    color: #FFFFFF;
}


/* =========================================
   TEXTO
   ========================================= */

.politica-texto {
    margin: 0;
}

.politica-texto p {
    margin: 0;
}


/* Texto reducido */

.politica-reducido {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.3;

    font-weight: 700;

    color: #FFFFFF;
}


/* Texto completo
   POR AHORA permanece oculto.
   Lo activaremos con el scroll.
*/

.politica-completo {
     display: block;
    margin-top: 0 !important;
    max-height: 0;                      /* cerrado: altura 0 */
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease,
                transform 0.5s ease,
                margin-top 0.4s ease;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    color: #FFFFFF;
    text-align: justify;
}

.politica-card.politica-visible .politica-completo {
    max-height: 300px;                  /* abierto: suficiente para el texto */
    margin-top: 12px !important;
    opacity: 1;
    transform: translateY(0);
}





/* =========================================
   TRANSICIÓN SLIDE VERTICAL ENTRE TABS
========================================= */

.acerca-paneles {
    position: relative;
    overflow: visible;
}

/* Panel que ENTRA desde abajo */
.acerca-contenido.slide-in {
    animation: slideInUp 0.7s cubic-bezier(0.65, 0, 0.35, 1) both;
}

/* Panel que SALE hacia arriba */
.acerca-contenido.slide-out {
    animation: slideOutUp 0.7s cubic-bezier(0.65, 0, 0.35, 1) both;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes slideOutUp {
    from { transform: translateY(0);     opacity: 1; }
    to   { transform: translateY(-100%); opacity: 0.6; }
}

/* Inversa: al retroceder (de Misión a Visión) */
.acerca-contenido.slide-in-rev {
    animation: slideInDown 0.7s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.acerca-contenido.slide-out-rev {
    animation: slideOutDown 0.7s cubic-bezier(0.65, 0, 0.35, 1) both;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0.6; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes slideOutDown {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0.6; }
}

/* =========================================
   ARMADO DE PIEZAS (tras el slide)
========================================= */



.acerca-contenido.armar .pieza {
    animation: armarPieza 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--delay, 0s);
}

@keyframes armarPieza {
    from { opacity: 0; translate: var(--from-x, 0) 40px; }
    to   { opacity: 1; translate: 0 0; }
}
/* =========================================
   RESPONSIVE — TABLET (<= 1100px)
========================================= */

@media (max-width: 1100px) {

    /* 1) Portada Nosotros */
    .nosotros-hero {
        min-height: 80vh;
    }
    .nosotros-hero-content {
        top: 160px;
        padding: 0 40px;
    }
    .nosotros-certifications {
        padding: 0 40px;
    }

        /* 2) ¿Qué hacemos? */
    .que-hacemos {
        padding: 55px 40px 60px;
    }
    .que-hacemos-left h2 {
        font-size: 48px;
    }
    .que-hacemos-container {
        column-gap: 40px;
    }

        /* 3) Proyectos */
    .casos-carrusel {
        padding: 60px 40px 70px;
    }
    .casos-carrusel-track {
        height: 320px;          /* un poco más bajo en tablet */
    }

        /* 4) Acerca de Nosotros */
    .acerca-nosotros {
        padding: 80px 30px 40px;
    }
    .acerca-nosotros-titulo {
        font-size: 52px;
    }
    .acerca-tabs {
        gap: 10px;
        flex-wrap: wrap;
    }
    .acerca-tab {
        font-size: 18px;
    }
    .acerca-tabs-line {
        width: 80%;
    }

        /* 5) Visión / Misión — overlay en tablet ancha */
    .vision-imagen-container,
    .mision-imagen-container {
        grid-template-rows: min(500px, 62vh);
    }

    .vision-imagen,
    .mision-imagen {
        min-height: min(500px, 62vh);
    }


        /* Valores */
    .valores-section {
        min-height: auto;
        padding: 60px 40px;
    }
    .valores-titulo {
        font-size: clamp(38px, 5vw, 56px);
        margin-bottom: 40px;
    }
    .valores-grid {
        gap: 40px;
    }
    .valor-item {
        font-size: 18px;
        padding: 11px 22px;
    }


        /* 7) Política Integral de Gestión */
    .politica-section {
        padding: 100px 30px 40px;
        background-size: cover;      /* que cubra bien en tablet */
    }
    .politica-titulo {
        font-size: 48px;
        margin-bottom: 40px;
    }

    /* 6 columnas → las tarjetas se reacomodan a 2 por fila */
    .politica-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .politica-card:nth-child(1),
    .politica-card:nth-child(2),
    .politica-card:nth-child(3),
    .politica-card:nth-child(4),
    .politica-card:nth-child(5),
    .politica-card:nth-child(6),
    .politica-card:nth-child(7),
    .politica-card:nth-child(8) {
        grid-column: span 1;         /* cada una ocupa 1 de las 2 columnas */
    }
    .politica-numero {
        font-size: 30px;
        margin-bottom: 20px;
    }

}


/* =========================================
   RESPONSIVE — MÓVIL (<= 800px)
========================================= */

@media (max-width: 800px) {

    /* 1) Portada Nosotros */
    .nosotros-hero {
        min-height: auto;
        padding-bottom: 36px;
    }
    .nosotros-hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 120px 24px 0;
    }
    .nosotros-hero-title {
        font-size: 42px;
    }
    .nosotros-hero-description {
        max-width: 100%;
        margin-top: 20px;
    }
    .nosotros-certifications {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        padding: 0 24px;
        margin-top: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .logo-cne,
    .logo-cenace {
        height: 36px;
    }

        /* 2) ¿Qué hacemos? */
    .que-hacemos {
        padding: 45px 24px 55px;
    }

    /* El grid de 3 columnas (texto · línea · texto) pasa a 1 columna */
    .que-hacemos-container {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        row-gap: 30px;
    }

    .que-hacemos-left,
    .que-hacemos-right {
        display: block;
    }

    .sobre-nosotros-label,
    .que-hacemos-left h2,
    .que-hacemos-left .que-hacemos-parrafo,
    .que-hacemos-right .que-hacemos-parrafo,
    .que-hacemos-divider {
        grid-column: auto;
        grid-row: auto;
    }

    /* La línea vertical del medio se oculta en móvil */
    .que-hacemos-divider {
        display: none;
    }

    .que-hacemos-left h2 {
        font-size: 40px;
    }
    .que-hacemos-left .que-hacemos-parrafo,
    .que-hacemos-right .que-hacemos-parrafo {
        margin-top: 24px;
    }

        /* 3) Proyectos */
    .casos-carrusel {
        padding: 50px 22px 60px;
        background-size: cover; 
    }

    /* El acordeón horizontal pasa a tarjetas apiladas */
    .casos-carrusel-track {
        flex-direction: column;
        height: auto;
        gap: 16px;
    }

    /* Todas las tarjetas del mismo alto fijo (ya no hay expandida/angosta) */
    .caso-card,
    .caso-card.caso-central {
        flex: none;
        height: 220px;
    }

    /* En móvil mostramos la imagen completa-ish (centrada) */
    .caso-card img {
        object-position: center;
    }

        /* 4) Acerca de Nosotros */
    .acerca-nosotros {
        padding: 55px 24px 30px;
    }
    .acerca-nosotros-titulo {
        font-size: 36px;
        flex-wrap: wrap;             /* "Acerca de" y "Nosotros" pueden bajar */
        justify-content: center;
        gap: 6px;
    }
    .acerca-nosotros-titulo strong {
        margin-left: 0;              /* quita el margen que descuadra al envolver */
    }

    .acerca-tabs-dropdown-trigger {
        font-size: 15px;
        padding: 12px 16px;
    }

    .acerca-tabs-dropdown-option {
        font-size: 16px;
    }

    .acerca-tabs-line {
        width: 90%;
        margin-top: 24px;
    }

        /* 5) Visión / 6) Misión — layout en @media (max-width: 900px) */
    .vision-section,
    .mision-section {
        padding: 40px 0 48px;
    }

        /* Valores */
    .valores-section {
        padding: 50px 24px 50px 40px;   /* menos padding izquierdo en móvil */
    }

    /* El grid de 2 columnas pasa a 1: lista arriba, texto abajo */
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .valores-titulo {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .valor-item {
        font-size: 16px;
        padding: 10px 20px;
    }

    /* El texto de la derecha ocupa todo el ancho y se ve bien */
    .valores-texto {
        max-width: 100%;
    }
    .valores-texto p {
        font-size: 16px;
    }

    
        /* 7) Política Integral de Gestión */
    .politica-section {
        min-height: auto;
        padding: 60px 22px 40px;
        background-size: cover;
    }
    .politica-titulo {
        font-size: 34px;
        margin-bottom: 30px;
    }

    /* Todas las tarjetas en 1 columna */
    .politica-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .politica-card:nth-child(1),
    .politica-card:nth-child(2),
    .politica-card:nth-child(3),
    .politica-card:nth-child(4),
    .politica-card:nth-child(5),
    .politica-card:nth-child(6),
    .politica-card:nth-child(7),
    .politica-card:nth-child(8) {
        grid-column: span 1;
    }
    .politica-card {
        min-height: auto;
        padding: 16px 20px;
    }
    .politica-numero {
        font-size: 28px;
        margin-bottom: 14px;
    }

}

@media (max-width: 800px) {
    .nosotros-certifications {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;

        width: 100% !important;
        box-sizing: border-box;
        padding: 0 24px !important;
        margin-top: 30px !important;

        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        column-gap: 16px;
        row-gap: 14px;
    }

    .nosotros-certifications .certification-text {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        margin: 0 !important;
        text-align: center !important;
    }

    .nosotros-certifications .logo-cne,
    .nosotros-certifications .logo-cenace {
        grid-row: 2;
        width: auto !important;
        height: 42px !important;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
        position: static !important;
        margin: 0 !important;
        justify-self: center;
    }

    .nosotros-certifications .logo-cne {
        grid-column: 1;
    }

    .nosotros-certifications .logo-cenace {
        grid-column: 2;
    }
}
