:root {
    --navy-950: #071D33;
    --navy-900: #0B2D4F;
    --navy-800: #123F68;
    --blue-700: #164B7A;
    --blue-100: #EAF1F6;
    --blue-050: #F5F8FA;
    --gold-700: #A9791F;
    --gold-600: #C9972F;
    --gold-400: #E8C66A;
    --gold-100: #F8F0DD;
    --white: #FFFFFF;
    --soft: #F6F7F8;
    --ink-900: #22303D;
    --ink-700: #53606C;
    --ink-500: #7B8792;
    --line: #DDE3E8;
    --container: 1180px;
    --shadow: 0 18px 46px rgba(11, 45, 79, .10);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 98px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--white);
    color: var(--ink-900);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(201, 151, 47, .35);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 9999;
    padding: 10px 14px;
    background: white;
    color: var(--navy-900);
    transform: translateY(-160%);
    border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
    background: var(--navy-950);
    color: rgba(255,255,255,.82);
    font-size: .82rem;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.topbar p { margin: 0; }
.topbar a {
    color: var(--gold-400);
    font-weight: 700;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(7,29,51,.03);
}

.nav-wrap {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-name {
    min-width: 0;
    display: grid;
    line-height: 1.05;
}

.brand-name strong {
    color: var(--navy-900);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
}

.brand-name span {
    margin-top: 5px;
    color: var(--gold-700);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 11px 12px;
    color: var(--ink-700);
    font-size: .91rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--navy-900);
    border-bottom-color: var(--gold-600);
}

.nav-contact {
    margin-left: 10px;
    padding: 11px 18px;
    border: 1px solid var(--navy-900);
    border-radius: 999px;
    color: var(--navy-900);
}

.nav-contact:hover,
.nav-contact.is-active {
    color: white;
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy-900);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #0B2D4F 0 55%, #123F68 55% 100%);
    color: white;
}

.hero-accent {
    position: absolute;
    right: -140px;
    top: -170px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(232,198,106,.15);
    border-radius: 50%;
}
.hero-accent::before,
.hero-accent::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232,198,106,.10);
}
.hero-accent::before { inset: 70px; }
.hero-accent::after { inset: 145px; }

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
    padding-block: 76px;
}

.eyebrow,
.section-label,
.card-eyebrow {
    display: inline-block;
    color: var(--gold-600);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold-400); }

.hero h1,
.section-heading h2,
.service-copy h2 {
    overflow-wrap: anywhere;
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 22px;
    color: white;
    font-size: clamp(2.8rem, 5.4vw, 5rem);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.hero-copy > p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: clamp(1rem, 1.4vw, 1.11rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 49px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
    background: var(--gold-600);
    color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-400); }

.btn-outline {
    color: white;
    border-color: rgba(255,255,255,.46);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.68);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.14);
}
.hero-trust span {
    position: relative;
    padding-left: 16px;
    color: rgba(255,255,255,.68);
    font-size: .84rem;
    font-weight: 700;
}
.hero-trust span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gold-400);
}

.hero-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 32px);
    background: white;
    color: var(--ink-900);
    border-top: 5px solid var(--gold-600);
    box-shadow: 0 24px 58px rgba(0,0,0,.18);
}
.hero-card h2 {
    margin: 8px 0 24px;
    color: var(--navy-900);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 2.6vw, 2rem);
    line-height: 1.18;
}

.focus-list { display: grid; }
.focus-list article {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.focus-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #E3D4AA;
    border-radius: 50%;
    color: var(--gold-700);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-weight: 700;
}
.focus-list strong { color: var(--navy-900); }
.focus-list p {
    margin: 4px 0 0;
    color: var(--ink-500);
    font-size: .9rem;
}

