/* ===== HERO ===== */
.nosotros-hero {
    position: relative;
    height: 45vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nosotros-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,52,113,.8), rgba(31,52,113,.6));
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.nosotros-hero-content span:first-child {
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    opacity: .9;
}

.nosotros-hero-content h1 {
    font-size: 50px;
    font-weight: 800;
    margin: 14px 0;
}

.nosotros-hero-content p {
    font-size: 17px;
    opacity: .9;
    margin: 0;
}

/* ========= BIENVENIDA ========= */
.bienvenida-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.bienvenida-img-wrap {
    position: relative;
}

.bienvenida-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -20px rgba(31,52,113,.35);
    object-fit: cover;
    height: 460px;
}

.bienvenida-badge {
    position: absolute;
    bottom: -25px;
    right: -20px;
    background: linear-gradient(135deg, #1F3471, #3F5984);
    color: #fff;
    padding: 22px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 30px -10px rgba(31,52,113,.5);
}

.badge-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 13px;
    opacity: .9;
}

.bienvenida-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.bienvenida-text {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.bienvenida-features {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1F3471;
}

.feature-item i {
    color: #1F3471;
    font-size: 18px;
}

/* ========= MISION VISION VALORES ========= */
.mision-vision-section {
    padding: 90px 0;
    background: #f8f9fc;
}

.mv-card {
    background: #fff;
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    height: 100%;
    border: 1px solid #eef0f5;
    transition: all .4s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -20px rgba(31,52,113,.25);
}

.mv-card-highlight {
    background: linear-gradient(160deg, #1F3471, #3F5984);
    color: #fff;
    border: none;
}

.mv-card-highlight h3,
.mv-card-highlight p {
    color: #fff;
}

.mv-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(31,52,113,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #1F3471;
    margin: 0 auto 22px;
}

.mv-card-highlight .mv-icon {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.mv-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #16213e;
}

.mv-card p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========= STATS ========= */
.stats-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1F3471, #3F5984);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
}

.stat-plus {
    font-size: 32px;
    font-weight: 800;
    color: #ffffffcc;
}

.stat-label {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: .5px;
    opacity: .85;
    text-align: center;
}

/* ========= CERTIFICACIONES ========= */
.certificaciones-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.certificaciones-img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 20px;
}

.certificaciones-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.cert-badge {
    padding: 12px 22px;
    border: 2px solid #1F3471;
    color: #1F3471;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all .3s ease;
}

.cert-badge:hover {
    background: #1F3471;
    color: #fff;
    transform: translateY(-3px);
}

/* ========= Animación reveal (compartida) ========= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ========= HISTORIA ========= */
.historia-section {
    padding: 90px 0;
    background: #ffffff;
    overflow: hidden;
}

.historia-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 20px;
    line-height: 1.3;
}

.historia-timeline {
    min-height: 460px;
    padding: 34px 22px 26px;
    border: 1px solid rgba(31,52,113,.08);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(31,52,113,.04), rgba(255,255,255,.94) 44%, rgba(63,89,132,.07)),
        repeating-linear-gradient(90deg, rgba(31,52,113,.035) 0 1px, transparent 1px 72px);
    box-shadow: 0 25px 50px -24px rgba(31,52,113,.28);
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 14px;
}

.timeline-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #17233f;
}

.timeline-item-1999 { margin-bottom: 182px; }
.timeline-item-adquisicion { margin-bottom: 114px; }
.timeline-item-creacion { margin-bottom: 66px; }
.timeline-item-2009 { margin-bottom: 28px; }
.timeline-item-2023 { margin-bottom: 0; }

.timeline-year {
    display: block;
    font-size: clamp(22px, 2.25vw, 31px);
    font-weight: 800;
    line-height: 1;
    color: #111827;
    margin-bottom: 8px;
}

.timeline-top-line,
.timeline-bottom-line {
    display: block;
    width: min(92px, 100%);
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
}

.timeline-top-line {
    margin-bottom: 8px;
}

.timeline-bottom-line {
    margin-top: 9px;
}

.timeline-item p {
    min-height: 72px;
    margin: 0;
    color: #263244;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.35;
    font-weight: 500;
}

