/* =====================================================================
   Budicon.com — main.css
   Core tokens and components from docs/03-design-system.md, then page
   components. Mobile-first where added; the doc's max-width queries kept.
   ===================================================================== */

/* ========== 1. Fonts ========== */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../fonts/plus-jakarta-sans-var.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

/* ========== 2. Design tokens ========== */
:root {
  --color-navy-900: #0B1530;
  --color-navy-700: #1E2A4A;
  --color-primary: #0B5FFF;
  --color-primary-dark: #0846C4;
  --color-primary-50: #EAF1FF;
  --color-accent: #FF7A1A;
  --color-accent-dark: #E5650A;
  --color-violet: #7C3AED;
  --color-text: #1F2937;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-surface: #F6F8FC;
  --color-white: #FFFFFF;
  --color-success: #16A34A;
  --color-error: #DC2626;
  --color-whatsapp: #25D366;

  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-small: 0.875rem;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --section-y: clamp(64px, 8vw, 96px);
  --container: 1200px;

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(11,21,48,.06), 0 8px 24px rgba(11,21,48,.06);
  --shadow-hover: 0 12px 32px rgba(11,21,48,.12);
  --ease: 200ms ease;
  --header-h: 72px;
}

/* ========== 3. Reset & base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.7; color: var(--color-text); background: var(--color-white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
.icon { display: inline-block; flex-shrink: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-navy-900); margin: 0 0 var(--space-4); line-height: 1.2; }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
ul[role='list'], .nav__list, .mega, .footer-links, .footer-legal, .social-list, .tech-list, .check-list, .breadcrumbs ol, .steps, .stats { list-style: none; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--color-primary-dark); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--color-navy-900); color: #fff; padding: 8px 16px; z-index: 1000; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ========== 4. Layout ========== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--color-surface); }
.section--dark { background: var(--color-navy-900); color: rgba(255,255,255,.8); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.section-head p { color: var(--color-muted); margin-bottom: 0; }
.section-foot { margin-top: var(--space-7); text-align: center; }
.eyebrow { display: inline-block; font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); margin-bottom: var(--space-3); line-height: 1.4; }
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ========== 5. Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 14px 28px; border-radius: var(--radius-md); font: 600 1rem/1 var(--font-body); border: 2px solid transparent; cursor: pointer; text-align: center; transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.btn:hover { transform: translateY(-2px); }
/* CTA: navy text on orange for WCAG AA contrast (white on #FF7A1A is only ~2.6:1). */
.btn--cta { background: var(--color-accent); color: var(--color-navy-900); box-shadow: 0 6px 20px rgba(255,122,26,.35); }
.btn--cta:hover { background: var(--color-accent-dark); color: var(--color-navy-900); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary-50); }
.btn--light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost { padding-inline: 0; color: var(--color-primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.btn-group--center { justify-content: center; }

/* ========== 6. Header ========== */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: box-shadow var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--color-border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--space-5); }
.logo { display: block; flex-shrink: 0; }
.logo img { width: 146px; height: 32px; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { display: flex; align-items: center; gap: var(--space-6); }
.nav a { color: var(--color-navy-900); font-weight: 500; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-primary); }
.nav .btn--cta, .nav .btn--cta:hover { color: var(--color-navy-900); font-weight: 600; padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: var(--space-2); cursor: pointer; color: var(--color-navy-900); min-width: 48px; min-height: 48px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }
.has-mega { position: relative; display: flex; align-items: center; gap: 2px; }
.mega-toggle { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--color-navy-900); display: grid; place-items: center; border-radius: 6px; }
.mega-toggle .icon { transition: transform var(--ease); }
.mega-toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
/* Hover bridge so the menu doesn't close in the gap */
.has-mega::after { content: ''; position: absolute; top: 100%; left: -20px; right: -20px; height: 24px; }
.mega { position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%); width: min(720px, 90vw); display: none; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-5); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); border: 1px solid var(--color-border); }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { display: grid; }
.js .has-mega:focus-within:not(.is-open):not(:hover) .mega { display: none; }
.mega__item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-md); transition: background var(--ease); }
.mega__item:hover { background: var(--color-surface); }
.mega__item strong { display: block; color: var(--color-navy-900); font-weight: 600; line-height: 1.3; }
.mega__item small { display: block; color: var(--color-muted); font-size: 0.8125rem; line-height: 1.4; margin-top: 2px; font-weight: 400; }
.mega__icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--color-primary-50); color: var(--color-primary); }

