/* ================================================================
   Garbon Media — Design System
   Dark, sophisticated, high-ticket positioning.
   ================================================================ */

/* -------- Reset & Base --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
    /* Palette */
    --bg:            #08080c;
    --bg-elev:       #0f0f17;
    --surface:       #13131c;
    --surface-2:     #1a1a26;
    --border:        #242434;
    --border-strong: #30304a;

    --text:          #f4f4f7;
    --text-muted:    #9a9aae;
    --text-dim:      #6b6b80;

    --accent:        #ff7a1a;        /* garbó · naranja cálido */
    --accent-hover:  #ff8f3d;
    --accent-soft:   rgba(255,122,26,.12);
    --accent-2:      #fbbf24;        /* gold */

    --success: #22c55e;
    --danger:  #ef4444;

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container:   1200px;
    --container-narrow: 880px;
    --radius:      14px;
    --radius-sm:   8px;
    --radius-lg:   24px;

    --shadow-sm:   0 1px 2px rgba(0,0,0,.3);
    --shadow:      0 10px 30px rgba(0,0,0,.4);
    --shadow-lg:   0 30px 60px rgba(0,0,0,.5);

    /* Motion */
    --ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* Skip link */
.skip-link {
    position: absolute; top: -48px; left: 12px;
    background: var(--accent); color: #fff; padding: 10px 16px;
    border-radius: var(--radius-sm); z-index: 999;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* -------- Layout --------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

section { padding: clamp(64px, 9vw, 120px) 0; }
section.section--sm { padding: clamp(48px, 6vw, 80px) 0; }

/* -------- Typography ----------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); }
p.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--text);
    max-width: 68ch;
    line-height: 1.55;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 500;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before {
    content: ''; width: 24px; height: 1px; background: var(--accent);
}

.accent { color: var(--accent); }
.muted  { color: var(--text-muted); }

/* -------- Buttons -------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-display); font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.01em;
    border-radius: 999px;
    transition: all .25s var(--ease);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--lg { padding: 18px 32px; font-size: 1rem; }

.btn--primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 24px rgba(255,122,26,.25);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,122,26,.35); }

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

.btn--link { padding: 0; background: none; color: var(--accent); font-weight: 600; }
.btn--link:hover { color: var(--accent-hover); gap: 12px; }
.btn--link::after { content: '→'; transition: transform .25s var(--ease); }
.btn--link:hover::after { transform: translateX(4px); }

/* -------- Header --------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    background: rgba(8,8,12,.7);
    border-bottom: 1px solid transparent;
    transition: all .25s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(8,8,12,.92);
    border-bottom-color: var(--border);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo__mark { color: var(--accent); display: inline-flex; }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo__name { color: var(--text); }
.logo__accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav__link {
    color: var(--text-muted); font-size: 0.95rem; font-weight: 500;
    transition: color .2s var(--ease);
    position: relative;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: all .25s var(--ease); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; inset: 72px 0 0 0;
        flex-direction: column; justify-content: flex-start; align-items: stretch;
        background: var(--bg-elev); border-top: 1px solid var(--border);
        padding: 40px 24px; gap: 0;
        transform: translateX(100%);
        transition: transform .3s var(--ease);
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list li { border-bottom: 1px solid var(--border); }
    .nav__link { display: block; padding: 18px 0; font-size: 1.1rem; }
    .nav__link.is-active::after { display: none; }
    .nav__cta { margin-top: 32px; width: 100%; }
}

/* -------- Hero ----------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 0 clamp(64px, 9vw, 120px);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 50% at 80% 10%, rgba(255,122,26,.18), transparent 60%),
        radial-gradient(50% 40% at 10% 90%, rgba(251,191,36,.08), transparent 60%);
    pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #b8b8c5 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.hero h1 .accent { background: none; -webkit-text-fill-color: var(--accent); color: var(--accent); }
.hero p.lead { margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 72px; padding-top: 48px;
    border-top: 1px solid var(--border);
}
.hero__stat .num { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--text); line-height: 1; }
.hero__stat .label { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 700px) { .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* -------- Section intros ------------------------------------- */
.section-intro { max-width: 720px; margin-bottom: 64px; }
.section-intro h2 { margin-bottom: 20px; }
.section-intro--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-intro--center .eyebrow { justify-content: center; }

/* -------- Grid of cards -------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }
.card__icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}
.card__link { display: inline-block; margin-top: 20px; }

.card--feature {
    padding: 40px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elev) 100%);
}
.card--outlined { background: transparent; }

/* Service card with number */
.card--numbered { padding-top: 40px; }
.card__number {
    font-family: var(--font-display); font-weight: 700;
    font-size: 3rem; line-height: 1; color: var(--accent);
    opacity: .3; position: absolute; top: 24px; right: 28px;
}

/* -------- Featured services ---------------------------------- */
.service-tile {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    transition: all .3s var(--ease);
    position: relative;
    min-height: 280px;
}
.service-tile:hover {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(255,122,26,.05) 100%);
    transform: translateY(-4px);
}
.service-tile h3 { margin-bottom: 14px; font-size: 1.35rem; }
.service-tile p { font-size: 0.95rem; flex-grow: 1; }
.service-tile__foot { margin-top: 24px; color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; }
.service-tile__foot::after { content: '→'; transition: transform .25s var(--ease); }
.service-tile:hover .service-tile__foot::after { transform: translateX(4px); }
.service-tile__tag {
    position: absolute; top: 24px; right: 24px;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    background: var(--accent-soft); color: var(--accent);
    padding: 4px 10px; border-radius: 999px; font-weight: 600;
}

