/* =============================================
    RESET & TOKENS
    ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

:root {
    --navy:       #1a2841;
    --navy-mid:   #233053;
    --blue-mid:   #7894cc;
    --orange:     #e8622a;
    --white:      #ffffff;
    --light-bg:   #f0f4fa;
    --text:       #2c3a50;
    --muted:      #5a6a82;
    --font-h:     'Montserrat', sans-serif;
    --font-body:  'Open Sans', sans-serif;
    --tr:         0.25s ease;
    --radius-pill: 50px;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600&display=swap');

/* =============================================
    UTILITIES
    ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-title {
    font-family: var(--font-h); font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--navy); margin-bottom: 12px;
}
.section-divider {
    width: 40px; height: 3px;
    background: #E4E3C2;
    margin-bottom: 20px;
    border-radius: 2px;
}
.section-divider--center { margin-left: auto; margin-right: auto; }

/* =============================================
    NAVIGATION
    ============================================= */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
    z-index: 200;
    height: 68px;
    display: flex; align-items: center;
}
.header-inner {
    display: flex; align-items: center;
    justify-content: space-between; width: 100%;
}

.site-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-h); text-decoration: none;
}
.logo-mark {
    width: 38px; height: 38px;
    position: relative; flex-shrink: 0;
}
.logo-mark::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--blue-mid);
}
.logo-mark::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: -4px; bottom: -8px;
    border-radius: 50%;
    background: var(--navy);
}
.header-logo-img { height: 44px; width: auto; display: block; }

.primary-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-list a {
    font-family: var(--font-h); font-weight: 600; font-size: 0.82rem;
    color: var(--navy); letter-spacing: 0.01em;
    transition: color var(--tr);
}
.nav-list a:hover { color: var(--orange); }
.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 9px 22px; border-radius: var(--radius-pill);
    transition: background var(--tr) !important;
}
.nav-cta:hover { background: var(--orange) !important; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--navy); border-radius: 2px; transition: var(--tr);
}

/* =============================================
    HERO
    ============================================= */
.hero {
    position: relative;
    height: calc(60vh + 68px); min-height: 548px;
    padding-top: 68px;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 41, 65, 0.88) 0%, rgba(26, 41, 65, 0.70) 10%, rgba(26, 41, 65, 0.20) 25%, rgba(26, 41, 65, 0.00) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 72px;
    padding-top: 0;
    align-self: flex-end;
}
.hero-headline {
    font-family: var(--font-h); font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    color: var(--white); line-height: 1.12;
    margin-bottom: 20px; text-transform: uppercase;
}
.hero-sub {
    font-size: 0.97rem; color: rgba(255,255,255,0.85);
    margin-bottom: 32px; line-height: 1.65;
}
.btn {
    display: inline-flex; align-items: center;
    padding: 13px 32px; border-radius: var(--radius-pill);
    font-family: var(--font-h); font-weight: 700; font-size: 0.88rem;
    cursor: pointer; border: none; transition: background var(--tr), transform var(--tr);
}
.btn-primary { background: var(--navy); color: var(--white); text-transform: uppercase; letter-spacing: 0.04em; }
.btn-primary:hover { background: var(--orange); transform: translateY(-2px); }

/* =============================================
    NUESTRA MIRADA
    ============================================= */
.nuestra-mirada { background: var(--white); }

.mirada-top {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 420px; overflow: hidden; position: relative;
    background: var(--white);
    padding-top: 30px;
}
.mirada-top-image {
    position: relative; background: var(--white);
    min-height: 420px; overflow: hidden;
}

.mirada-person-photo {
    position: absolute;
    right: 68px;
    top: 80px;
    height: 340px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px 10px 0 0;
    z-index: 2;
    display: block;
}