.timeline-stem {
    width: 7px;
    height: var(--stem);
    background: color-mix(in srgb, var(--accent) 82%, #1F3471);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(31,52,113,.18);
}

.timeline-dot {
    width: 50px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--accent) 72%, #000);
}

/* ========= POLITICA DE CALIDAD ========= */
.politica-calidad-section {
    padding: 90px 0;
    background: #f8f9fc;
    overflow: hidden;
}

.politica-icon-wrap {
    width: 100%;
    height: 340px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1F3471, #3F5984);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -20px rgba(31,52,113,.4);
}

.politica-icon-wrap i {
    font-size: 110px;
    color: #ffffff;
    opacity: .95;
}

.politica-calidad-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #16213e;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ========= Ajuste: quitar tarjeta destacada en Mision/Vision/Valores ========= */
/* Ya no se usa .mv-card-highlight, todas las tarjetas comparten el mismo estilo .mv-card */

/* ========= RESPONSIVE (agregar a los breakpoints existentes) ========= */
@media (max-width: 991px) {
    .historia-timeline { min-height: 430px; }
    .timeline-item-1999 { margin-bottom: 158px; }
    .timeline-item-adquisicion { margin-bottom: 96px; }
    .timeline-item-creacion { margin-bottom: 54px; }
    .timeline-item-2009 { margin-bottom: 22px; }
    .politica-icon-wrap { height: 260px; margin-bottom: 10px; }
    .politica-icon-wrap i { font-size: 80px; }
}

@media (max-width: 767px) {
    .historia-section, .politica-calidad-section { padding: 60px 0; }
    .historia-section h2, .politica-calidad-section h2 { font-size: 26px; }
    .historia-timeline {
        min-height: auto;
        padding: 26px 20px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-item,
    .timeline-item-1999,
    .timeline-item-adquisicion,
    .timeline-item-creacion,
    .timeline-item-2009,
    .timeline-item-2023 {
        position: relative;
        margin-bottom: 0;
        padding: 0 0 28px 50px;
        align-items: flex-start;
        text-align: left;
    }

    .timeline-item:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 16px;
        top: 12px;
        bottom: -4px;
        width: 3px;
        border-radius: 999px;
        background: rgba(31,52,113,.16);
    }

    .timeline-year {
        font-size: 25px;
        margin-bottom: 7px;
    }

    .timeline-top-line {
        width: 84px;
        height: 4px;
        margin-bottom: 8px;
    }

    .timeline-bottom-line,
    .timeline-stem {
        display: none;
    }

    .timeline-dot {
        position: absolute;
        left: 5px;
        top: 6px;
        width: 25px;
        height: 25px;
        border: 5px solid #fff;
        box-shadow: 0 10px 24px -14px rgba(31,52,113,.7);
    }

    .timeline-item p {
        min-height: 0;
        max-width: 360px;
        font-size: 14px;
    }
    .politica-icon-wrap { height: 200px; }
    .politica-icon-wrap i { font-size: 60px; }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 991px) {
    .nosotros-hero-content h1 { font-size: 42px; }
    .bienvenida-badge { right: 10px; bottom: -20px; padding: 16px 20px; }
    .badge-number { font-size: 26px; }
    .bienvenida-img { height: 360px; }
    .certificaciones-img { height: 320px; margin-bottom: 20px; }
}

@media (max-width: 767px) {
    .nosotros-hero { height: 45vh; min-height: 320px; }
    .nosotros-hero-content h1 { font-size: 32px; }
    .nosotros-hero-content p { font-size: 15px; }
    .bienvenida-section, .mision-vision-section,
    .certificaciones-section { padding: 60px 0; }
    .stats-section { padding: 50px 0; }
    .stat-number { font-size: 34px; }
    .stat-label { font-size: 12px; }
    .section-header h2, .bienvenida-section h2,
    .certificaciones-section h2 { font-size: 26px; }
    .bienvenida-badge { position: static; margin-top: -15px; display: inline-block; }
}




.politica-lista{
    margin-top:20px;
    padding-left:25px;
}

.politica-lista li{
    margin-bottom:12px;
    color:#5b6578;
    font-size:16px;
    line-height:1.8;
}

.politica-lista li::marker{
    color:#1F3471;
    font-size:18px;
}
