/* Paleta MTZ (spec) + alias heredados */
:root {
    color-scheme: dark;
    --color-bg: #0a0e0d;
    --color-bg-card: #111715;
    --color-emerald: #10b981;
    --color-emerald-l: #34d399;
    --color-white: #e6ece9;
    --color-muted: #8a9892;
    --color-border: #232c28;
    --bg: var(--color-bg);
    --surface: var(--color-bg-card);
    --border: #232c28;
    --text: var(--color-white);
    --text-2: #c2ccc7;
    --muted: #8a9892;
    --accent: var(--color-emerald);
    --accent-2: var(--color-emerald-l);
    --accent-dim: rgba(16, 185, 129, 0.10);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 8px;
    --max: 1120px;
    --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Offset para la nav sticky: el ancla alinea el título debajo del menú */
main section[id] {
    scroll-margin-top: 5.5rem;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    font-optical-sizing: auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
    z-index: 0;
}

a { color: inherit; }
.wrap { position: relative; z-index: 1; }

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand img { height: 40px; width: auto; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.08);
}

.lang-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: 600;
}

.lang-toggle button.active {
    background: var(--accent-dim);
    color: var(--accent-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #059669);
    color: #022c22;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover { box-shadow: 0 10px 36px rgba(16, 185, 129, 0.35); }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(52, 211, 153, 0.45);
    color: var(--accent-2);
}

/* Contraste ≥ 4.5:1 (WCAG AA) sobre fondo verde oscuro */
.btn-wa {
    background: #047857;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-wa:hover {
    background: #065f46;
    color: #ffffff;
}

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
}

.hero-inner { max-width: 44rem; }

.hero-tagline-lit {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.9;
    margin-bottom: 1.1rem;
}

.hero-headline {
    margin-bottom: 1.5rem;
}

.hero-kicker {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 600;
    line-height: 1.12;
}

.hero-deck {
    display: block;
    margin-top: 0.75rem;
    max-width: 38rem;
    font-size: clamp(1rem, 2.1vw, 1.2rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--muted);
    font-family: var(--font-body);
    letter-spacing: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
}

.section-title {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--muted);
    max-width: 40rem;
    margin-bottom: 1.75rem;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: rgba(52, 211, 153, 0.35);
    transform: none;
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.tagline {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.process-track {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .process-track {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: stretch;
    }
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.process-step .num {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-2);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.process-step p {
    color: var(--text-2);
    font-size: 0.95rem;
}

.process-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.25rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .process-arrow { display: flex; }
}

.why-list {
    list-style: none;
    max-width: 40rem;
}

.why-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.35rem;
    color: var(--text-2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.why-list li:last-child { border-bottom: none; }

.why-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.cta-block {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    text-align: center;
}

.cta-block h2 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    margin-bottom: 1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 880px) {
    .contact-grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
}

.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-box a.mail {
    color: var(--accent-2);
    font-weight: 600;
    text-decoration: none;
}

.contact-box a.mail:hover { text-decoration: underline; }

form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.field { margin-bottom: 1rem; }

input, textarea, select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--accent-2);
    outline-offset: 1px;
}

textarea { min-height: 140px; resize: vertical; }

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.form-msg {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: none;
}

.form-msg.ok {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-2);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.form-msg.err {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.form-msg.hint {
    display: block;
    background: rgba(59, 130, 246, 0.08);
    color: #bfdbfe;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

footer a { color: var(--accent-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-nav {
    margin: 1.15rem auto 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    max-width: 28rem;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-nav-link:hover {
    background: var(--accent-dim);
    border-color: var(--accent-2);
    color: var(--accent-2);
    text-decoration: none;
}

@media (max-width: 720px) {
    .nav { flex-wrap: wrap; row-gap: 0.5rem; }
    .nav-brand img { height: 32px; max-width: 100%; }
    .nav-links { flex: 1 1 100%; justify-content: flex-start; }
    .nav-links a:not(.btn) { display: none; }
    .nav-links .btn { padding: 0.45rem 0.8rem; font-size: 0.88rem; }
    .hero-kicker, .hero-deck { overflow-wrap: anywhere; }
}
    
/* ---- v2: voz técnica, foco visible, movimiento reducido ---- */
.hero-tagline-lit, .tagline, .process-step .num, .stack-badge, .stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; list-style: none; }
.stack-badge {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
}
.scope { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.scope-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}
.scope-col h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.scope-col ul { list-style: none; }
.scope-col li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; color: var(--text-2); font-size: 0.95rem; }
.scope-col li::before { position: absolute; left: 0; font-family: var(--font-mono); color: var(--accent); }
.scope-yes li::before { content: "+"; }
.scope-no li::before { content: "\2212"; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

html, body { overflow-x: clip; }
