/* =============================================================
   nosotros.css — Página Nosotros (Misión, Visión y Valores)
   Mobile-first · Breakpoints: 480 | 768 | 992 | 1200
   ============================================================= */

/* ---------- Variables locales (página Nosotros) ---------- */
:root {
    --primary:      #1565a8;   /* azul medio, más luminoso */
    --primary-dark: #094c79;
    --secondary:    #1a2a4a;   /* navy suavizado */
    --accent:       #ffd700;   /* dorado original (sistema) */
    --accent-soft:  #e8b84b;   /* dorado más cálido y menos saturado */
    --white:        #ffffff;
    --text-dark:    #1e2d3d;
    --text-muted:   #5c6f84;
    --bg-light:     #f4f7fb;   /* azul muy pálido, no gris plano */
    --bg-warm:      #f8f6f2;   /* crema cálido para contraste suave */
    --shadow-sm:    0 3px 10px rgba(21,101,168,0.07);
    --shadow-md:    0 8px 24px rgba(21,101,168,0.12);
    --shadow-lg:    0 20px 50px rgba(21,101,168,0.15);
    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --transition:   all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* ============================================================
   1. HERO
   ============================================================ */
.nos-hero {
    position: relative;
    min-height: 72vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Overlay más claro y azul medio — deja respirar la imagen */
    background:
        linear-gradient(150deg, rgba(21,101,168,0.82) 0%, rgba(26,42,74,0.88) 100%),
        url("../img/viejos-crack-okk.8b31dc928bc0.jpg") center / cover no-repeat;
    padding: 5rem 1.25rem 4rem;
    overflow: hidden;
}

/* Luz suave superior derecha */
.nos-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}
/* Reflejo inferior izquierda */
.nos-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21,101,168,0.20) 0%, transparent 70%);
    pointer-events: none;
}

.nos-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.50) 100%);
    z-index: 0;
}

.nos-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: noseFadeUp 0.9s ease both;
}

.nos-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);   /* blanco suave en lugar de dorado puro */
    padding: 0.35rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 1.25rem;
}

.nos-hero__title {
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.nos-hero__sub {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.82);  /* un poco más legible */
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.nos-hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.nos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nos-hero__scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 1.4rem;
    animation: noseBounce 2s infinite;
    z-index: 1;
}

/* ============================================================
   2. CONTENEDOR COMPARTIDO
   ============================================================ */
.nos-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================================
   3. SECCIONES BASE
   ============================================================ */
.nos-section {
    padding: 5rem 1.25rem;
}

.nos-mision { background: var(--white); }
.nos-vision { background: var(--bg-light); }

/* Sección unificada Misión + Visión */
.nos-mv {
    background: var(--bg-light);
}

.nos-mv-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.nos-mv-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

/* Grid 2 columnas, cada una con [flank arriba] + [card abajo] */
.nos-mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Columna contenedora: ícono arriba, texto abajo */
.nos-mv-col {
    display: flex;
    flex-direction: column;
    gap: 0;               /* sin gap entre flank y card */
}

.nos-mv-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(21,101,168,0.10);
    border-top: none;                          /* se une al flank sin separación */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); /* redondeado solo abajo */
    padding: 2rem 2rem 2.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-align: left;
    flex: 1;                                   /* ocupa el espacio restante de la columna */
}

.nos-mv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #1e82c8 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nos-mv-card--alt::before { display: none; }  /* sin franja en alt, el flank ya da el color */

.nos-mv-card:hover {
    box-shadow: var(--shadow-md);
}

