/* ════════════════════════════════════════
   RESET & TOKENS
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Brand palette */
    --ink:        #07101C;
    --ink-2:      #0D1E2E;
    --ink-3:      #162C3F;
    --green:      #275E45;
    --green-mid:  #33785A;
    --green-hi:   #4A9E7C;
    --green-pale: rgba(42,96,72,.08);
    --gold:       #A97A22;
    --gold-hi:    #C8993A;
    --white:      #FFFFFF;
    --stone:      #F6F4F0;
    --border:     #E6E2DA;
    --text:       #14202C;
    --body:       #485766;
    --light:      #ECE8E1;
    --muted:      rgba(236,232,225,.55);

    /* Typography */
    --serif: 'Outfit', system-ui, sans-serif;
    --sans:  'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --pad: 96px 0;
    --max: 1200px;
    --r:   4px;
    --rl:  8px;
    --ease: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 36px;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* ════════════════════════════════════════
   TYPOGRAPHY HELPERS
════════════════════════════════════════ */
.eyebrow {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--green);
}

.h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.h2 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.h3 {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 1.8vw, 1.55rem);
    font-weight: 600;
    line-height: 1.25;
}

/* ════════════════════════════════════════
   KEYFRAME ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ════════════════════════════════════════
   BUTTONS — Enhanced
════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: var(--sans);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: none;
    cursor: pointer;
    border-radius: var(--r);
    transition: all .28s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .3s;
}
.btn:hover::after { opacity: 1; animation: shimmer .7s ease; }

.btn-green {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 2px 14px rgba(39,94,69,.25);
}
.btn-green:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(39,94,69,.42);
}
.btn-green:active { transform: translateY(0); }

.btn-gold {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 2px 14px rgba(169,122,34,.3);
}
.btn-gold:hover {
    background: var(--gold-hi);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(169,122,34,.45);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,.38);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.75);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
}
.btn-outline:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(39,94,69,.25);
}

.btn-wa {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 2px 14px rgba(37,211,102,.28);
}
.btn-wa:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(37,211,102,.42);
}

/* ════════════════════════════════════════
   GOLD ACCENTS — dorado en más elementos
════════════════════════════════════════ */
.gold-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 18px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   NAV
════════════════════════════════════════ */
#nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background var(--ease), box-shadow var(--ease);
}

#nav.sticky {
    background: rgba(7,16,28,.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 32px rgba(0,0,0,.45);
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 36px;
    height: 90px;
}

/* ── LOGO AREA: tall, prominent ── */
.nav-logo {
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 76px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    font-size: .84rem;
    color: rgba(255,255,255,.72);
    transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.burger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 6px;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Dark gradient overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(7,16,28,.94) 0%,
            rgba(7,16,28,.82) 45%,
            rgba(39,94,69,.22) 100%);
}

/* Subtle grain */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .35;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-body {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 100px 36px 90px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39,94,69,.28);
    border: 1px solid rgba(74,158,124,.38);
    color: var(--green-hi);
    padding: 6px 16px;
    border-radius: 2px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

#hero h1 { color: var(--light); max-width: 720px; margin-bottom: 22px; }

#hero h1 em {
    font-style: normal;
    color: var(--gold-hi);
    position: relative;
}

.hero-lead {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.78;
    max-width: 560px;
    margin-bottom: 42px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
}

.hero-proof {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    font-weight: 500;
    color: rgba(236,232,225,.88);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 10px 18px;
    backdrop-filter: blur(6px);
    transition: background .2s, border-color .2s;
}
.proof-item:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}

.proof-item svg { color: var(--gold-hi); flex-shrink: 0; }

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
#stats {
    background: var(--ink-2);
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
}

.stat-cell {
    padding: 42px 36px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.07);
}
.stat-cell:last-child { border-right: none; }

.stat-n {
    font-family: var(--serif);
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--gold-hi);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-n sup { color: var(--green-hi); font-size: 2rem; vertical-align: super; }

.stat-lbl {
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
}
.stat-sub { font-size: .78rem; color: rgba(255,255,255,.38); margin-top: 5px; }

/* ════════════════════════════════════════
   SECTION GENERIC
════════════════════════════════════════ */
section { padding: var(--pad); }

.sec-head { margin-bottom: 56px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head p { color: var(--body); font-size: 1.02rem; margin-top: 14px; line-height: 1.78; }

.sec-head.center { text-align: center; }
.sec-head.center p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════
   WHAT WE DO — 2-col
════════════════════════════════════════ */
#que-hacemos { background: var(--stone); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-col .eyebrow { margin-bottom: 14px; }
.content-col h2 { margin-bottom: 18px; }
.content-col > p { color: var(--body); font-size: .97rem; line-height: 1.78; }

.feat-list { list-style: none; margin: 30px 0 38px; }

.feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.feat-list li:last-child { border-bottom: none; }

.fi {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--green);
    margin-top: 2px;
}