/* -------- Methodology steps ---------------------------------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
    padding: 32px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    position: relative;
}
.step__num {
    font-family: var(--font-display); font-weight: 700;
    color: var(--accent); font-size: 0.875rem;
    display: inline-block; padding: 4px 10px;
    background: var(--accent-soft); border-radius: 999px;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}
.step h3 { margin-bottom: 10px; font-size: 1.15rem; }
.step p { font-size: 0.9rem; }

/* -------- Split sections ------------------------------------- */
.split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 48px; } }

.split__media {
    position: relative; aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
}
.split__media::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(60% 50% at 50% 0%, rgba(255,122,26,.2), transparent 70%);
}

/* -------- Checklist ------------------------------------------ */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li {
    display: flex; gap: 12px; align-items: flex-start;
    color: var(--text);
}
.checklist li::before {
    content: ''; flex: 0 0 22px; height: 22px;
    background: var(--accent-soft); color: var(--accent);
    border-radius: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
    margin-top: 2px;
}

/* -------- Tech stack tags ------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.825rem; color: var(--text-muted);
    font-family: var(--font-display); font-weight: 500;
}
.tag--accent { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* -------- CTA block ------------------------------------------ */
.cta-block {
    padding: clamp(64px, 8vw, 96px) 0;
    background:
        radial-gradient(60% 80% at 20% 50%, rgba(255,122,26,.12), transparent 60%),
        linear-gradient(180deg, var(--bg-elev), var(--bg));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-block__inner {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
    align-items: center;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 880px) {
    .cta-block__inner { grid-template-columns: 1fr; }
    .cta-block__actions { justify-content: flex-start; }
}

/* -------- Forms ---------------------------------------------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
    display: block; font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted); margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
    width: 100%; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--accent);
    background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 140px; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--danger); }
.field__error { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--danger); }
.field--honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.checkbox input { margin-top: 4px; accent-color: var(--accent); }
.checkbox a { color: var(--accent); }

.form-success, .form-error {
    padding: 18px 20px; border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
}
.form-success { border-color: var(--success); color: var(--text); }
.form-error   { border-color: var(--danger);  color: var(--text); }

/* -------- Contact layout ------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 20px; }
.contact-info__item {
    padding: 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-info__item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.contact-info__item p, .contact-info__item a { font-size: 1.05rem; color: var(--text); font-weight: 500; }
.contact-info__item a:hover { color: var(--accent); }

/* -------- Footer --------------------------------------------- */
.site-footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding: 80px 0 32px;
    color: var(--text-muted);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__tagline { font-size: 0.95rem; margin: 20px 0 16px; max-width: 42ch; }
.footer__location { font-size: 0.85rem; color: var(--text-dim); }
.footer__col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text); margin-bottom: 20px;
}
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col a { font-size: 0.9rem; color: var(--text-muted); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.footer__contact li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.footer__contact a { color: var(--text); }
.footer__contact a:hover { color: var(--accent); }

.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50%; font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    transition: all .2s var(--ease);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }

.footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; gap: 24px; flex-wrap: wrap;
    font-size: 0.825rem; color: var(--text-dim);
}
.footer__legal { list-style: none; display: flex; gap: 24px; }
.footer__legal a { color: var(--text-dim); transition: color .2s var(--ease); }
.footer__legal a:hover { color: var(--text); }

/* -------- Utility -------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: clamp(48px, 7vw, 80px); }

/* -------- Scroll reveal -------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------- Breadcrumb ----------------------------------------- */
.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    font-size: 0.85rem; color: var(--text-dim);
    margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-dim); opacity: .5; }

/* -------- Prose (legal pages) -------------------------------- */
.prose { max-width: 72ch; color: var(--text-muted); font-size: 1rem; }
.prose h1 { margin-bottom: 24px; color: var(--text); }
.prose h2 { margin: 48px 0 16px; color: var(--text); font-size: 1.5rem; }
.prose h3 { margin: 32px 0 12px; color: var(--text); font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }

/* -------- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
