/* ==========================================================================
   Master Despachante — tema "editorial escuro"
   ========================================================================== */

:root {
    --ink:        #0e1013;
    --ink-2:      #15181d;
    --ink-3:      #1d2128;
    --line:       #2a2f38;
    --red:        #e5383b;
    --red-dark:   #b32225;
    --text:       #e8eaee;
    --muted:      #9aa3af;
    --white:      #ffffff;
    --radius:     10px;
    --radius-lg:  16px;
    --font-head:  'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:  'Inter', system-ui, -apple-system, sans-serif;
    --shadow:     0 18px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-xl { width: 1.6em; height: 1.6em; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

h1, h2, h3, .brand-name, .fact strong, .step-num, .svc-num {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.02;
    text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(14,16,19,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { border-radius: 10px; }
.brand-name { font-size: 1.35rem; color: #fff; }
.brand-name em { font-style: normal; color: var(--red); font-weight: 500; margin-left: .15em; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.main-nav ul a {
    text-decoration: none; font-size: .82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
    padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-nav ul a:hover, .main-nav ul a.active { color: #fff; border-color: var(--red); }

.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
    color: #fff; padding: .45rem .55rem; cursor: pointer;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; font-size: 1rem;
    padding: .75rem 1.5rem; border-radius: 6px;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.1rem; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }
.nav-cta { padding: .55rem 1.1rem; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(229,56,59,.22), transparent 60%),
        radial-gradient(700px 500px at 0% 110%, rgba(229,56,59,.10), transparent 55%),
        var(--ink);
    padding: 5.5rem 0 0;
    border-bottom: 1px solid var(--line);
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.6rem;
}
.hero-kicker .tick { width: 9px; height: 9px; background: var(--red); border-radius: 2px; display: inline-block; }
.hero-title {
    font-size: clamp(3.2rem, 9.5vw, 6.8rem);
    color: #fff;
    margin-bottom: 1.4rem;
}
.hero-title span { color: var(--red); -webkit-text-stroke: 0; }
.hero-lead { max-width: 560px; color: var(--muted); font-size: 1.08rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 4rem; }

.hero-strip {
    border-top: 1px solid var(--line);
    background: var(--red);
    overflow: hidden; padding: .7rem 0;
}
.hero-strip-track {
    display: flex; gap: 2.2rem; white-space: nowrap;
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em; color: #fff;
    animation: marquee 30s linear infinite; width: max-content;
}
.hero-strip-track i { font-style: normal; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Fatos ---------- */
.facts { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.6rem 1.2rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-size: 1.25rem; color: #fff; }
.fact span { font-size: .82rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--ink-2); }
.section-dark { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; color: var(--red);
    margin-bottom: .7rem;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2, .section-head-left h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.section-head p, .section-head-left p { color: var(--muted); margin-top: .8rem; }
.section-head-left { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 em, .section-head-left h2 em, h2 em { font-style: normal; color: var(--red); }

/* ---------- Lista numerada de serviços ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
    display: grid; grid-template-columns: 90px 1fr 60px; align-items: center; gap: 1.4rem;
    padding: 1.5rem .5rem; border-bottom: 1px solid var(--line);
    text-decoration: none; transition: background .2s, padding-left .2s;
}
.svc-row:hover { background: var(--ink-2); padding-left: 1.2rem; }
.svc-num { font-size: 2.4rem; color: var(--red); font-weight: 700; }
.svc-body strong { display: block; font-size: 1.25rem; color: #fff; font-weight: 600; }
.svc-body small { color: var(--muted); font-size: .92rem; }
.svc-arrow { color: var(--muted); justify-self: end; transition: color .2s, transform .2s; }
.svc-row:hover .svc-arrow { color: var(--red); transform: translateX(6px); }

/* ---------- Cards genéricos ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.8rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--red); transform: translateY(-4px); }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: rgba(229,56,59,.14); color: var(--red);
    display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card h3, .card-title { font-size: 1.3rem; color: #fff; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
    color: var(--red); font-weight: 600; font-size: .88rem;
    text-transform: uppercase; letter-spacing: .08em; text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: 2.2rem; }
.step-card {
    background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.7rem 1.4rem;
}
.step-num { display: block; font-size: 2.6rem; color: var(--red); margin-bottom: .8rem; }
.step-card h3 { font-size: 1.25rem; color: #fff; margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Sobre (home) ---------- */
.about-split { display: grid; grid-template-columns: 1.2fr .9fr; gap: 3.5rem; align-items: center; }
.about-copy h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; margin-bottom: 1.1rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 52ch; }
.about-copy .btn { margin-top: .6rem; }
.about-card {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow);
}
.about-card img { margin-bottom: 1.3rem; border-radius: 14px; }
.about-dl div { border-top: 1px solid var(--line); padding: .8rem 0; }
.about-dl dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.about-dl dd { color: #fff; font-weight: 600; }

/* ---------- Split genérico (sobre/contato interno) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
.split-copy p { color: var(--muted); margin-bottom: .9rem; }
.steps { list-style: none; display: grid; gap: 1.2rem; margin: 1.4rem 0 1.8rem; }
.steps li { display: flex; gap: 1rem; }
.steps .step-num {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    background: var(--red); color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.steps strong { color: #fff; }
.steps p { color: var(--muted); font-size: .92rem; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
    background:
        radial-gradient(700px 380px at 85% 0%, rgba(229,56,59,.18), transparent 60%),
        var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 3.2rem 0;
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); color: #fff; }
.page-hero p { color: var(--muted); max-width: 60ch; margin-top: .8rem; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Artigo / serviço ---------- */
.article-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 2.6rem; align-items: start; }
.article-main h2 { font-size: 1.7rem; color: #fff; margin: 2rem 0 .8rem; }
.article-main h2:first-child { margin-top: 0; }
.article-main p, .article-main li { color: var(--muted); }
.article-main ul { padding-left: 1.2rem; display: grid; gap: .4rem; margin-bottom: 1rem; }
.article-aside { display: grid; gap: 1.2rem; position: sticky; top: 90px; }
.aside-card {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.aside-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: .9rem; }
.aside-muted { background: var(--ink-3); }
.aside-list { list-style: none; display: grid; gap: .7rem; }
.aside-list a { color: var(--muted); text-decoration: none; display: flex; gap: .5rem; align-items: center; }
.aside-list a:hover { color: var(--red); }
.check-list { list-style: none; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; color: var(--muted); font-size: .95rem; }
.check-list .icon { color: var(--red); margin-top: .2em; }
.doc-list { list-style: none; display: grid; gap: .5rem; }
.doc-list li { display: flex; gap: .6rem; color: var(--muted); font-size: .95rem; }
.doc-list .icon { color: var(--red); margin-top: .2em; }
.notice-box {
    border-left: 3px solid var(--red); background: rgba(229,56,59,.08);
    border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem;
    color: var(--muted); font-size: .93rem; margin: 1.4rem 0;
}

/* ---------- Contato ---------- */
.contact-channels { display: grid; gap: .9rem; margin-top: 1.6rem; }
.channel-card {
    display: flex; gap: 1rem; align-items: center;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.2rem; text-decoration: none; transition: border-color .2s;
}
.channel-card:hover { border-color: var(--red); }
.channel-card .card-icon { margin: 0; width: 44px; height: 44px; }
.channel-card strong { display: block; color: #fff; font-size: .95rem; }
.channel-card span { color: var(--muted); font-size: .88rem; }
.contact-form-wrap { max-width: 720px; }
.contact-form {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem;
}
.form-row { margin-bottom: 1.2rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: .4rem; }
.form-group .req { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
    color: var(--text); padding: .75rem .9rem; font: inherit; font-size: .95rem;
    transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--red);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.consent-check { display: flex; gap: .7rem; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent-check input { margin-top: .25em; accent-color: var(--red); }
.consent-check a { color: var(--red); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; text-align: center; }
.alert { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: .95rem; }
.alert-success { background: rgba(46,160,90,.15); border: 1px solid #2ea05a; color: #7fdca4; }
.alert-error { background: rgba(229,56,59,.12); border: 1px solid var(--red); color: #f2a3a4; }

/* ---------- Legal ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.5rem; color: #fff; margin: 2rem 0 .7rem; }
.legal-content h3 { font-size: 1.2rem; color: #fff; margin: 1.4rem 0 .5rem; }
.legal-content p, .legal-content li { color: var(--muted); font-size: .97rem; }
.legal-content ul { padding-left: 1.3rem; margin-bottom: 1rem; display: grid; gap: .3rem; }
.legal-content a { color: var(--red); }
.legal-table, .info-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.legal-table th, .legal-table td, .info-table th, .info-table td {
    border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; color: var(--muted);
}
.legal-table th, .info-table th { color: #fff; background: var(--ink-2); }
.legal-note { font-size: .85rem; color: var(--muted); margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--red); padding: 4rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta-final h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.cta-final h2 em { font-style: normal; color: var(--ink); }
.cta-final p { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.cta-final .btn-primary { background: var(--ink); }
.cta-final .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0c0f; border-top: 3px solid var(--red); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.4rem;
    padding: 3.4rem 0 2.4rem;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: .9rem; }
.footer-legal-name { font-size: .8rem !important; }
.footer-title {
    font-family: var(--font-head); font-size: 1rem; text-transform: uppercase;
    letter-spacing: .14em; color: #fff; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-col ul a:hover { color: var(--red); }
.footer-contact li { display: flex; gap: .6rem; color: var(--muted); font-size: .9rem; }
.footer-contact .icon { color: var(--red); margin-top: .2em; }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.footer-bottom p { font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- WhatsApp flutuante / cookies ---------- */
.whatsapp-float {
    position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: #22c55e; color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 28px; height: 28px; }
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--ink-3); border-top: 1px solid var(--line);
    padding: 1rem 0; display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.cookie-text { color: var(--muted); font-size: .87rem; max-width: 640px; }
.cookie-text a { color: var(--red); }
.cookie-actions { display: flex; gap: .7rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { border-left: 0; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .about-split, .article-layout, .split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cards-3 { grid-template-columns: 1fr; }
    .article-aside { position: static; }
}
@media (max-width: 640px) {
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink-2); border-bottom: 1px solid var(--line);
        flex-direction: column; padding: 1.2rem 4%; gap: 1rem; align-items: stretch;
    }
    .main-nav.open { display: flex; }
    .main-nav ul { flex-direction: column; gap: .3rem; }
    .main-nav ul a { display: block; padding: .6rem 0; }
    .nav-toggle { display: block; margin-left: auto; }
    .svc-row { grid-template-columns: 56px 1fr 32px; gap: .9rem; }
    .svc-num { font-size: 1.7rem; }
    .steps-grid, .form-row-2 { grid-template-columns: 1fr; }
    .hero { padding-top: 3.5rem; }
}