/* ========== 7. Hero ========== */
.hero { position: relative; overflow: hidden; background: var(--color-navy-900); color: rgba(255,255,255,.8); padding-block: clamp(64px, 9vw, 112px); }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(11,95,255,.35), rgba(124,58,237,.2) 40%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -15%; bottom: -40%; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, rgba(124,58,237,.2), transparent 65%); pointer-events: none; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #8FB4FF; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: center; }
.hero__lead { font-size: 1.25rem; max-width: 560px; margin-bottom: var(--space-6); }
.hero__trust { margin-top: var(--space-6); font-size: var(--fs-small); color: rgba(255,255,255,.7); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: #8FB4FF; }
@media (min-width: 1025px) { .hero--home { min-height: 640px; display: flex; align-items: center; } .hero--home > .container { width: 100%; } }

/* Device mockups (CSS only) */
.devices { position: relative; aspect-ratio: 5 / 4; max-width: 560px; margin-inline: auto; width: 100%; }
.laptop { position: absolute; left: 0; top: 8%; width: 86%; }
.laptop__screen { background: #0F1B3D; border: 10px solid #1E2A4A; border-bottom-width: 14px; border-radius: 14px 14px 0 0; aspect-ratio: 16 / 10; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.laptop__base { height: 14px; background: linear-gradient(#2B3A63, #1A2647); border-radius: 0 0 14px 14px; margin-inline: -6%; position: relative; }
.laptop__base::after { content: ''; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #0F1B3D; border-radius: 0 0 6px 6px; }
.mock-site { height: 100%; background: #fff; display: grid; grid-template-rows: auto 1fr auto; font-size: 0; }
.mock-site__bar { display: flex; align-items: center; gap: 6%; padding: 3.5% 5%; border-bottom: 1px solid #EEF2F8; }
.mock-site__logo { width: 16%; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #28156F 55%, #DB241C 55%); }
.mock-site__links { display: flex; gap: 4%; flex: 1; justify-content: flex-end; }
.mock-site__links span { width: 9%; height: 5px; border-radius: 3px; background: #CBD5E1; }
.mock-site__links span:last-child { background: var(--color-accent); width: 12%; height: 8px; }
.mock-site__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6%; padding: 6% 5%; background: linear-gradient(135deg, #0B1530, #16245A); align-items: center; }
.mock-site__lines span { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.85); margin-bottom: 7%; }
.mock-site__lines span:nth-child(2) { width: 75%; }
.mock-site__lines span:nth-child(3) { width: 55%; height: 4px; background: rgba(255,255,255,.4); }
.mock-site__lines span:nth-child(4) { width: 35%; height: 10px; background: var(--color-accent); margin-top: 10%; }
.mock-site__art { aspect-ratio: 16 / 9; border-radius: 10px; background: radial-gradient(circle at 30% 30%, #4D8BFF, #7C3AED 70%); opacity: .9; }
.mock-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 5%; }
.mock-site__cards span { aspect-ratio: 4 / 3; border-radius: 6px; background: #F1F5FB; border: 1px solid #E2E8F0; }
.phone { position: absolute; right: 2%; bottom: 0; width: 32%; aspect-ratio: 9 / 17; background: #111827; border-radius: 28px; padding: 3.5%; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #374151; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #EDE9FE; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::before { content: ''; position: absolute; top: 5%; left: 50%; width: 28%; height: 3%; transform: translateX(-50%); background: #111827; border-radius: 0 0 10px 10px; z-index: 2; }
.devices__badge { position: absolute; left: -2%; bottom: 6%; display: flex; align-items: center; gap: var(--space-3); background: #fff; color: var(--color-navy-900); padding: 10px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-hover); font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.devices__badge .icon { color: var(--color-success); }

/* ========== 8. Cards ========== */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); transition: transform var(--ease), box-shadow var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-primary-50); color: var(--color-primary); margin-bottom: var(--space-5); }
.card__link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2); }
.card p { color: var(--color-muted); }
.service-card { position: relative; display: flex; flex-direction: column; }
.service-card p { flex: 1; }
.service-card .card__link { color: var(--color-primary); }
.service-card:hover .card__link .icon { transform: translateX(3px); }
.card__link .icon { transition: transform var(--ease); }
.card__title-link { color: inherit; }
.card__title-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card__title-link:focus-visible { outline: none; }
.card__title-link:focus-visible::after { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; line-height: 1.5; background: var(--color-primary-50); color: var(--color-primary-dark); }
.tag--game { background: #F1EAFE; color: #6D28D9; }

.portfolio-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--ease), box-shadow var(--ease); }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.portfolio-card__media { display: block; overflow: hidden; }
.portfolio-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; transition: transform 400ms ease; }
.portfolio-card:hover img { transform: scale(1.04); }
.portfolio-card__body { padding: var(--space-5); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.portfolio-card__body h3 { margin: var(--space-3) 0 var(--space-2); font-size: 1.25rem; }
.portfolio-card__body h3 a { color: var(--color-navy-900); }
.portfolio-card__body h3 a:hover { color: var(--color-primary); }
.portfolio-card__body p { color: var(--color-muted); font-size: 1rem; flex: 1; }

.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card__media { display: block; overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 400ms ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-5) 0; font-size: var(--fs-small); color: var(--color-muted); }
.post-card h3 { padding: var(--space-3) var(--space-5) 0; margin-bottom: var(--space-2); font-size: 1.25rem; }
.post-card h3 a { color: var(--color-navy-900); }
.post-card h3 a:hover { color: var(--color-primary); }
.post-card p { padding-inline: var(--space-5); font-size: 1rem; flex: 1; }
.post-card .card__link { padding: 0 var(--space-5) var(--space-5); }

/* Why-us feature list */
.features { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.feature { display: flex; gap: var(--space-4); align-items: flex-start; }
.feature__icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-md); background: rgba(11,95,255,.18); color: #8FB4FF; }
.feature h3 { font-size: 1.125rem; margin-bottom: var(--space-1); }
.feature p { margin: 0; font-size: 1rem; }
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-8); align-items: start; }
.why-grid .section-head { text-align: left; margin: 0; }
.section--dark .section-head p { color: rgba(255,255,255,.7); }
.section--dark .eyebrow { color: #8FB4FF; }

/* Check list */
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.check-list .icon { color: var(--color-success); margin-top: 4px; }

/* Testimonials (scroll-snap row on mobile) */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.testimonial blockquote { margin: 0 0 var(--space-5); font-size: 1.0625rem; color: var(--color-text); }
.testimonial .icon { color: var(--color-primary); margin-bottom: var(--space-4); }
.testimonial figcaption strong { display: block; color: var(--color-navy-900); }
.testimonial figcaption span { color: var(--color-muted); font-size: var(--fs-small); }

/* Tech chips */
.tech-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); max-width: 900px; margin-inline: auto; }
.tech-chip { padding: 10px 20px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--color-border); color: var(--color-muted); font-weight: 600; font-size: 0.9375rem; transition: color var(--ease), border-color var(--ease), transform var(--ease); }
.tech-chip:hover { color: var(--color-primary); border-color: var(--color-primary); transform: translateY(-2px); }