/* Número grande decorativo de fondo */
.nos-mv-card__num {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(21,101,168,0.05);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

/* Ícono circular */
.nos-mv-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.nos-mv-card__icon--mision {
    background: linear-gradient(135deg, var(--primary) 0%, #1e82c8 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(21,101,168,0.30);
}

.nos-mv-card__icon--vision {
    background: linear-gradient(135deg, #1a2a4a 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(26,42,74,0.25);
}

/* Anillo decorativo sutil */
.nos-mv-card__ring {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 2px dashed rgba(21,101,168,0.12);
    animation: noseRotate 20s linear infinite;
    pointer-events: none;
}

.nos-mv-card__ring--alt {
    border-color: rgba(26,42,74,0.10);
}

.nos-mv-card h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.nos-mv-card .nos-divider {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.nos-mv-card p {
    font-size: clamp(0.93rem, 1.8vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

.nos-mv-card p strong {
    color: var(--primary);
    font-weight: 700;
}

/* ---- Cards flanqueantes (ícono encabezado de columna) ---- */
.nos-mv-flank {
    display: flex;              /* siempre visible */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;   /* redondeado solo arriba */
    padding: 1.75rem 1rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nos-mv-flank--mision {
    background: linear-gradient(160deg, var(--primary) 0%, #1e82c8 100%);
}

.nos-mv-flank--vision {
    background: linear-gradient(160deg, #1a2a4a 0%, var(--primary) 100%);
}

.nos-mv-flank__circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--transition);
}

.nos-mv-flank:hover .nos-mv-flank__circle {
    transform: scale(1.08);
    background: rgba(255,255,255,0.22);
}

.nos-mv-flank__num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    user-select: none;
    pointer-events: none;
}

.nos-mv-flank__label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin: 0;
    position: relative;
    z-index: 1;
}

.nos-mv-flank__ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.12);
    animation: noseRotate 22s linear infinite;
    pointer-events: none;
}

/* Sección Valores: fondo con gradiente azul pálido premium */
.nos-valores {
    background: linear-gradient(135deg, #eef4fb 0%, #e8f0f9 40%, #f0f5fd 100%);
    padding: 6rem 1.25rem;
    position: relative;
    overflow: hidden;
}

/* Decoración geométrica de fondo */
.nos-valores::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21,101,168,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.nos-valores::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21,101,168,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.nos-icon-card--gold {
    /* Cambiado de dorado puro a azul medio con toque cálido */
    background: linear-gradient(135deg, #1565a8 0%, #1e82c8 100%);
    color: var(--white);
    box-shadow: 0 12px 40px rgba(21,101,168,0.35);
}

.nos-icon-card--blue {
    background: linear-gradient(135deg, #1a2a4a 0%, #1565a8 100%);
    color: var(--white);
    box-shadow: 0 12px 40px rgba(21,101,168,0.30);
}

/* Anillo decorativo */
.nos-deco-ring {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 2px dashed rgba(21,101,168,0.20);
    animation: noseRotate 18s linear infinite;
}

.nos-deco-ring--blue {
    border-color: rgba(26,42,74,0.15);
}

/* Texto de la sección */
.nos-two-col__text {
    max-width: 640px;
}

.nos-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);          /* azul en lugar de dorado */
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.nos-label--center { display: block; text-align: center; }

.nos-two-col__text h2,
.nos-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

/* Valores: título oscuro sobre fondo claro */
.nos-valores .nos-section-header h2 {
    color: var(--secondary);
}

/* Línea decorativa */
.nos-divider {
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);     /* azul en lugar de dorado */
    margin-bottom: 1.5rem;
}

.nos-divider--blue { background: var(--primary); }
.nos-divider--center { margin-left: auto; margin-right: auto; }

.nos-two-col__text p,
.nos-section-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.85;
}

.nos-two-col__text p strong { color: var(--primary); }

.nos-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.nos-section-sub {
    max-width: 580px;
    margin: 0 auto;
    color: var(--text-muted);       /* texto oscuro sobre fondo claro */
}

/* ============================================================
   5. GRID DE VALORES
   ============================================================ */
.nos-valores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2 cols de base */
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

/* Columna de cada valor: misma estructura que nos-mv-col */
.nos-valor-col {
    display: flex;
    flex-direction: column;
    animation: noseFadeUp 0.55s ease calc(var(--delay, 0s)) both;
    transition: var(--transition);
}

.nos-valor-col:hover {
    transform: translateY(-4px);
}

/* Cabecera con gradiente — igual al nos-mv-flank */
.nos-valor-head {
    background: linear-gradient(135deg, var(--primary) 0%, #1e82c8 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 1.4rem 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Versión alterna: navy oscuro (alterna con el azul) */
.nos-valor-head--alt {
    background: linear-gradient(135deg, #1a2a4a 0%, var(--primary) 100%);
}

/* Anillo decorativo interior (igual al flank) */
.nos-valor-head::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.10);
    pointer-events: none;
    animation: noseRotate 25s linear infinite;
}

/* Círculo con ícono */
.nos-valor-head__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--white);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.nos-valor-col:hover .nos-valor-head__icon {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}

.nos-valor-head h3 {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Cuerpo blanco — igual al nos-mv-card */
.nos-valor-body {
    background: var(--white);
    border: 1px solid rgba(21,101,168,0.10);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 1.1rem 1.2rem 1.3rem;
    flex: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nos-valor-col:hover .nos-valor-body {
    box-shadow: var(--shadow-md);
    border-color: rgba(21,101,168,0.18);
}

.nos-valor-body p {
    font-size: 0.845rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
    text-align: center;
}

/* ============================================================
   6. CTA FINAL
   ============================================================ */
.nos-cta {
    background: var(--white);
    padding: 5rem 1.25rem;
    border-top: 1px solid rgba(9,76,121,0.08);
}

.nos-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.nos-cta__text h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.6rem;
}

.nos-cta__text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.nos-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nos-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
}

.nos-btn--primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 6px 20px rgba(21,101,168,0.30);
}

.nos-btn--primary:hover {
    background: #0e5ba0;
    border-color: #0e5ba0;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(21,101,168,0.40);
}

.nos-btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(21,101,168,0.40);
}

.nos-btn--outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(21,101,168,0.25);
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */

/* Tablet+: MV en 2 columnas */
@media (min-width: 600px) {
    .nos-mv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .nos-section   { padding: 6rem 2rem; }
    .nos-valores   { padding: 7rem 2rem; }
    .nos-mv        { padding: 6rem 2rem; }

    /* Valores: 3 columnas en tablet */
    .nos-valores-grid { grid-template-columns: repeat(3, 1fr); }

    .nos-cta__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .nos-cta__buttons { justify-content: flex-start; }
}

/* Desktop: 4 columnas valores + padding mayor en MV */
@media (min-width: 1024px) {
    .nos-mv-grid      { gap: 2.5rem; }
    .nos-valores-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
    .nos-section { padding: 7rem 2rem; }
    .nos-valores-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   8. ANIMACIONES
   ============================================================ */
@keyframes noseFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes noseBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes noseRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