.feat-list strong { font-weight: 500; display: block; margin-bottom: 2px; font-size: .9rem; }
.feat-list span { font-size: .82rem; color: var(--body); }

/* Panel de áreas de asesoría (reemplaza fotos de productos) */
.focus-panel {
    background: var(--ink);
    border-radius: var(--rl);
    padding: 44px 40px;
    color: var(--light);
    position: relative;
    overflow: hidden;
}
.focus-panel::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39,94,69,.22) 0%, transparent 70%);
    pointer-events: none;
}
.focus-panel .eyebrow { color: var(--green-hi); margin-bottom: 14px; position: relative; }
.focus-panel h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 26px;
    position: relative;
}
.focus-list { list-style: none; position: relative; }
.focus-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .92rem;
    color: rgba(236,232,225,.82);
}
.focus-list li:last-child { border-bottom: none; }
.focus-list .num {
    font-family: var(--serif);
    font-weight: 800;
    font-size: .85rem;
    color: var(--gold-hi);
    min-width: 26px;
}
.focus-note {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem;
    color: rgba(236,232,225,.5);
    line-height: 1.65;
    position: relative;
}

/* ════════════════════════════════════════
   SOLUTIONS GRID
════════════════════════════════════════ */
#soluciones { background: var(--white); }

.sols-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    overflow: hidden;
}

.sol-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--ease);
    border-bottom: 3px solid transparent;
}

.sol-card:hover { background: var(--stone); border-bottom-color: var(--gold); }

.sol-body { padding: 34px 30px 36px; }

.sol-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    margin-bottom: 18px;
}

.sol-body h3 {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sol-body p { font-size: .86rem; color: var(--body); line-height: 1.68; }


/* ════════════════════════════════════════
   INDUSTRIES
════════════════════════════════════════ */
#industrias {
    background: var(--ink);
    color: var(--light);
}

#industrias .eyebrow { color: var(--green-hi); }
#industrias .sec-head p { color: var(--muted); }

.ind-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--rl);
    overflow: hidden;
}

.ind-cell {
    background: var(--ink-2);
    padding: 30px 26px;
    transition: background .25s, border-color .25s;
    border-bottom: 2px solid transparent;
}
.ind-cell:hover { background: var(--ink-3); border-bottom-color: var(--gold); }

.ind-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(39,94,69,.2);
    border: 1px solid rgba(74,158,124,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-hi);
    margin-bottom: 16px;
}

.ind-cell h3 { font-size: .93rem; font-weight: 500; margin-bottom: 5px; }
.ind-cell p  { font-size: .78rem; color: rgba(236,232,225,.42); line-height: 1.55; }

/* ════════════════════════════════════════
   VALUE PROPOSITION
════════════════════════════════════════ */
#valor { background: var(--stone); }

.val-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.val-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 34px;
    transition: var(--ease);
    border-bottom: 3px solid transparent;
}

.val-card:hover {
    border-color: var(--border);
    border-bottom-color: var(--gold);
    box-shadow: 0 16px 48px rgba(39,94,69,.1);
    transform: translateY(-3px);
}

.val-card.span2 {
    grid-column: 1 / -1;
    background: var(--green);
    border-color: var(--green);
}
.val-card.span2 h3,
.val-card.span2 p { color: #fff; }
.val-card.span2 p { opacity: .82; }
.val-card.span2 .vi { background: rgba(255,255,255,.15); color: #fff; }

.vi {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    margin-bottom: 18px;
}

.val-card h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.val-card p { font-size: .86rem; color: var(--body); line-height: 1.65; }

/* ════════════════════════════════════════
   ABOUT — FULL-BLEED SPLIT
════════════════════════════════════════ */
#nosotros {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-img {
    position: relative;
    overflow: hidden;
    min-height: 580px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7,16,28,.25), transparent);
}

.about-txt {
    background: var(--ink);
    padding: 88px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-txt .eyebrow { color: var(--green-hi); margin-bottom: 14px; }
.about-txt h2 { color: var(--light); margin-bottom: 20px; }
.about-txt p  { color: rgba(236,232,225,.68); font-size: .94rem; line-height: 1.8; margin-bottom: 14px; }

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.as-n {
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--gold-hi);
    line-height: 1;
    margin-bottom: 4px;
}

.as-l { font-size: .74rem; color: rgba(236,232,225,.38); letter-spacing: .05em; text-transform: uppercase; }

/* ════════════════════════════════════════
   PROCESS
════════════════════════════════════════ */
#proceso { background: var(--white); }

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    height: 1px;
    background: linear-gradient(to right, var(--gold) 0%, var(--gold-hi) 50%, var(--gold) 100%);
}