/* ========== 9. Stats, steps, FAQ ========== */
.stats-section { padding-block: var(--space-7); border-bottom: 1px solid var(--color-border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); text-align: center; }
.stat { display: flex; flex-direction: column; gap: var(--space-2); }
.stat__num { font: 800 3rem/1 var(--font-heading); color: var(--color-primary); }
.stat__num--text { font-size: 2rem; line-height: 1.5; }
.stat__label { color: var(--color-muted); font-size: var(--fs-small); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); position: relative; }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; margin-bottom: var(--space-4); box-shadow: 0 0 0 6px var(--color-surface); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 24px; left: 60px; right: calc(-1 * var(--space-5) + 12px); border-top: 2px dashed #B9CCF5; }
.step__title { font-size: 1.125rem; margin-bottom: var(--space-2); }
.step p { color: var(--color-muted); font-size: 0.9375rem; margin: 0; }
.faq details { border-bottom: 1px solid var(--color-border); padding-block: var(--space-5); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--color-navy-900); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--color-primary); }
.faq details[open] summary::after { content: '\2212'; }
.faq__answer { padding-top: var(--space-3); color: var(--color-muted); }
.faq__answer p:last-child { margin-bottom: 0; }


/* ========== 10. Forms ========== */
.form-row { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
label { font-weight: 600; font-size: var(--fs-small); color: var(--color-navy-900); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; color: var(--color-text); border: 1px solid #CBD5E1; border-radius: var(--radius-sm); background: #fff; transition: border-color var(--ease), box-shadow var(--ease); }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-50); }
.field-error { color: var(--color-error); font-size: var(--fs-small); }
.form-status--success { color: var(--color-success); }
.form-status--error { color: var(--color-error); }
.hp-field { position: absolute; left: -9999px; }

/* ========== 11. CTA band, footer, WhatsApp ========== */
.cta-section { padding-top: var(--section-y); }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--color-navy-900), var(--color-primary-dark)); color: #fff; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::before { content: ''; position: absolute; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band__text { max-width: 600px; margin: 0 auto var(--space-6); color: rgba(255,255,255,.85); }
.site-footer { background: var(--color-navy-900); color: rgba(255,255,255,.72); padding-top: var(--space-9); font-size: 0.9375rem; }
.site-footer h4, .footer-title { color: #fff; font-size: 1rem; margin-bottom: var(--space-4); font-family: var(--font-heading); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--space-7); }
.footer-logo { display: inline-block; margin-bottom: var(--space-4); }
.footer-logo img { width: 146px; height: 32px; }
.footer-brand p { max-width: 320px; }
.footer-links li { margin-bottom: var(--space-3); }
.footer-contact p { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.footer-contact .icon { margin-top: 4px; color: #8FB4FF; }
.social-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.social-list a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.social-list a:hover { background: var(--color-primary); }
.footer-bottom { margin-top: var(--space-8); padding-block: var(--space-5); border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.whatsapp-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform var(--ease); animation: wa-pulse 1.6s ease-out 1.2s 1; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6), 0 8px 24px rgba(37,211,102,.4); } 100% { box-shadow: 0 0 0 22px rgba(37,211,102,0), 0 8px 24px rgba(37,211,102,.4); } }
.breadcrumbs { font-size: var(--fs-small); color: var(--color-muted); margin-bottom: var(--space-4); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.breadcrumbs li + li::before { content: '\203A'; margin-right: var(--space-2); color: var(--color-muted); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.hero .breadcrumbs, .hero .breadcrumbs a, .hero .breadcrumbs li + li::before { color: rgba(255,255,255,.7); }
.hero .breadcrumbs a:hover { color: #fff; }

/* ========== 12b. Inner pages: hero, service sections ========== */
.hero--page { padding-block: clamp(48px, 7vw, 88px); }
.hero--page .hero__lead { max-width: 720px; }
.hero--page .hero__lead:last-child { margin-bottom: 0; }
.hero__page-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; }
.hero__icon { width: 200px; height: 200px; display: grid; place-items: center; border-radius: 48px; color: #fff; background: linear-gradient(135deg, rgba(11,95,255,.55), rgba(124,58,237,.45)); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 30px 60px rgba(0,0,0,.3); transform: rotate(-6deg); }
.hero__icon .icon { stroke-width: 1.25; }
.offer-card h3 { font-size: 1.1875rem; }
.offer-card p { margin: 0; }
.offer-card--compact { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); }
.offer-card--compact .card__icon { margin: 0; flex-shrink: 0; }
.offer-card--compact h3 { margin: 0; font-size: 1.0625rem; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); max-width: 960px; margin-inline: auto; }
.chip { padding: 10px 20px; border-radius: var(--radius-pill); background: var(--color-primary-50); color: var(--color-primary-dark); font-weight: 600; font-size: 0.9375rem; }
.check-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); max-width: 1000px; margin-inline: auto; }
.check-grid li { display: flex; gap: var(--space-3); align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); font-weight: 500; color: var(--color-navy-900); }
.check-grid .icon { color: var(--color-success); margin-top: 2px; }
.prose-block { max-width: 720px; margin-inline: auto; text-align: center; font-size: 1.125rem; }
.section-note { text-align: center; color: var(--color-muted); max-width: 720px; margin: calc(-1 * var(--space-5)) auto var(--space-7); }
.flow { list-style: none; counter-reset: flow; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.flow li { counter-increment: flow; position: relative; display: flex; align-items: center; gap: var(--space-3); padding: 12px 20px 12px 12px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-pill); font-weight: 600; color: var(--color-navy-900); box-shadow: var(--shadow-card); }
.flow li::before { content: counter(flow); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 0.875rem; }
.flow li:not(:last-child)::after { content: '\2192'; position: absolute; right: -15px; color: var(--color-primary); font-weight: 700; z-index: 1; }
.price-panel { max-width: 820px; margin-inline: auto; text-align: center; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-card); }
.price-panel > p { font-size: 1.0625rem; }
.faq-wrap { max-width: 820px; margin-inline: auto; }
.split-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-card); }
.split-panel > div { flex: 1 1 420px; }
.split-panel p { color: var(--color-muted); margin: 0; }
.game-card { display: flex; flex-direction: column; }
.game-card__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.game-card__head img { width: 64px; height: 64px; border-radius: 16px; }
.game-card__head h3 { margin: 0; }
.game-card__shot { width: 100%; max-height: 360px; object-fit: cover; object-position: top; border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.game-card p { flex: 1; }
.play-badge { display: inline-flex; align-items: center; gap: var(--space-3); align-self: flex-start; background: #000; color: #fff; padding: 8px 18px 8px 14px; border-radius: 10px; font-weight: 600; line-height: 1.1; transition: transform var(--ease); }
.play-badge:hover { color: #fff; transform: translateY(-2px); }
.play-badge small { display: block; font-size: 0.6875rem; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.play-badge .icon { fill: currentColor; }
@media (max-width: 1024px) { .hero__icon { display: none; } .hero__page-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow li:not(:last-child)::after { content: '\2193'; right: auto; left: 24px; bottom: -19px; }
}

/* ========== 12c. Company & work pages ========== */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: center; }
.story-grid p { font-size: 1.125rem; }
.story-art { position: relative; min-height: 340px; }
.story-art img { position: absolute; width: 78%; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.story-art img:first-child { top: 0; right: 0; }
.story-art img:nth-child(2) { bottom: 0; left: 0; }
.story-art__year { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--color-navy-900); color: #fff; font: 800 1.25rem/1 var(--font-heading); padding: 16px 22px; border-radius: var(--radius-md); box-shadow: var(--shadow-hover); white-space: nowrap; }
.team-card { text-align: center; }
.team-card img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--space-4); }

.timeline { list-style: none; max-width: 820px; margin-inline: auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 2px dashed #B9CCF5; }
.timeline__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--space-5); padding-bottom: var(--space-7); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font: 800 1.25rem/1 var(--font-heading); box-shadow: 0 0 0 8px #fff; }
.timeline__body { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); box-shadow: var(--shadow-card); }
.timeline__title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.timeline__when { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.timeline__body p { margin: 0; color: var(--color-muted); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-7); }
.filter-btn { min-height: 44px; padding: 10px 22px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: #fff; color: var(--color-navy-900); font: 600 0.9375rem/1 var(--font-body); cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn[aria-pressed='true'] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
[data-filter-list] [hidden] { display: none; }
[data-filter-list].grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.hero__tag { margin-bottom: var(--space-3); }
.case-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-8); align-items: start; }
.case-cover { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: var(--space-7); }
.case-block { margin-bottom: var(--space-7); }
.case-block h2 { font-size: var(--fs-h3); }
.case-side { position: sticky; top: calc(var(--header-h) + 24px); }
.case-facts__title { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); margin: 0 0 var(--space-3); }
.case-facts .chip-list { margin-bottom: var(--space-5); }
.case-facts p { margin: 0; word-break: break-word; }
.chip-list--left { justify-content: flex-start; }
.case-facts:hover { transform: none; }