.elemento-mirada {
    position: absolute;
    right: 0px;
    width: 260px;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.css-ring, .css-ring::before, .css-ring::after { display: none; }

.mirada-top-text {
    padding: 56px 52px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; z-index: 3; background: var(--white);
}
.mirada-top-text p { font-size: 0.95rem; line-height: 1.85; color: var(--text); }

.mirada-bottom {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 360px;
}
.mirada-valores {
    background-image: url('../images/bg-valores.png');
    background-size: contain;
    background-position: left;
    background-repeat: round;
    padding-left: 56px;
    display: flex; flex-direction: column; justify-content: center; gap: 20px;
    position: relative; overflow: visible;
}

.valor-item { display: flex; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }

.valor-icon {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.valor-icon svg { width: 20px; height: 20px; fill: none; stroke: rgba(255,255,255,0.9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.valor-title {
    font-family: var(--font-h); font-weight: 700; font-size: 1.2rem;
    color: var(--white); margin-bottom: 3px;
}
.valor-item p { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.75); }

.mirada-bottom-image {
    overflow: hidden;
    align-content: center;
}
.mirada-bottom-img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    vertical-align: middle;
}

/* =============================================
    NUESTRO DIFERENCIAL
    ============================================= */
.diferencial {
    background: linear-gradient(to bottom, var(--white) 50%, #7b9fd4 50%);
    padding-bottom: 68px;
}
.diferencial-header { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.diferencial-lead { font-size: 0.95rem; color: var(--muted); line-height: 1.75; }

.diferencial-card {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: var(--navy);
    border-radius: var(--radius-pill);
    max-width: 780px;
    margin: 0 auto 0;
    padding: 40px 64px;
    gap: 0;
    position: relative;
    z-index: 1;
    --radius-pill: 250px;
}
.dif-item {
    flex: 1; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 0 32px;
    color: var(--white);
}
.dif-item + .dif-item { border-left: 1px solid rgba(255,255,255,0.15); }

.dif-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
}
.dif-icon img { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.dif-icon svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dif-label {
    font-family: var(--font-h); font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
}

.diferencial-descs {
    display: grid; grid-template-columns: repeat(3,1fr);
    max-width: 780px; margin: 0 auto; gap: 32px; text-align: center;
    padding: 40px 0 0;
    position: relative; z-index: 1;
}
.dif-desc p { font-size: 0.88rem; line-height: 1.7; color: var(--navy); }

/* =============================================
    CÓMO GENERAMOS VALOR
    ============================================= */
.valor-section {
    position: relative; padding: 76px 0 68px;
    background: var(--navy-mid);
}
.valor-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banner-seccion.jpg') center / cover no-repeat;
    z-index: 0;
}
.valor-section > .container { position: relative; z-index: 1; }

.valor-header { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.valor-section .section-title { color: var(--white); }
.valor-lead { font-size: 0.95rem; color: rgba(255,255,255,0.82); line-height: 1.75; }

.servicios-tabs { max-width: 840px; margin: 0 auto; }
.servicios-tab-nav {
    display: flex; flex-wrap: nowrap; gap: 10px;
    justify-content: center; margin-bottom: 28px;
    overflow-x: auto; padding-bottom: 4px;
}
.tab-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-pill);
    font-family: var(--font-h);
    font-weight: 600;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 22px;
    cursor: pointer;
    transition: all var(--tr);
    white-space: normal;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.3;
    min-width: 152px;
}
.tab-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white); }
.tab-btn.active { background: var(--white); border-color: var(--white); color: var(--navy); }

.servicios-tab-content {
    background: rgba(120,148,204,0.35);
    border: none;
    border-radius: var(--radius-pill);
    padding: 36px 52px;
    backdrop-filter: blur(4px);
}
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: 0.95rem; line-height: 1.88; color: rgba(255,255,255,0.90); }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* =============================================
    INTERACTUEMOS
    ============================================= */
.interactuemos { background: var(--white); }
.interactuemos-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
}
.interactuemos-image {
    overflow: hidden;
    position: relative;
    top: 100px;
}
.interactuemos-img {
    width: 45%;
    height: 80%;
    position: fixed;
    display: block;
    padding-top: 50px;
    right: 40%;
}

.interactuemos-content {
    padding: 64px 56px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: visible;
    background-image: url('../images/bg-interactuemos.png');
    background-size: contain;
    background-repeat: round;
}
.interactuemos-content::before,
.interactuemos-content::after { display: none; }