.stats-strip {
    background: white;
    border-bottom: 1px solid var(--line);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-grid > div {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 30px;
    border-right: 1px solid var(--line);
}
.stats-grid > div:first-child { padding-left: 0; }
.stats-grid > div:last-child {
    padding-right: 0;
    border-right: 0;
}
.stats-grid strong {
    flex: 0 0 auto;
    color: var(--gold-700);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}
.stats-grid span {
    color: var(--navy-900);
    font-weight: 800;
}

.section { padding-block: clamp(72px, 8vw, 100px); }
.section-white { background: white; }
.section-soft { background: var(--soft); }

.two-col {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(42px, 6vw, 78px);
    align-items: start;
}

.section-heading h2 {
    margin: 10px 0 18px;
    color: var(--navy-900);
    font-size: clamp(2.25rem, 4vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}
.section-heading > p {
    max-width: 720px;
    margin: 0;
    color: var(--ink-700);
}
.section-heading .lead { font-size: 1.12rem; }
.section-heading.centered {
    max-width: 780px;
    margin: 0 auto 52px;
    text-align: center;
}

.content-panel {
    min-width: 0;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold-600);
    background: white;
    box-shadow: var(--shadow);
}
.content-panel > p {
    margin: 0;
    color: var(--ink-700);
    font-size: 1.03rem;
}
.panel-highlight {
    display: grid;
    gap: 5px;
    margin-top: 28px;
    padding: 20px 22px;
    background: var(--blue-050);
    border: 1px solid #E5EBEF;
}
.panel-highlight span {
    color: var(--gold-700);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.panel-highlight strong { color: var(--navy-900); }

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.mission-card {
    position: relative;
    min-width: 0;
    padding: clamp(28px, 3vw, 38px);
    background: white;
    border: 1px solid var(--line);
}
.mission-card::after {
    content: "";
    position: absolute;
    left: 38px;
    bottom: 0;
    width: 62px;
    height: 3px;
    background: var(--gold-600);
}
.mission-number {
    display: block;
    margin-bottom: 28px;
    color: #C6CDD3;
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}
.mission-card h3 {
    margin: 8px 0 16px;
    color: var(--navy-900);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 2rem;
}
.mission-card p {
    margin: 0;
    color: var(--ink-700);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.value-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: white;
    transition: transform .18s ease, box-shadow .18s ease;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.value-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}
.value-body { padding: 24px; }
.value-number {
    display: block;
    margin-bottom: 18px;
    color: var(--gold-700);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}
.value-card h3 {
    margin: 0 0 12px;
    color: var(--navy-900);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
    line-height: 1.25;
}
.value-card p {
    margin: 0;
    color: var(--ink-500);
    font-size: .92rem;
}

.service-section {
    background: var(--navy-950);
    color: white;
}
.service-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(42px, 6vw, 76px);
    align-items: center;
}
.section-label-gold { color: var(--gold-400); }
.service-copy h2 {
    margin: 12px 0 20px;
    color: white;
    font-size: clamp(2.35rem, 4vw, 3.8rem);
    line-height: 1.08;
}
.service-copy p {
    margin: 0;
    color: rgba(255,255,255,.77);
    font-size: 1.04rem;
}
.text-link {
    display: inline-flex;
    gap: 10px;
    margin-top: 28px;
    color: var(--gold-400);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(232,198,106,.45);
}
.service-cards {
    display: grid;
    gap: 14px;
}
.service-cards article {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    background: white;
    color: var(--ink-900);
    border-left: 4px solid var(--gold-600);
}
.service-cards article > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #E5D4A8;
    border-radius: 50%;
    color: var(--gold-700);
    font-weight: 800;
}
.service-cards h3 {
    margin: 0 0 7px;
    color: var(--navy-900);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.24rem;
}
.service-cards p {
    margin: 0;
    color: var(--ink-500);
    font-size: .93rem;
}

.contact-section {
    padding-block: clamp(72px, 8vw, 96px);
    background: linear-gradient(180deg, var(--gold-100), #FBFAF7);
    border-top: 1px solid #EADDBE;
}
.contact-heading {
    max-width: 720px;
    margin-bottom: 38px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.contact-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 28px;
    background: white;
    border: 1px solid #E7D8B4;
    box-shadow: 0 14px 34px rgba(11,45,79,.07);
}
.contact-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    border-radius: 50%;
    color: var(--navy-900);
    background: var(--gold-100);
    font-weight: 900;
}
.whatsapp-mark {
    color: white;
    background: #178C55;
    font-size: .78rem;
}
.contact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--gold-700);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.contact-card strong {
    overflow-wrap: anywhere;
    color: var(--navy-900);
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
}
.contact-card a,
.contact-disabled {
    margin-top: auto;
    padding-top: 22px;
    font-weight: 800;
}
.contact-card a {
    color: var(--blue-700);
    text-decoration: none;
}
.contact-card a:hover { text-decoration: underline; }
.contact-disabled {
    color: var(--ink-500);
    font-size: .9rem;
}

