/* Página Nosotros — ejecutivo moderno */
.npage {
    --np-ink: #1a2332;
    --np-muted: #5c6675;
    --np-line: #d7dce6;
    --np-steel: #3d4a5c;
    --np-accent: #c62828;
    --np-surface: #ffffff;
    --np-bg: #f3f5f8;
    background:
        radial-gradient(1200px 420px at 10% -10%, rgba(198, 40, 40, 0.05), transparent 60%),
        radial-gradient(900px 380px at 90% 8%, rgba(26, 35, 50, 0.05), transparent 55%),
        var(--np-bg);
    padding-bottom: 3.75rem;
}

.npage__hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #151c28 0%, #1a2332 48%, #243044 100%);
    color: #fff;
    padding: 3rem 0 3.4rem;
}

.npage__hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.18), transparent 68%);
    pointer-events: none;
}

.npage__hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #c62828 0%, #c62828 28%, transparent 70%);
}

.npage__hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.25rem;
    align-items: center;
}

.npage__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.npage__eyebrow::before {
    content: "";
    width: 1.1rem;
    height: 2px;
    background: #c62828;
    border-radius: 999px;
}

.npage__eyebrow--dark {
    color: var(--np-steel);
}

.npage__eyebrow--dark::before {
    background: var(--np-accent);
}

.npage__hero h1 {
    margin: 0 0 0.95rem;
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.npage__hero h1 em {
    font-style: normal;
    color: #ff8a80;
}

.npage__lead {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.65;
}

.npage__lead strong {
    color: #fff;
    font-weight: 700;
}

.npage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.7rem;
}

.npage__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0.7rem 1.2rem;
    border-radius: 11px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, gap 0.2s ease;
}

.npage__btn--primary {
    background: var(--np-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.28);
}

.npage__btn--primary:hover {
    background: #9f1d1d;
    color: #fff;
    transform: translateY(-1px);
    gap: 0.65rem;
}

.npage__btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(4px);
}

.npage__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.npage__hero-media {
    position: relative;
}

.npage__photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f172a;
    min-height: 300px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.npage__photo img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.5s ease;
}

.npage__hero-media:hover .npage__photo img {
    transform: scale(1.04);
}

.npage__photo-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.45) 100%);
    pointer-events: none;
}

.npage__badge-years {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(215, 220, 230, 0.9);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(6px);
}

.npage__badge-years strong {
    color: var(--np-accent);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.npage__badge-years span {
    color: var(--np-muted);
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 8.5rem;
    line-height: 1.25;
}

.npage__stats {
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.npage__stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: var(--np-surface);
    border: 1px solid var(--np-line);
    border-radius: 14px;
    padding: 0.35rem;
    box-shadow: 0 12px 30px rgba(26, 35, 50, 0.08);
}

.npage__stat {
    text-align: center;
    padding: 1.05rem 0.7rem;
    border-right: 1px solid var(--np-line);
}

.npage__stat:last-child {
    border-right: 0;
}

.npage__stat strong {
    display: block;
    color: var(--np-ink);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.npage__stat span {
    color: var(--np-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.npage__pillars {
    padding: 3.1rem 0 1.2rem;
}

.npage__section-head {
    max-width: 640px;
    margin: 0 auto 1.8rem;
    text-align: center;
}

.npage__section-head h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.45rem, 2.5vw, 1.95rem);
    color: var(--np-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.npage__section-head p {
    margin: 0;
    color: var(--np-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.npage__pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.npage__card {
    position: relative;
    background: var(--np-surface);
    border: 1px solid var(--np-line);
    border-radius: 14px;
    padding: 1.3rem 1.2rem 1.4rem;
    box-shadow: 0 2px 10px rgba(26, 35, 50, 0.04);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.npage__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.npage__card:hover {
    transform: translateY(-3px);
    border-color: #c5ccd8;
    box-shadow: 0 14px 30px rgba(26, 35, 50, 0.1);
}

.npage__card:hover::before {
    background: var(--np-accent);
}

.npage__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.npage__card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    color: var(--np-steel);
}

.npage__card-index {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #9aa5b5;
}

.npage__card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--np-ink);
}

.npage__card p {
    margin: 0;
    color: var(--np-muted);
    font-size: 0.9rem;
    line-height: 1.58;
}

.npage__values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.npage__values li {
    color: var(--np-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    padding-left: 0.7rem;
    border-left: 2px solid #e4e8ef;
}

.npage__values strong {
    color: var(--np-ink);
}

.npage__team {
    padding: 2.2rem 0 0;
}

.npage__team-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0;
    background: var(--np-surface);
    border: 1px solid var(--np-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(26, 35, 50, 0.06);
}

.npage__team-photo {
    position: relative;
    min-height: 300px;
    background: #eef1f5;
}

.npage__team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(26, 35, 50, 0.08));
    pointer-events: none;
}

.npage__team-photo img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.npage__team-copy {
    padding: 1.85rem 1.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.npage__team-copy h2 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--np-ink);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.npage__team-copy p {
    margin: 0 0 0.45rem;
    color: var(--np-muted);
    font-size: 0.95rem;
    line-height: 1.58;
}

.npage__team-copy .npage__btn {
    align-self: flex-start;
}

@media (max-width: 960px) {
    .npage__hero-grid,
    .npage__pillars-grid,
    .npage__team-panel {
        grid-template-columns: 1fr;
    }

    .npage__stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .npage__stat:nth-child(2) {
        border-right: 0;
    }

    .npage__stat:nth-child(1),
    .npage__stat:nth-child(2) {
        border-bottom: 1px solid var(--np-line);
    }

    .npage__photo img {
        height: 270px;
    }

    .npage__team-photo::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .npage__hero {
        padding: 2rem 0 2.4rem;
    }

    .npage__stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .npage__badge-years {
        left: 0.7rem;
        bottom: 0.7rem;
        right: 0.7rem;
    }

    .npage__team-copy {
        padding: 1.25rem 1.05rem 1.4rem;
    }
}

[data-theme="dark"] .npage {
    --np-ink: #f1f5f9;
    --np-muted: #94a3b8;
    --np-line: #1e2a3f;
    --np-steel: #cbd5e1;
    --np-accent: #ef5350;
    --np-surface: #121826;
    --np-bg: #0b1121;
    background: var(--np-bg);
}

[data-theme="dark"] .npage__hero {
    background: linear-gradient(135deg, #0b1220 0%, #111827 55%, #1a2332 100%);
}

[data-theme="dark"] .npage__stats-grid,
[data-theme="dark"] .npage__card,
[data-theme="dark"] .npage__team-panel,
[data-theme="dark"] .npage__badge-years {
    background: #121826;
    border-color: #1e2a3f;
    box-shadow: none;
}

[data-theme="dark"] .npage__team-copy {
    background: #121826;
}

[data-theme="dark"] .npage__card-icon {
    background: #1a2233;
    color: #cbd5e1;
}

[data-theme="dark"] .npage__values li {
    border-left-color: #2a3548;
}

[data-theme="dark"] .npage__team-photo {
    background: #0f172a;
}