.title-row { display: grid; grid-template-columns: minmax(260px, 1fr) 1.6fr; gap: var(--space-8); align-items: center; scroll-margin-top: calc(var(--header-h) + 16px); }
.title-row__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-card); margin-bottom: var(--space-5); }
.title-row__summary { font-size: 1.125rem; color: var(--color-muted); }
.title-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-5); }
.title-row__privacy { font-size: var(--fs-small); font-weight: 600; }
.shots { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.shots img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.shots--empty img { border-radius: var(--radius-lg); width: 100%; }
.play-badge--pending { opacity: .85; cursor: default; }
.play-badge--pending:hover { transform: none; }

.empty-state { max-width: 640px; margin-inline: auto; text-align: center; background: #fff; border: 1px dashed #B9CCF5; border-radius: var(--radius-xl); padding: var(--space-7) var(--space-6); color: var(--color-primary); }
.empty-state .icon { margin: 0 auto var(--space-4); }
.empty-state p { color: var(--color-text); margin: 0; }
.job-card__meta { display: flex; align-items: center; gap: var(--space-2); }

@media (max-width: 1024px) {
  .story-grid, .case-grid, .title-row { grid-template-columns: 1fr; gap: var(--space-7); }
  .case-side { position: static; }
}
@media (max-width: 600px) {
  .story-art { min-height: 260px; }
  .shots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); }
  .shots li { scroll-snap-align: start; }
  .timeline::before { left: 21px; }
  .timeline__item { grid-template-columns: 44px 1fr; gap: var(--space-4); }
  .timeline__num { width: 44px; height: 44px; font-size: 1rem; }
  .timeline__body { padding: var(--space-4) var(--space-5); }
}