.site-footer {
    background: var(--navy-950);
    color: white;
    border-top: 4px solid var(--gold-600);
}
.footer-top {
    min-height: 136px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.footer-copy {
    display: grid;
    gap: 4px;
}
.footer-copy strong {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
    font-size: 1.02rem;
}
.footer-copy span {
    color: rgba(255,255,255,.56);
    font-size: .82rem;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-nav a {
    color: rgba(255,255,255,.72);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.footer-nav a:hover { color: var(--gold-400); }
.footer-bottom {
    padding-block: 18px 24px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.48);
    font-size: .82rem;
}

.floating-whatsapp {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 9px 16px 9px 9px;
    border-radius: 999px;
    background: #178C55;
    color: white;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    text-decoration: none;
    font-size: .9rem;
}
.floating-whatsapp span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.17);
    font-size: .7rem;
    font-weight: 900;
}
.floating-whatsapp-disabled {
    background: #64727E;
}

@media (max-width: 1100px) {
    .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .hero-grid,
    .two-col,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        gap: 44px;
        padding-block: 66px;
    }

    .hero-card { max-width: 680px; }
    .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .topbar { display: none; }
    .nav-wrap { min-height: 78px; }
    .brand-logo {
        width: 58px;
        height: 58px;
    }
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        inset: 78px 0 auto;
        max-height: calc(100dvh - 78px);
        overflow-y: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 20px 22px;
        background: white;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 14px 30px rgba(10,42,71,.12);
    }
    .main-nav.is-open { display: flex; }

    .nav-link {
        padding: 14px 8px;
        border-bottom: 1px solid var(--line);
    }
    .nav-link:hover,
    .nav-link.is-active {
        border-bottom-color: var(--line);
    }
    .nav-contact {
        margin: 12px 0 0;
        text-align: center;
        border: 1px solid var(--navy-900);
        border-radius: 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding-block: 16px;
    }
    .stats-grid > div,
    .stats-grid > div:first-child,
    .stats-grid > div:last-child {
        min-height: auto;
        padding: 17px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .stats-grid > div:last-child { border-bottom: 0; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-card { min-height: 210px; }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand-name strong { font-size: .9rem; }
    .brand-name span { font-size: .67rem; }

    .hero {
        background: linear-gradient(180deg, #0B2D4F 0 64%, #123F68 64% 100%);
    }

    .hero-grid { padding-block: 52px; }
    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
        line-height: 1.02;
    }
    .hero-copy > p { font-size: 1rem; }

    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn { width: 100%; }

    .hero-card { padding: 23px; }

    .section-heading.centered {
        text-align: left;
        margin-bottom: 36px;
    }

    .section-heading h2,
    .service-copy h2 {
        font-size: clamp(2.15rem, 10vw, 2.8rem);
    }

    .content-panel,
    .mission-card { padding: 25px 22px; }

    .values-grid { grid-template-columns: 1fr; }

    .service-cards article {
        grid-template-columns: 1fr;
    }

    .footer-top {
        min-height: auto;
        padding-block: 42px;
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .floating-whatsapp b { display: none; }
    .floating-whatsapp {
        width: 54px;
        height: 54px;
        min-height: 54px;
        padding: 10px;
        justify-content: center;
    }
    .floating-whatsapp span {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 420px) {
    .brand-name { display: none; }
    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .hero h1 { font-size: clamp(2.2rem, 12vw, 3rem); }

    .focus-list article {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
    }
    .focus-icon {
        width: 40px;
        height: 40px;
        font-size: .85rem;
    }

    .footer-nav { grid-template-columns: 1fr; }
}


/* ===== TIPOGRAFÍA INSTITUCIONAL V6 ===== */
body {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.main-nav,
.btn,
.eyebrow,
.section-label,
.card-eyebrow,
.contact-label,
.topbar,
.footer-nav {
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.hero h1,
.section-heading h2,
.service-copy h2,
.hero-card h2,
.mission-card h3,
.value-card h3,
.brand-name strong,
.footer-copy strong,
.contact-card strong {
    font-family: "Merriweather", Georgia, "Times New Roman", serif;
}

.hero h1 {
    font-weight: 900;
}

.section-heading h2,
.service-copy h2,
.hero-card h2,
.mission-card h3,
.value-card h3 {
    font-weight: 700;
}

.nav-link,
.btn,
.section-label,
.eyebrow,
.card-eyebrow {
    font-weight: 700;
}


/* ===== V7: BOTÓN FLOTANTE DE WHATSAPP SOLO ÍCONO ===== */
.floating-whatsapp,
.floating-whatsapp:visited {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 1200;
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #159447;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.03);
    background: #12823e;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    display: block;
}

.floating-whatsapp > span,
.floating-whatsapp > b {
    display: none !important;
}

.floating-whatsapp-disabled {
    background: #6f7c86;
}

@media (max-width: 640px) {
    .floating-whatsapp,
    .floating-whatsapp:visited {
        width: 54px;
        height: 54px;
        min-height: 54px;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        padding: 0;
    }

    .floating-whatsapp svg {
        width: 30px;
        height: 30px;
    }
}


/* =========================================================
   V9 — WHATSAPP CORREGIDO + RESPONSIVE POR ANCHO Y ALTURA
   ========================================================= */

/* Icono de WhatsApp dentro de la tarjeta de contacto */
.contact-icon.whatsapp-mark {
    overflow: hidden;
    padding: 9px;
    background: #159447;
}
.contact-icon.whatsapp-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Botón flotante: icono real, sin texto WA */
.floating-whatsapp,
.floating-whatsapp:visited {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 1200;
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 11px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: #159447 !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.03);
    background: #117c3c !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.24);
}
.floating-whatsapp-disabled {
    background: #6f7c86 !important;
}
.floating-whatsapp img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Elimina cualquier texto heredado de versiones anteriores */
.floating-whatsapp > span,
.floating-whatsapp > b {
    display: none !important;
}

/* Escritorio: secciones aprovechan la altura disponible, sin recortar contenido */
@media (min-width: 981px) {
    #nosotros,
    #mision-vision,
    #valores,
    #servicios,
    #contacto {
        min-height: calc(100svh - 90px);
        display: flex;
        align-items: center;
    }

    #nosotros > .container,
    #mision-vision > .container,
    #valores > .container,
    #servicios > .container,
    #contacto > .container {
        width: min(calc(100% - 40px), var(--container));
    }
}

/* Laptop/escritorio con poca altura */
@media (min-width: 981px) and (max-height: 820px) {
    html { scroll-padding-top: 82px; }

    .nav-wrap { min-height: 78px; }
    .brand-logo { width: 58px; height: 58px; }

    .section,
    .service-section,
    .contact-section {
        padding-block: clamp(30px, 4.5vh, 50px);
    }

    .section-heading.centered { margin-bottom: clamp(20px, 3vh, 30px); }

    .section-heading h2 {
        font-size: clamp(2.05rem, 3vw, 2.85rem);
        margin-top: 5px;
        margin-bottom: 9px;
    }

    .section-heading > p,
    .section-heading .lead {
        font-size: .93rem;
        line-height: 1.45;
    }

    .mission-grid { gap: 16px; }
    .mission-card { padding: 22px 26px 24px; }
    .mission-number { margin-bottom: 9px; font-size: 1.45rem; }
    .mission-card h3 { margin: 4px 0 9px; font-size: 1.5rem; }
    .mission-card p { font-size: .84rem; line-height: 1.43; }

    .values-grid { gap: 13px; }
    .value-card img { aspect-ratio: 16 / 7; }
    .value-body { padding: 14px 16px 17px; }
    .value-number { margin-bottom: 6px; font-size: .98rem; }
    .value-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
    .value-card p { font-size: .79rem; line-height: 1.4; }

    .service-grid { gap: 38px; }
    .service-copy h2 {
        margin: 7px 0 12px;
        font-size: clamp(2.15rem, 3.35vw, 3rem);
        line-height: 1.04;
    }
    .service-copy p { font-size: .9rem; line-height: 1.46; }
    .service-cards { gap: 9px; }
    .service-cards article {
        padding: 14px 17px;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 13px;
    }
    .service-cards article > span { width: 40px; height: 40px; }
    .service-cards h3 { margin-bottom: 3px; font-size: 1.05rem; }
    .service-cards p { font-size: .81rem; line-height: 1.4; }

    .contact-heading { margin-bottom: 21px; }
    .contact-grid { gap: 13px; }
    .contact-card {
        min-height: 170px;
        padding: 18px 20px;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 13px;
    }
    .contact-card strong { font-size: 1.1rem; }
    .contact-card a,
    .contact-disabled {
        padding-top: 12px;
        font-size: .84rem;
    }
}

/* Pantallas todavía más bajas */
@media (min-width: 981px) and (max-height: 680px) {
    .section,
    .service-section,
    .contact-section {
        padding-block: 24px;
    }

    .section-heading.centered { margin-bottom: 16px; }
    .section-heading h2 { font-size: 2.15rem; }

    .mission-card { padding: 16px 20px 19px; }
    .mission-card p { font-size: .77rem; line-height: 1.37; }

    .value-card img { aspect-ratio: 16 / 6; }
    .value-body { padding: 11px 14px 13px; }
    .value-card p { font-size: .73rem; }

    .service-copy h2 { font-size: 2.3rem; }
    .service-cards article { padding: 11px 15px; }
    .service-cards p { font-size: .76rem; }
}

/* Tablet: contenido fluido */
@media (min-width: 641px) and (max-width: 980px) {
    #nosotros,
    #mision-vision,
    #valores,
    #servicios,
    #contacto {
        min-height: auto;
        display: block;
    }

    .section,
    .service-section,
    .contact-section {
        padding-block: 64px;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid .contact-whatsapp {
        grid-column: 1 / -1;
    }
}

/* Móvil: una sola columna, sin alturas forzadas */
@media (max-width: 640px) {
    #nosotros,
    #mision-vision,
    #valores,
    #servicios,
    #contacto {
        min-height: auto;
        display: block;
    }

    .section,
    .service-section,
    .contact-section {
        padding-block: 56px;
    }

    .floating-whatsapp,
    .floating-whatsapp:visited {
        width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        padding: 10px !important;
    }
}


/* =========================================================
   V10 — HERO / INICIO TOTALMENTE RESPONSIVE
   Ajusta ancho Y altura disponible del navegador.
   ========================================================= */

/* Escritorio normal */
@media (min-width: 981px) {
    .hero-grid {
        min-height: calc(100svh - 128px);
        padding-block: clamp(34px, 6vh, 70px);
        gap: clamp(34px, 5vw, 68px);
    }

    .hero-copy,
    .hero-card {
        min-width: 0;
    }
}

/* Laptop / escritorio con poca altura */
@media (min-width: 981px) and (max-height: 820px) {
    .hero-grid {
        min-height: calc(100svh - 116px);
        padding-block: 28px;
        gap: 36px;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 4vw, 3.85rem);
        line-height: .98;
        margin: 10px 0 14px;
        max-width: 620px;
    }

    .hero-copy > p {
        max-width: 620px;
        font-size: .92rem;
        line-height: 1.45;
    }

    .hero-actions {
        margin-top: 18px;
    }

    .hero-actions .btn {
        min-height: 44px;
        padding: 10px 16px;
        font-size: .88rem;
    }

    .hero-trust {
        margin-top: 18px;
        padding-top: 13px;
        gap: 7px 14px;
    }

    .hero-trust span {
        font-size: .76rem;
    }

    .hero-card {
        padding: 20px 24px;
    }

    .hero-card h2 {
        margin: 5px 0 12px;
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .focus-list article {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 11px 0;
    }

    .focus-icon {
        width: 40px;
        height: 40px;
        font-size: .85rem;
    }

    .focus-list strong {
        font-size: .92rem;
    }

    .focus-list p {
        margin-top: 2px;
        font-size: .78rem;
        line-height: 1.36;
    }
}

/* Portátiles con muy poca altura: ahorra la barra superior y compacta más */
@media (min-width: 981px) and (max-height: 720px) {
    .topbar {
        display: none;
    }

    .nav-wrap {
        min-height: 72px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    html {
        scroll-padding-top: 74px;
    }

    .hero-grid {
        min-height: calc(100svh - 72px);
        padding-block: 20px;
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 3.7vw, 3.35rem);
        margin: 7px 0 11px;
        max-width: 560px;
    }

    .hero-copy > p {
        font-size: .84rem;
        line-height: 1.4;
    }

    .eyebrow,
    .card-eyebrow {
        font-size: .68rem;
    }

    .hero-actions {
        margin-top: 14px;
        gap: 8px;
    }

    .hero-actions .btn {
        min-height: 40px;
        padding: 8px 14px;
        font-size: .82rem;
    }

    .hero-trust {
        margin-top: 12px;
        padding-top: 10px;
    }

    .hero-trust span {
        font-size: .7rem;
    }

    .hero-card {
        padding: 16px 20px;
        border-top-width: 4px;
    }

    .hero-card h2 {
        font-size: 1.38rem;
        margin: 3px 0 8px;
    }

    .focus-list article {
        padding: 8px 0;
    }

    .focus-icon {
        width: 36px;
        height: 36px;
        font-size: .78rem;
    }

    .focus-list strong {
        font-size: .86rem;
    }

    .focus-list p {
        font-size: .72rem;
        line-height: 1.3;
    }
}

/* Pantallas extremadamente bajas: prioriza que todo el hero entre visible */
@media (min-width: 981px) and (max-height: 620px) {
    .hero-grid {
        padding-block: 14px;
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 3.25vw, 2.95rem);
    }

    .hero-copy > p {
        font-size: .79rem;
    }

    .hero-trust {
        display: none;
    }

    .hero-card {
        padding: 13px 18px;
    }

    .hero-card h2 {
        font-size: 1.25rem;
    }

    .focus-list article {
        padding: 6px 0;
    }

    .focus-list p {
        font-size: .68rem;
    }
}

/* Tablet: hero fluido */
@media (min-width: 641px) and (max-width: 980px) {
    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 54px;
        gap: 34px;
    }

    .hero h1 {
        max-width: 760px;
        font-size: clamp(2.9rem, 7vw, 4.4rem);
    }

    .hero-card {
        width: 100%;
        max-width: none;
    }
}