.step {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.step-n {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    position: relative;
    z-index: 2;
    transition: all .3s;
}

.step:hover .step-n {
    background: var(--gold);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(169,122,34,.3);
}

.step h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.step p { font-size: .82rem; color: var(--body); line-height: 1.6; }

/* ════════════════════════════════════════
   CONTACT SPLIT (CTA dark)
════════════════════════════════════════ */
#contacto-directo {
    background: var(--ink-2);
    padding: 92px 0;
    position: relative;
    overflow: hidden;
}

#contacto-directo::before {
    content: '';
    position: absolute;
    top: -220px;
    right: -180px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39,94,69,.14) 0%, transparent 70%);
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-left .eyebrow { color: var(--green-hi); margin-bottom: 14px; }
.cta-left h2 { color: var(--light); margin-bottom: 18px; }
.cta-left > p { color: rgba(236,232,225,.62); font-size: .94rem; line-height: 1.78; margin-bottom: 28px; }

.contact-person strong { color: rgba(236,232,225,.9); display: block; margin-bottom: 2px; }
.contact-person span   { font-size: .82rem; color: rgba(236,232,225,.4); }

.contact-cards { display: flex; flex-direction: column; gap: 12px; }

.cc {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--rl);
    padding: 20px 24px;
}

.cc-title {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-hi);
    margin-bottom: 10px;
}

.clink {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .86rem;
    color: rgba(236,232,225,.65);
    transition: color .2s;
    margin-bottom: 7px;
}
.clink:last-child { margin-bottom: 0; }
.clink:hover { color: #fff; }
.clink svg { color: var(--green-hi); flex-shrink: 0; }
.wa-fab svg { position: relative; z-index: 1; }

/* ════════════════════════════════════════
   FORM SECTION
════════════════════════════════════════ */
#formulario { background: var(--white); }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.form-col .eyebrow { margin-bottom: 14px; }
.form-col h2 { margin-bottom: 16px; }
.form-col > p { color: var(--body); margin-bottom: 36px; }

.fg { margin-bottom: 18px; }

.fg label {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 7px;
    letter-spacing: .02em;
}

.fc {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-family: var(--sans);
    font-size: .88rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.fc:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(39,94,69,.1);
}

textarea.fc { resize: vertical; min-height: 118px; }

.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-disc {
    font-size: .74rem;
    color: var(--body);
    margin-top: 12px;
    line-height: 1.55;
}

.form-aside { padding-top: 68px; }

.aside-block {
    background: var(--stone);
    border-radius: var(--rl);
    padding: 26px 28px;
    margin-bottom: 14px;
}

.aside-block .h4 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.aside-block p { font-size: .83rem; color: var(--body); line-height: 1.6; }

.aside-block.dark { background: var(--ink); }
.aside-block.dark .h4 { color: var(--light); }
.aside-block.dark p  { color: rgba(236,232,225,.6); }
.aside-block.dark .attr { color: rgba(236,232,225,.35); font-size: .74rem; margin-top: 12px; }

.cta-quote {
    margin-top: 8px;
    padding: 22px 24px;
    background: rgba(169,122,34,.08);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--rl) var(--rl) 0;
}
.cta-quote p { color: rgba(236,232,225,.75); font-size: .88rem; line-height: 1.75; margin: 0; }
.cta-quote strong { color: var(--gold-hi); }
.cc-note { font-size: .82rem; color: rgba(236,232,225,.45); line-height: 1.6; margin-top: 4px; }

.btn-block { width: 100%; justify-content: center; padding: 16px; font-size: .9rem; }
.btn-block.ok  { background: var(--green-mid); }
.btn-block.err { background: #c0392b; }
.hl-green { color: var(--green-hi); }
#ind-heading { color: var(--light); }
.aside-block.dark p { font-style: italic; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
    background: #050C14;
    color: rgba(236,232,225,.45);
    padding: 64px 0 32px;
}

.ft-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 32px;
}

.ft-brand p {
    font-size: .83rem;
    line-height: 1.72;
    margin-top: 16px;
    max-width: 300px;
}

.ft-col .h5 {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(236,232,225,.65);
    margin-bottom: 16px;
}

.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.ft-col ul a {
    font-size: .83rem;
    color: rgba(236,232,225,.38);
    transition: color .2s;
}
.ft-col ul a:hover { color: rgba(236,232,225,.8); }

.ft-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .76rem;
}

.ft-logo {
    height: 80px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    margin-bottom: 16px;
    display: block;
}

.ft-credit a {
    color: var(--green-hi);
    font-weight: 500;
    transition: color .2s;
}
.ft-credit a:hover { color: var(--green-mid); }

/* ════════════════════════════════════════
   FLOATING WHATSAPP
════════════════════════════════════════ */
.wa-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 22px rgba(37,211,102,.42);
    transition: transform .3s, box-shadow .3s;
    animation: float 3.5s ease-in-out infinite;
}
.wa-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2.5s ease-out infinite;
}
.wa-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(37,211,102,.55);
    animation: none;
}

