:root {
    --bg: #f7f5f1;
    --bgAlt: #ecE8e1;
    --ink: #1f2326;
    --muted: #5d656b;
    --line: #d9d4ca;
    --accent: #b4532a;
    --accentDark: #8f3f1e;
    --dark: #1b1f22;
    --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

.wrap { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 8px; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p { color: var(--muted); }

/* TOP BAR */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 245, 241, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.brand span { color: var(--accent); margin-left: 4px; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.menuBtn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; }

/* BUTTONS */
.btn {
    display: inline-block; padding: 12px 22px; border-radius: 6px;
    background: var(--accent); color: #fff !important; text-decoration: none;
    font-weight: 600; border: 2px solid var(--accent); transition: background 0.2s;
}
.btn:hover { background: var(--accentDark); border-color: var(--accentDark); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }
.btn.big { padding: 16px 34px; font-size: 1.1rem; }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.btn.light { background: #fff; color: var(--accent) !important; border-color: #fff; }
.btn.light:hover { background: var(--bg); }

/* HERO */
.hero { padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.lead { font-size: 1.15rem; max-width: 40em; margin: 20px 0 32px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: 80px 0; }
.section.alt { background: var(--bgAlt); }
.sub { margin-bottom: 36px; }

.grid { display: grid; gap: 20px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px;
}
.num { display: block; font-size: 0.85rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.solves { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.out { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.out strong { color: var(--ink); }

/* PORTFOLIO */
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thumb {
    aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: flex;
    align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, #e4dfd6, #e4dfd6 12px, #ebe7df 12px, #ebe7df 24px);
    color: var(--muted); font-size: 0.9rem;
}
.info { padding: 18px 20px 22px; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 6px; }

/* PROCESS */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-bottom: 40px; }
.steps li {
    counter-increment: step; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 22px 18px 72px; position: relative;
    display: flex; flex-direction: column;
}
.steps li::before {
    content: counter(step); position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps li span { color: var(--muted); }

.priceBox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.priceBox ul { margin: 8px 0 0 20px; color: var(--muted); }
.priceBox li { margin-bottom: 4px; }

/* CTA */
.cta { background: var(--accent); text-align: center; padding: 80px 0; }
.cta h2, .cta p { color: #fff; }
.cta p { margin: 8px auto 28px; max-width: 34em; opacity: 0.92; }

/* FOOTER */
.footer { background: var(--dark); padding: 24px 0; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #b9bec2; font-size: 0.9rem; }
.foot a { color: #b9bec2; }

/* FLOATING WHATSAPP */
.floatWa {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    background: #25d366; color: #fff; text-decoration: none; font-weight: 700;
    padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.floatWa:hover { background: #1ebe5b; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.show { opacity: 1; transform: none; }

/* MOBILE */
@media (max-width: 760px) {
    .menuBtn { display: block; }
    .nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 4%;
    }
    .nav.open { display: flex; }
    .nav a { padding: 12px 0; width: 100%; }
    .nav .btn { width: auto; margin: 8px 0 12px; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