/* Móvil */
@media (max-width: 640px) {
    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 44px;
        gap: 28px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.35rem);
        line-height: 1.01;
        margin: 12px 0 16px;
        max-width: 100%;
    }

    .hero-copy > p {
        font-size: .95rem;
        line-height: 1.5;
    }

    .hero-trust {
        margin-top: 22px;
    }

    .hero-card {
        width: 100%;
        max-width: none;
        padding: 22px;
    }
}

/* Celulares muy pequeños */
@media (max-width: 420px) {
    .hero-grid {
        padding-block: 34px;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 11vw, 2.8rem);
    }

    .hero-actions {
        margin-top: 22px;
    }

    .hero-card {
        padding: 18px;
    }
}


/* =========================================================
   V11 — AJUSTE FINO DEL ÍCONO DE WHATSAPP
   Evita que el pictograma se vea recortado en los bordes.
   ========================================================= */

/* Tarjeta de contacto */
.contact-icon.whatsapp-mark {
    padding: 8px;
    overflow: hidden;
}
.contact-icon.whatsapp-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.92);
    transform-origin: center;
}

/* Botón flotante */
.floating-whatsapp,
.floating-whatsapp:visited {
    overflow: hidden;
    padding: 0 !important;
}

.floating-whatsapp img {
    width: 62% !important;
    height: 62% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    transform: scale(0.94);
    transform-origin: center;
}

