/* ══════════════════════════════════════════════════
   nosotros.css — estilos exclusivos de /nosotros
   public/css/nosotros.css
══════════════════════════════════════════════════ */

/* ─── Historia ───────────────────────────────────── */
.nos-historia-section { background: #ffffff; }

.nos-historia-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.nos-historia-text p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 16px;
}
.nos-historia-text strong { color: #011e31; }

/* Hitos */
.nos-hitos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}
.nos-hito {
    background: #f4f6f8;
    border-radius: 6px;
    padding: 14px 16px;
    border-left: 3px solid #fbd521;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nos-hito-year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #011e31;
    line-height: 1;
}
.nos-hito-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* ─── Carrusel ───────────────────────────────────── */
.nos-carrusel-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 86px;
}
.nos-carrusel {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(1,30,49,0.1);
    width: 100%;
    max-width: 100%;
}
.nos-carrusel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}
.nos-slide {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    overflow: hidden;
}
.nos-slide-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #011e31;
}
.nos-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder mientras no hay fotos */
.nos-slide-img.placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #011e31 0%, #020f18 100%);
    gap: 10px;
}
.nos-slide-placeholder-icon { font-size: 52px; opacity: 0.5; }
.nos-slide-placeholder-text {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.nos-slide-caption {
    background: #011e31;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    padding: 10px 16px;
    text-align: center;
    letter-spacing: 0.05em;
}

/* Controles */
.nos-carrusel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.nos-carrusel-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid #dde1e7;
    background: #ffffff;
    color: #011e31;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.nos-carrusel-btn:hover {
    background: #011e31;
    color: #fbd521;
    border-color: #011e31;
}
.nos-carrusel-dots { display: flex; gap: 6px; }
.nos-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #dde1e7;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.nos-dot.active {
    background: #011e31;
    width: 24px;
    border-radius: 4px;
}

/* ─── Misión · Visión · Valores ──────────────────── */
.nos-mvv-section { background: #f4f6f8; }

.nos-mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.nos-mvv-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.nos-mvv-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform 0.25s;
}
.nos-mvv-card.mision::after  { background: #fbd521; }
.nos-mvv-card.vision::after  { background: #e52f32; }
.nos-mvv-card.valores::after { background: #16a34a; }
.nos-mvv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(1,30,49,0.1); }
.nos-mvv-card:hover::after { transform: scaleX(1); }

.nos-mvv-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.nos-mvv-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #011e31;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.nos-mvv-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.75;
}

/* Valores list */
.nos-valores-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}
.nos-valores-list li {
    font-size: 13px;
    color: #4a5568;
    padding: 5px 0 5px 14px;
    position: relative;
    border-bottom: 1px solid #f8fafc;
}
.nos-valores-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 13px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #fbd521;
}

/* ─── Autoridades ────────────────────────────────── */
.nos-autoridades-section {
    background: #f4f6f8;
    position: relative;
    overflow: hidden;
}

/* Figura geométrica de fondo — bloque navy diagonal */
.nos-autoridades-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 55%;
    background: var(--navy);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: 0;
}

.nos-autoridades-section .section-inner {
    position: relative;
    z-index: 1;
}

/* Header sobre fondo navy — texto claro */
.nos-autoridades-section .section-header .overline { color: var(--yellow); }
.nos-autoridades-section .section-header .overline::before { background: var(--yellow); }
.nos-autoridades-section .section-header .section-title { color: var(--white); }
.nos-autoridades-section .section-header .section-title span { color: var(--yellow); }
.nos-autoridades-section .section-header .section-desc { color: rgba(255,255,255,0.6); }

.nos-autoridades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Autoridad principal: ocupa toda la fila, centrada ── */
.nos-autoridad-principal {
    grid-column: 1 / -1;
    max-width: 320px;
    margin: 0 auto;
    margin-bottom: 16px;
}

/* ── Divider entre principal y el resto ── */
.nos-autoridades-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0 0 8px;
}

.nos-autoridad-card {
    background: #f4f6f8;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.nos-autoridad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(1,30,49,0.1);
    border-color: #fbd521;
}

/* Foto — formato retrato */
.nos-autoridad-foto {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #011e31;
}
.nos-autoridad-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s;
}
.nos-autoridad-card:hover .nos-autoridad-foto img {
    transform: scale(1.04);
}
.nos-autoridad-foto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #011e31, #020f18);
    font-size: 72px;
    opacity: 0.3;
}

/* Info — centrada debajo de la foto */
.nos-autoridad-info {
    padding: 20px 20px 24px;
    width: 100%;
}
.nos-autoridad-cargo {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #e52f32;
    margin-bottom: 6px;
}
.nos-autoridad-nombre {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #011e31;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.nos-autoridad-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin-top: 8px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .nos-historia-wrap     { grid-template-columns: 1fr; gap: 40px; }
    .nos-carrusel-wrap     { position: static; max-width: 100%; }
    .nos-mvv-grid          { grid-template-columns: 1fr; }
    .nos-autoridades-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nos-autoridades-grid  { grid-template-columns: 1fr; }
    .nos-hitos             { grid-template-columns: 1fr 1fr; }
    .nos-valores-list      { grid-template-columns: 1fr; }
    .nos-reglamentos-inner { flex-direction: column; }
    .nos-reglamentos-btns  { width: 100%; }
    .nos-carrusel-wrap     { position: static; width: 100%; overflow: hidden; }
}

/* ─── Tablet landscape (1025px – 1180px) ────────── */
@media (min-width: 1025px) and (max-width: 1180px) {
    .nos-historia-wrap    { gap: 40px; }
    .nos-mvv-grid         { grid-template-columns: repeat(2, 1fr); }
    .nos-autoridades-grid { grid-template-columns: repeat(2, 1fr); }
    .nos-hitos            { grid-template-columns: repeat(2, 1fr); }
}