/* ════════════════════════════════════════
   ANIMATIONS — scroll triggered
════════════════════════════════════════ */
.fi-anim {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.fi-anim.on { opacity: 1; transform: none; }

.fi-anim-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.fi-anim-left.on { opacity: 1; transform: none; }

.fi-anim-scale {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);
}
.fi-anim-scale.on { opacity: 1; transform: none; }

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Prevenir scroll horizontal global */
html, body { max-width: 100%; overflow-x: hidden; }

/* ── Tablet grande ── */
@media (max-width: 1100px) {
    .split    { grid-template-columns: 1fr; gap: 36px; }
    .sols-grid{ grid-template-columns: 1fr 1fr; }
    .ind-grid { grid-template-columns: repeat(2,1fr); }
    #nosotros { grid-template-columns: 1fr; }
    .about-img{ min-height: 320px; }
    .about-txt { padding: 56px 44px; }
    .cta-grid, .form-grid { grid-template-columns: 1fr; gap: 36px; }
    .form-aside { padding-top: 0; }
    .ft-top   { grid-template-columns: 1fr 1fr; gap: 36px; }
    .val-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet / móvil grande ── */
@media (max-width: 768px) {
    :root { --pad: 56px 0; }

    .wrap { padding: 0 18px; }

    /* Nav */
    .nav-links, .nav-actions { display: none; }
    .burger { display: flex; }
    .nav-in { height: 72px; padding: 0 18px; }
    .nav-logo { height: 60px; }
    .nav-logo img { height: 56px; max-width: 200px; }

    /* Hero */
    .hero-body { padding: 86px 18px 56px; }
    .hero-btns { flex-direction: column; align-items: flex-start; gap: 10px; }
    .hero-proof { gap: 10px; }
    .proof-item { font-size: .82rem; padding: 8px 14px; }

    /* Tipografías — más controladas */
    .h1 { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; line-height: 1.18; }
    .h2 { font-size: clamp(1.35rem, 5vw, 1.9rem) !important; }
    .h3 { font-size: clamp(1rem, 4vw, 1.35rem) !important; }

    /* Stats */
    .stats-row { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); padding: 28px 20px; }
    .stat-cell:last-child { border-bottom: none; }
    .stat-n { font-size: 3rem !important; }

    /* Soluciones */
    .sols-grid { grid-template-columns: 1fr; }

    /* Industrias */
    .ind-grid { grid-template-columns: 1fr 1fr; }

    /* Valor */
    .val-grid { grid-template-columns: 1fr; }
    .val-card.span2 { grid-column: 1; }

    /* Steps */
    .steps { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
    .steps::before { display: none; }

    /* About */
    .about-txt { padding: 40px 20px; }
    .about-stats { flex-wrap: wrap; gap: 24px; }
    .as-n { font-size: 2rem !important; }

    /* Formulario */
    .fr { grid-template-columns: 1fr; }
    .form-aside { display: none; }

    /* Footer */
    .ft-top { grid-template-columns: 1fr; gap: 28px; }
    .ft-bot { flex-direction: column; gap: 8px; text-align: center; }
    .ft-logo { height: 60px !important; }

    /* CTA */
    .cta-grid { grid-template-columns: 1fr; gap: 28px; }

    /* Panel asesoría */
    .focus-panel { padding: 32px 22px; }

    /* Sec-head */
    .sec-head { margin-bottom: 36px; }
}

/* ── Móvil pequeño ── */
@media (max-width: 480px) {
    .wrap { padding: 0 14px; }

    .h1 { font-size: clamp(1.55rem, 8vw, 2rem) !important; }
    .h2 { font-size: clamp(1.2rem, 6vw, 1.5rem) !important; }
    .h3 { font-size: clamp(.95rem, 4.5vw, 1.2rem) !important; }

    .ind-grid { grid-template-columns: 1fr; }
    .steps    { grid-template-columns: 1fr; }

    .hero-body { padding: 76px 14px 44px; }
    .hero-badge { font-size: .62rem; }

    .btn { padding: 12px 16px; font-size: .82rem; }

    .stat-n { font-size: 2.4rem !important; }

    .sol-body { padding: 24px 18px 26px; }

    .nav-in { padding: 0 14px; height: 68px; }
    .nav-logo img { height: 50px !important; }

    .proof-item { font-size: .75rem; padding: 6px 10px; }

    .eyebrow { font-size: .65rem; letter-spacing: .08em; }

    .cc { padding: 14px 16px; }

    .ft-top { gap: 20px; }

    .about-txt { padding: 32px 14px; }

    .sec-head { margin-bottom: 28px; }

    .ind-cell { padding: 22px 18px; }
    .val-card { padding: 24px 20px; }
}