@media (max-width: 640px) {
    .floating-whatsapp img {
        width: 60% !important;
        height: 60% !important;
    }
}


/* =========================================================
   V12 — WHATSAPP SIN DOBLE CÍRCULO / SIN BORDE EXTERNO
   Se usa directamente el SVG transparente.
   ========================================================= */

/* Ícono de WhatsApp en tarjeta */
.contact-icon.whatsapp-mark {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.contact-icon.whatsapp-mark img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    transform: none !important;
}

/* Botón flotante: sin círculo verde creado por CSS.
   Solo se muestra el SVG real. */
.floating-whatsapp,
.floating-whatsapp:visited {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: grid !important;
    place-items: center !important;
}

.floating-whatsapp:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-2px) scale(1.04) !important;
}

.floating-whatsapp img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
    transform: none !important;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.18));
}

@media (max-width: 640px) {
    .floating-whatsapp,
    .floating-whatsapp:visited {
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
    }

    .floating-whatsapp img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
}


/* =========================================================
   V13 — BOTÓN FLOTANTE WHATSAPP ESTILO REFERENCIA
   Círculo verde limpio con icono blanco al centro.
   ========================================================= */

.floating-whatsapp,
.floating-whatsapp:visited {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
    overflow: visible !important;
    text-decoration: none;
    transform: none;
}

