/* =========================================================
   DSistemas — rediseño 2026
   Paleta tomada del sitio actual (settings.less "Scheme03" + logo)
   ========================================================= */
:root {
    --green-950: #0d1a01;
    --green-900: #152801;      /* barra de navegación actual */
    --green-800: #20400a;
    --green-600: #3f7a14;
    --green-500: #5aa020;      /* verde del logo */
    --green-300: #a6e07a;      /* brillo del logo */
    --gold:      #d3ab41;      /* color03 */
    --gold-dark: #b8912a;
    --slate:     #28363c;      /* color01 */
    --slate-900: #233035;      /* color07 */
    --teal:      #75a3af;      /* color04 */
    --mint:      #e1ebea;      /* color05 */
    --mint-50:   #f3f7f6;
    --white:     #ffffff;
    --muted:     #5b6b71;
    --border:    #d6e2e0;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(21, 40, 1, .06), 0 2px 8px rgba(21, 40, 1, .05);
    --shadow-md: 0 10px 30px -10px rgba(21, 40, 1, .25);
    --header-h: 76px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--slate-900); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.icon {
    width: 22px; height: 22px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.5em;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 700 1rem/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green-500); color: var(--white); box-shadow: 0 8px 20px -8px rgba(90, 160, 32, .7); }
.btn-primary:hover { background: var(--green-600); }

.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: #e0bb55; }

.btn-outline-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-ghost { border-color: rgba(166, 224, 122, .5); color: var(--green-300); }
.btn-ghost:hover { background: rgba(166, 224, 122, .12); border-color: var(--green-300); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    background: rgba(21, 40, 1, .82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(166, 224, 122, .12);
    transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(21, 40, 1, .96); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 48px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) {
    color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .95rem;
    position: relative; padding: 6px 0;
}
.main-nav > a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--green-300); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > a:not(.btn):hover, .main-nav > a.active { color: var(--white); }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { transform: scaleX(1); }

.nav-toggle {
    display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer;
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 16px 24px;
        background: var(--green-900);
        border-bottom: 1px solid rgba(166, 224, 122, .15);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.open { transform: none; opacity: 1; visibility: visible; }
    .main-nav > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .main-nav > a:not(.btn)::after { display: none; }
    .main-nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: min(100svh, 820px);
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 64px) 0 72px;
    color: var(--white);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse at 85% 20%, rgba(90, 160, 32, .35), transparent 55%),
        linear-gradient(100deg, rgba(13, 26, 1, .96) 0%, rgba(21, 40, 1, .85) 45%, rgba(21, 40, 1, .45) 100%),
        url("../img/home/i2.jpg") center / cover no-repeat;
}
.hero h1 {
    color: var(--white);
    /* Escala con el ancho de la pantalla: 2.4rem en celular, hasta 6.25rem en 1920px */
    font-size: clamp(2.4rem, 5.2vw, 6.25rem);
    font-weight: 800;
    max-width: 16ch;
    margin-bottom: .4em;
}
.hero .accent { color: var(--green-300); }
.hero .lead { font-size: clamp(1.05rem, 1.25vw, 1.5rem); color: rgba(255,255,255,.82); max-width: 56ch; margin-bottom: 2em; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px; margin-bottom: 24px;
    border: 1px solid rgba(166, 224, 122, .35); border-radius: 999px;
    background: rgba(166, 224, 122, .08);
    font-size: .85rem; font-weight: 600; color: var(--green-300);
}
.eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green-300);
    box-shadow: 0 0 0 0 rgba(166, 224, 122, .7); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(166, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 224, 122, 0); } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-highlights {
    list-style: none; padding: 0; margin: 56px 0 0;
    display: flex; flex-wrap: wrap; gap: 14px 36px;
    color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem;
}
.hero-highlights li { display: flex; align-items: center; gap: 10px; }
.hero-highlights .icon { color: var(--gold); }

@media (max-width: 600px) {
    .hero-actions .btn { width: 100%; }
    .hero-highlights { flex-direction: column; margin-top: 40px; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tinted { background: var(--mint-50); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

.kicker {
    display: inline-block; margin-bottom: 12px;
    font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-dark);
}

/* Nosotros */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split > div:first-child p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.values { display: grid; gap: 16px; }
.value {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 22px 24px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.value:hover { transform: translateX(6px); border-color: var(--green-300); box-shadow: var(--shadow-md); }
.value h3 { margin-bottom: .25em; font-size: 1.08rem; }
.value p { margin: 0; color: var(--muted); font-size: .97rem; }
.value-icon {
    display: grid; place-items: center; width: 46px; height: 46px; flex: none;
    border-radius: 12px; background: var(--mint); color: var(--green-600);
}

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.card {
    position: relative; overflow: hidden;
    padding: 36px 32px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--green-500), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card > p { color: var(--muted); }

.card-icon {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px;
    border-radius: 14px;
    background: var(--green-900); color: var(--green-300);
    box-shadow: 0 0 0 6px var(--mint);
}
.card-icon .icon { width: 26px; height: 26px; }

.checklist { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; }
.checklist .icon { color: var(--green-500); }

/* Cómo trabajamos */
.steps {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step::before {
    content: ""; position: absolute; top: 34px; left: 72px; right: -12px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
}
.step:last-child::before { display: none; }
.step-num {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
    border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-dark);
    font-weight: 800; font-size: 1.05rem; background: var(--white);
}
.step p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .step::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Banda soporte */
.cta-band {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(90, 160, 32, .35), transparent 50%),
        var(--green-900);
    color: var(--white);
    padding: 64px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.75); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info > p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }

.contact-line {
    display: inline-flex; align-items: center; gap: 14px; margin: 12px 0 28px;
    font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--slate-900);
}
.contact-line:hover { color: var(--green-600); }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--mint); color: var(--green-600); }

.people { display: grid; gap: 14px; }
.person { padding: 18px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.person-name { font-weight: 800; margin-bottom: 8px; color: var(--slate-900); }
.person-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.person-actions a {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted);
}
.person-actions a:hover { color: var(--green-600); }

.contact-form {
    padding: clamp(24px, 4vw, 40px);
    background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-md);
    display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: .88rem; font-weight: 700; color: var(--slate); }
.field input, .field textarea {
    width: 100%; padding: 13px 16px;
    font: 500 1rem/1.4 var(--font); color: var(--slate-900);
    background: var(--mint-50); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
    outline: none; background: var(--white);
    border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(90, 160, 32, .15);
}
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; min-height: 1.5em; font-weight: 600; font-size: .95rem; text-align: center; }
.form-status.ok { color: var(--green-600); }
.form-status.error { color: #c0392b; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }

/* Footer */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.6); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-inner img { height: 40px; width: auto; }
.footer-inner nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--white); }
.footer-inner p { margin: 0; }

/* Botón flotante WhatsApp */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: var(--white);
    box-shadow: 0 10px 25px -6px rgba(0,0,0,.4);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