/* ========== 12d. Contact, quote, 404 ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-8); align-items: start; }
.contact-cards { list-style: none; display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.contact-card { display: flex; gap: var(--space-4); align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.contact-card strong { display: block; color: var(--color-navy-900); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; }
.contact-card a, .contact-card span span { font-weight: 500; word-break: break-word; }
.contact-card__icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--color-primary-50); color: var(--color-primary); }
.contact-card__icon--wa { background: #E7F9EE; color: #128C4A; }
.map-box { min-height: 64px; }
.map-btn { width: 100%; }
.map-frame { width: 100%; height: 320px; border: 0; border-radius: var(--radius-lg); }
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-5); }
.form-row .field-error { margin: 0; min-height: 0; }
.form-row .field-error:empty { display: none; }
[aria-invalid='true'] { border-color: var(--color-error); }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
.fieldset legend { font-weight: 600; font-size: var(--fs-small); color: var(--color-navy-900); margin-bottom: var(--space-2); padding: 0; }
.check-options { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.check-option { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-4); border: 1px solid #CBD5E1; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; }
.check-option input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--color-primary); }
.check-option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-50); }
.check-option:has(input:focus-visible) { outline: 3px solid var(--color-primary); outline-offset: 2px; }
input[type='file'] { padding: 10px; cursor: pointer; }
.textarea--short { min-height: 96px; }
.form-note { font-size: var(--fs-small); color: var(--color-muted); }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status:empty { display: none; }
.form-status--success { color: #15803D; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.quote-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--space-7); align-items: start; }
.quote-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--space-4); }
.next-card:hover { transform: none; }
.next-card h2 { font-size: var(--fs-h3); }
.next-steps { counter-reset: next; list-style: none; display: grid; gap: var(--space-4); }
.next-steps li { counter-increment: next; display: flex; gap: var(--space-3); align-items: flex-start; }
.next-steps li::before { content: counter(next); flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; font-size: .875rem; }
.wa-card { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-lg); background: #E7F9EE; color: #0F5132; font-weight: 500; }
.wa-card:hover { color: #0F5132; background: #D4F4E0; }
.wa-card .icon { color: #128C4A; }
.wa-card strong { display: block; color: #0F5132; }
.hero--404 { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.hero--404 .hero__lead { margin-inline: auto; }
.hero__code { font: 800 clamp(5rem, 14vw, 9rem)/1 var(--font-heading); margin: 0 0 var(--space-4); background: linear-gradient(120deg, #8FB4FF, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 1024px) {
  .contact-grid, .quote-grid { grid-template-columns: 1fr; }
  .quote-side { position: static; }
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ========== 12e. Blog, FAQ and legal ========== */
.container--narrow { max-width: 808px; }
.hero__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero__link:hover { color: #C7D8FF; }
.hero--post h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.post-meta { color: rgba(255,255,255,.75); font-size: var(--fs-small); margin: 0; }
.section--post { padding-top: var(--space-7); }
.post-cover { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin-bottom: var(--space-7); }
.prose { font-size: 1.0625rem; line-height: 1.8; }
.prose h2 { margin-top: var(--space-7); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose h3 { margin-top: var(--space-6); font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--color-primary); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose code { font-size: .9em; background: var(--color-surface); padding: 2px 6px; border-radius: 4px; }
.prose .lead { font-size: 1.25rem; color: var(--color-navy-900); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.prose thead th { background: var(--color-surface); color: var(--color-navy-900); }
.prose tbody th { color: var(--color-navy-900); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.post-cta { display: flex; gap: var(--space-5); align-items: flex-start; margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--radius-xl); background: var(--color-primary-50); border: 1px solid #CFE0FF; }
.post-cta .card__icon { background: #fff; flex-shrink: 0; margin: 0; }
.post-cta__title { font: 700 1.25rem/1.3 var(--font-heading); color: var(--color-navy-900); margin-bottom: var(--space-2); }
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); padding: 0; overflow: hidden; margin-bottom: var(--space-7); align-items: center; }
.post-featured__media img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-featured__body { padding: var(--space-6); }
.post-featured__body .post-card__meta { padding: 0 0 var(--space-3); }
.post-featured__body h2 a { color: var(--color-navy-900); }
.post-featured__body h2 a:hover { color: var(--color-primary); }
.post-list .post-card h2 { padding: var(--space-3) var(--space-5) 0; margin-bottom: var(--space-2); font-size: 1.25rem; }
.post-list .post-card h2 a { color: var(--color-navy-900); }
.faq-page { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-8); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-nav ul { list-style: none; display: grid; gap: var(--space-1); }
.faq-nav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--color-navy-900); font-weight: 600; }
.faq-nav a:hover { background: var(--color-primary-50); color: var(--color-primary); }
.faq-group { margin-bottom: var(--space-8); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group h2 { font-size: var(--fs-h3); margin-bottom: 0; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-8); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-small); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.legal-toc__title { font-weight: 700; color: var(--color-navy-900); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-3); }
.legal-toc ol { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.legal-toc a { color: var(--color-muted); }
.legal-toc a:hover { color: var(--color-primary); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.375rem; margin-top: var(--space-7); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-contact { margin-top: var(--space-7); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); }
.legal-contact p { margin: 0; }
@media (max-width: 900px) {
  .post-featured, .faq-page, .legal-grid { grid-template-columns: 1fr; }
  .faq-nav, .legal-toc { position: static; max-height: none; }
  .faq-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .faq-nav a { background: var(--color-primary-50); border-radius: var(--radius-pill); padding: 8px 16px; }
  .faq-group { margin-bottom: var(--space-7); }
}
@media (max-width: 600px) { .post-cta { flex-direction: column; } }

/* ========== 12. Scroll reveal ========== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.card.reveal.is-visible, .portfolio-card.reveal.is-visible { transition: opacity 600ms ease, transform var(--ease), box-shadow var(--ease); }

/* ========== 13. Responsive ========== */
@media (max-width: 1100px) {
  .nav, .nav__list { gap: var(--space-5); }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .devices { max-width: 520px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-7); }
  .step:nth-child(3n)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .testimonials { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(85%, 380px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); }
  .testimonial { scroll-snap-align: start; }
}
/* Mobile navigation: full-screen panel (desktop header items don't fit under ~960px) */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: var(--space-5) var(--space-5) var(--space-7); gap: var(--space-5); overflow-y: auto; z-index: 99; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--color-border); }
  .nav__list > li > a { display: block; padding: 14px 0; font-size: 1.125rem; font-weight: 600; }
  .has-mega { flex-wrap: wrap; justify-content: space-between; }
  .has-mega::after { display: none; }
  .has-mega > .nav__parent { flex: 1; }
  .mega-toggle { min-width: 48px; min-height: 48px; }
  .mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 var(--space-3); grid-template-columns: 1fr; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega.is-open .mega { display: grid; }
  .nav__cta { width: 100%; }
  .nav-toggle { display: block; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter makes the header a containing block for position:fixed, so drop it while the panel is open */
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: var(--space-6); }
  .stat__num { font-size: 2.5rem; }
  .stat__num.stat__num--text { font-size: 1.75rem; }
  .footer-bottom { padding-bottom: 88px; } /* keep legal links clear of the WhatsApp button */
  .steps { grid-template-columns: 1fr; row-gap: var(--space-5); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-4); }
  .step::before { grid-row: span 2; margin: 0; }
  .step:not(:last-child)::after, .step:nth-child(3n)::after { display: block; top: 56px; bottom: calc(-1 * var(--space-5)); left: 23px; right: auto; border-top: 0; border-left: 2px dashed #B9CCF5; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero__lead { font-size: 1.125rem; }
  .btn-group .btn { flex: 1 1 auto; }
  .devices__badge { left: 0; font-size: 0.8125rem; padding: 8px 12px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .portfolio-card:hover, .btn:hover { transform: none; }
}