.floating-whatsapp::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.28);
    pointer-events: none;
}

.floating-whatsapp:hover {
    background: #20C55E !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.22) !important;
    transform: translateY(-2px) scale(1.03) !important;
}

.floating-whatsapp-disabled {
    background: #90A4AE !important;
}

.floating-whatsapp img {
    position: relative;
    z-index: 1;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
}

@media (max-width: 640px) {
    .floating-whatsapp,
    .floating-whatsapp:visited {
        width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .floating-whatsapp::before {
        inset: 6px;
    }

    .floating-whatsapp img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
}


/* =========================================================
   V14 — WHATSAPP LIMPIO Y UNIFICADO
   - Sin aros dobles
   - Sin bordes extra
   - Misma línea visual en tarjeta y flotante
   ========================================================= */

/* Ícono de la tarjeta de contacto */
.contact-icon.whatsapp-mark {
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    display: grid !important;
    place-items: center !important;
    margin-bottom: 18px !important;
}

.contact-icon.whatsapp-mark img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    display: block !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
}

/* Botón flotante */
.floating-whatsapp,
.floating-whatsapp:visited {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: grid !important;
    place-items: center !important;
    text-decoration: none !important;
}

.floating-whatsapp::before,
.floating-whatsapp::after {
    content: none !important;
    display: none !important;
}