.interactuemos-content .section-title { color: var(--white); }
.interactuemos-content .section-divider { background: #E4E3C2; }
.contact-inner {
    position: relative;
    z-index: 1;
    padding-top: 75px;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.contact-row { display: flex; align-items: center; gap: 14px; }

.c-icon {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%; background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}
.c-icon svg { width: 16px; height: 16px; fill: none; stroke: rgba(255,255,255,0.9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-row a, .contact-row span { font-size: 0.92rem; color: rgba(255,255,255,0.9); line-height: 1.5; }
.contact-row a:hover { color: var(--orange); }

/* =============================================
    FOOTER
    ============================================= */
.site-footer {
    background: var(--white);
    border-top: 1px solid #e8eef6;
    padding: 28px 0;
    background-color: #7b9fd46e;
    margin-top: 50px;
}
.footer-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: block; text-decoration: none; }
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-copy { font-size: 0.78rem; color: var(--muted); text-align: right; }

/* =============================================
    FADE-IN ANIMATION
    ============================================= */
.fade-section { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-section.in-view { opacity: 1; transform: translateY(0); }

.dif-desc-mobile { display: none; }
@media (max-width: 768px) {
    .dif-desc-mobile { display: block; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .mirada-top, .mirada-bottom, .interactuemos-inner { grid-template-columns: 1fr; }
    .mirada-top { min-height: 320px; overflow: hidden; }
    .mirada-top-image { min-height: 320px; height: 320px; overflow: hidden; }
    .mirada-person-photo { width: 70%; height: 280px; bottom: 0; }
    .css-ring { width: 220px; height: 220px; right: 40px; top: -40px; }
    .mirada-top-text { padding: 48px 36px; background: var(--white); }
    .mirada-bottom-image { height: 260px; order: -1; }
    .mirada-valores { padding: 44px 36px; }
    .interactuemos-image { display: none; }
    .interactuemos-content { padding: 48px 36px; }
    .diferencial-card { border-radius: 24px; padding: 28px 24px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; top: 68px; left: 0; right: 0;
        background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-120%); opacity: 0;
        transition: transform var(--tr), opacity var(--tr); z-index: 199;
    }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; }
    .primary-nav .nav-list { flex-direction: column; gap: 0; padding: 16px 0; }
    .primary-nav .nav-list li { width: 100%; }
    .primary-nav .nav-list a { display: block; padding: 13px 28px; }
    .primary-nav .nav-cta { margin: 10px 28px; border-radius: var(--radius-pill); text-align: center; display: block; }

    .hero-content { max-width: 100%; }
    .hero-headline { font-size: clamp(1.5rem, 5vw, 2rem); }

    .diferencial-card { flex-direction: column; max-width: 320px; }
    .dif-item + .dif-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
    .diferencial-descs { grid-template-columns: 1fr; max-width: 400px; display: none; }

    .servicios-tab-nav { gap: 8px; }
    .tab-btn { font-size: 0.78rem; padding: 8px 14px; }

    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-copy { text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-headline { font-size: 1.5rem; }
    .hero-content { align-self: center; }
    .mirada-valores { padding: 60px 15px; }
    .interactuemos-content { padding: 40px 24px; }
    .servicios-tab-nav { flex-direction: column; align-items: stretch; }
    .tab-btn { text-align: center; }
    .servicios-tab-content { padding: 28px 24px; }
}

@media (max-width: 768px) {
    .dif-item+.dif-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 20px;
        margin-top: 20px;
    }

    .valor-item p {
        font-size: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.75);
    }

    .valor-title {
        font-family: var(--font-h);
        font-weight: 700;
        font-size: 1rem;
        color: var(--white);
        margin-bottom: 3px;
    }

    .interactuemos-content {
        padding: 64px 56px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: visible;
        background-image: url(../images/bg-interactuemos.png);
        background-size: cover;
    }
}

@media (max-width: 480px) {
    .mirada-valores {
        padding: 150px 15px;
    }
}