.floating-whatsapp:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}

.floating-whatsapp img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    display: block !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)) !important;
    transform: none !important;
}

@media (max-width: 640px) {
    .contact-icon.whatsapp-mark {
        margin-bottom: 16px !important;
    }

    .contact-icon.whatsapp-mark img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .floating-whatsapp,
    .floating-whatsapp:visited {
        width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .floating-whatsapp img {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }
}


/* =========================================================
   V15 — CONTACTO MÁS LIMPIO
   - Se elimina la tarjeta redundante de WhatsApp
   - Se eliminan "Llamar ahora" y "Enviar correo"
   - El correo se muestra en una sola línea
   ========================================================= */

.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.contact-card {
    min-height: 190px !important;
    justify-content: flex-start !important;
}

.contact-card strong {
    margin-top: 4px;
}

.contact-card--phone strong {
    font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
}

.contact-card--email strong {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: clamp(1rem, 1.55vw, 1.35rem) !important;
    line-height: 1.25 !important;
}

.contact-card a,
.contact-disabled {
    display: none !important;
}

@media (max-width: 980px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-card--email strong {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 1.08rem !important;
    }
}

@media (min-width: 981px) and (max-height: 820px) {
    .contact-card {
        min-height: 155px !important;
    }

    .contact-card--email strong {
        font-size: clamp(.95rem, 1.4vw, 1.15rem) !important;
    }
}


/* =========================================================
   V16 — SECCIÓN VALORES CON FOTOGRAFÍAS DEL USUARIO
   ========================================================= */

.value-card {
    border: 1px solid var(--line);
    background: #fff;
}

.value-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--line);
    background: #f3f4f6;
}

.value-body {
    min-height: 168px;
}

@media (min-width: 981px) and (max-height: 820px) {
    .value-card img {
        aspect-ratio: 16 / 8;
    }

    .value-body {
        min-height: 145px;
    }
}

@media (max-width: 980px) {
    .value-card img {
        aspect-ratio: 16 / 9;
    }

    .value-body {
        min-height: auto;
    }
}
