/* AFCR — Sistema de Diseño v2 (Solver-inspired)
   ────────────────────────────────────────── */

:root {
  /* Palette — default: Orange */
  --ink: #0A1426;
  --ink-2: #0E1B2E;
  --ink-3: #182742;
  --ink-deep: #050B17;
  --cream: #FFFFFF;
  --paper: #F4F6FA;
  --paper-2: #E8EEF6;
  --paper-3: #DCE3EE;

  --accent: #2D8A6F;
  --accent-2: #4DBA9A;
  --accent-hover: #1F6B55;
  --accent-soft: #CFEBE0;
  --on-accent: #FFFFFF;
  --accent-grad: linear-gradient(135deg, #4DBA9A 0%, #2D8A6F 100%);

  --stone: #5C6A82;
  --stone-2: #8898B3;
  --line: #DCE3EE;
  --line-strong: #C5CFE0;
  --line-dark: rgba(255, 255, 255, 0.10);
  --line-dark-strong: rgba(255, 255, 255, 0.18);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --maxw: 1340px;
  --gutter: clamp(20px, 4vw, 56px);

  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-lg: 0 30px 60px -20px rgba(10, 20, 38, 0.25);
  --shadow-md: 0 14px 30px -12px rgba(10, 20, 38, 0.18);
}

/* Accent palettes — Tweaks */
:root[data-accent="amber"] {
  --accent: #E89A1F;
  --accent-2: #F4C24A;
  --accent-hover: #C77F0A;
  --accent-soft: #FBEFCB;
  --accent-grad: linear-gradient(135deg, #F4C24A 0%, #E89A1F 100%);
}
:root[data-accent="crimson"] {
  --accent: #D4445C;
  --accent-2: #ED7A8E;
  --accent-hover: #B12F46;
  --accent-soft: #F8D7DD;
  --accent-grad: linear-gradient(135deg, #ED7A8E 0%, #D4445C 100%);
}
:root[data-accent="gold"] {
  --accent: #FF7A2A;
  --accent-2: #FFB45A;
  --accent-hover: #E66515;
  --accent-soft: #FFE3CB;
  --accent-grad: linear-gradient(135deg, #FFB45A 0%, #FF7A2A 100%);
}
:root[data-accent="forest"] {
  --accent: #2D8A6F;
  --accent-2: #4DBA9A;
  --accent-hover: #1F6B55;
  --accent-soft: #CFEBE0;
  --accent-grad: linear-gradient(135deg, #4DBA9A 0%, #2D8A6F 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ── Keyboard focus (a11y) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #C94F4F;
}

/* ── Typography ─────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.light { color: rgba(255, 255, 255, 0.92); }
.hero-slide .eyebrow.light {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.hero-slide .eyebrow.light::before { background: var(--accent-2); width: 40px; }
.eyebrow .dot { display: none; }

.h-display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-size: clamp(40px, 6.4vw, 92px);
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.h-display .it,
.h-display .alt {
  font-style: normal;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h1 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-size: clamp(36px, 4.8vw, 64px);
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.h1 .alt, .h1 .it {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 0;
  text-wrap: balance;
}
.h2 .alt, .h2 .it {
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-size: clamp(20px, 1.6vw, 24px);
  margin: 0;
}
.h-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}

.lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--stone);
  max-width: 60ch;
  text-wrap: pretty;
  font-weight: 400;
}
.body { color: var(--stone); }
.muted { color: var(--stone-2); }

.light-text { color: var(--cream); }
.light-text .lede,
.light-text .body { color: rgba(255, 255, 255, 0.78); }
.light-text .h1,
.light-text .h2,
.light-text .h3,
.light-text .h-display { color: var(--cream); }

/* ── Client trust marquee ───────────────────────── */
.client-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.client-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  will-change: transform;
  animation: clientScroll 55s linear infinite;
}
.client-track span:not(.client-sep) {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s ease;
}
.client-track span:not(.client-sep):hover { color: #fff; }
.client-sep {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: 0.55; flex: none;
}
@keyframes clientScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-marquee:hover .client-track { animation-play-state: paused; }
html[data-motion="off"] .client-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; }
}

/* ── Verse marquee ───────────────────────── */
.verse-marquee {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 16px 0;
  white-space: nowrap;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.verse-track {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  white-space: nowrap;
  will-change: transform;
  animation: verseScroll 32s linear infinite;
}
.verse-track span {
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  color: rgba(245, 239, 227, 0.75);
  padding: 0 40px;
}
.verse-track span em {
  color: var(--accent-soft);
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-left: 8px;
}
@keyframes verseScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.verse-marquee:hover .verse-track { animation-play-state: paused; }
html[data-motion="off"] .verse-track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .verse-track { animation: none; }
}

/* ── Accessibility: visible keyboard focus ──────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

/* ── Layout ─────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.divider { border: 0; height: 1px; background: var(--line); margin: 0; }
.divider-dark { background: var(--line-dark); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow {
  width: 16px; height: 16px;
  transition: transform 0.22s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 8px -4px rgba(10, 20, 38, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 6px 16px -6px rgba(10, 20, 38, 0.3);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: var(--ink-3); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }

.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--cream); }

.btn-sm { padding: 12px 20px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }

.link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ── Top utility bar ────────────────────────────── */
.utility-bar {
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 400;
  pointer-events: none;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  pointer-events: auto;
}
.utility-bar a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.utility-bar a:hover { color: var(--accent-2); }
.utility-bar .util-group { display: flex; gap: 32px; align-items: center; }
.utility-bar .util-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.18); }
.utility-bar .socials { display: flex; gap: 14px; }
.utility-bar .socials a {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.utility-bar .socials svg { width: 14px; height: 14px; fill: currentColor; }

/* ── Main nav ───────────────────────────────────── */
.nav {
  position: absolute;
  top: 46px; left: 0; right: 0;
  z-index: 31;
  background: transparent;
  pointer-events: none;
}
/* Readability scrim behind the transparent home nav (over the photo) */
.nav:not(.classic):not(.light)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -46px;
  height: 150px;
  background: linear-gradient(180deg, rgba(5, 11, 23, 0.6) 0%, rgba(5, 11, 23, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.nav.scrolled::before { opacity: 0; }
.nav.scrolled {
  position: fixed; top: 0;
  background: rgba(10, 20, 38, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  pointer-events: auto;
}
.nav-logo-img { display: block; height: 26px; width: auto; }

/* Contact form success toast — centered, instant, creative */
.contact-toast {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.contact-toast.show {
  opacity: 1;
  pointer-events: auto;
}
.contact-toast-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 38, 0.35);
  backdrop-filter: blur(3px);
}
.contact-toast-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--paper, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  padding: 36px 40px 32px;
  max-width: 340px;
  transform: scale(0.85) translateY(8px);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.contact-toast.show .contact-toast-card {
  transform: scale(1) translateY(0);
}
.contact-toast-logo { height: 20px; width: auto; opacity: 0.85; margin-bottom: 18px; }
.contact-toast-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  transform: scale(0);
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.contact-toast.show .contact-toast-check { transform: scale(1); }
.contact-toast-check svg { width: 22px; height: 22px; }
.contact-toast-title {
  margin: 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.contact-toast-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.nav.classic .nav-logo-img, .nav.light .nav-logo-img { filter: none; }
.nav-billing {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.42);
  transition: color 0.2s ease;
  white-space: nowrap;
  margin-left: 8px;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.nav-billing:hover { color: var(--cream); }
.nav.classic .nav-billing, .nav.light .nav-billing { color: var(--ink-3); }
.nav.classic .nav-billing:hover, .nav.light .nav-billing:hover { color: var(--ink); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .word {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.nav-logo-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.nav.classic .nav-logo-sub,
.nav.light .nav-logo-sub { color: var(--ink-3); }

/* Hero bottom scrim — anchors headline over the photo */
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,20,38,0) 45%, rgba(10,20,38,0.55) 78%, rgba(10,20,38,0.82) 100%);
}

/* Hero social-proof strip */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-proof-item { display: flex; flex-direction: column; gap: 4px; }
.hero-proof-num {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1;
}
.hero-proof-lbl {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.7);
}
@media (max-width: 640px) {
  .hero-proof { gap: 20px 28px; margin-top: 32px; padding-top: 22px; }
  .hero-proof-item { flex: 1 1 40%; }
  .hero-proof-num { font-size: 28px; }
  .hero-proof-lbl { font-size: 12px; }
}

@media (max-width: 480px) {
  .nav-logo-sub { display: none; }
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 1px;
}
.nav-cta { display: flex; gap: 16px; align-items: center; }

.nav-search {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.2s;
}
.nav-search:hover { background: rgba(255,255,255,0.08); }
.nav-search svg { width: 16px; height: 16px; }

/* — Nav variant: CLASSIC (sticky cream for inner pages) — */
.nav.classic {
  position: sticky;
  top: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav.classic .nav-logo .word { color: var(--ink); }
.nav.classic .nav-links a { color: var(--ink-3); font-weight: 600; }
.nav.classic .nav-links a:hover,
.nav.classic .nav-links a.active { color: var(--ink); }
.nav.classic .nav-search { color: var(--ink); border-color: var(--line-strong); }

.utility-bar.classic {
  position: static;
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.75);
}
.utility-bar.classic a { color: rgba(255, 255, 255, 0.75); }
.utility-bar.classic a:hover { color: var(--accent-2); }

/* — Nav variant: LIGHT (for inner pages w/ light hero) — */
.nav.light .nav-logo .word { color: var(--ink); }
.nav.light .nav-links a { color: var(--ink-3); font-weight: 600; }
.nav.light .nav-links a:hover, .nav.light .nav-links a.active { color: var(--ink); }
.nav.light .nav-search { color: var(--ink); border-color: var(--line-strong); }
.nav.light .afcr-mark rect:not([fill="var(--accent)"]):not([fill^="url"]) { fill: var(--ink); }

.utility-bar.light { color: var(--stone); }
.utility-bar.light a { color: var(--stone); }
.utility-bar.light a:hover { color: var(--accent); }
.utility-bar.light .util-sep { background: var(--line); }

/* ── Logo SVG ───────────────────────────────────── */
.afcr-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

/* ── Hero photo (real image + grading overlay) ── */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    /* darken the right where the glass form sits */
    linear-gradient(95deg, rgba(10,20,38,0.20) 0%, rgba(10,20,38,0.55) 60%, rgba(10,20,38,0.78) 100%),
    /* readability lift on the left (text area) */
    linear-gradient(180deg, rgba(10,20,38,0.50) 0%, rgba(10,20,38,0.20) 40%, rgba(10,20,38,0.55) 100%),
    url("assets/hero.jpg") center center / cover no-repeat,
    /* fallback gradient if image fails */
    linear-gradient(180deg, #142235 0%, #0A1426 45%, #050B17 100%);
}
.hero-photo::before { content: none; }
.hero-photo::after { content: none; }
/* Optional architectural detail layer */
.hero-photo-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none; /* image already provides the architecture */
}

/* ── Services bento (editorial + cursor spotlight) ── */
.svc-bento {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.svc-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px;
  background: var(--cream);
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
.svc-card--feature {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.svc-card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(31,138,91,0.14), transparent 62%);
}
.svc-card--feature::before {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,170,90,0.18), transparent 60%);
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px -34px rgba(10,20,38,0.4);
}
.svc-card--feature:hover {
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 30px 70px -34px rgba(10,20,38,0.7);
}
.svc-num {
  position: absolute; top: 24px; right: 30px;
  font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink); opacity: 0.06; pointer-events: none;
}
.svc-card--feature .svc-num { color: var(--cream); opacity: 0.13; }
.svc-top { position: relative; z-index: 1; }
.svc-kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.svc-card--feature .svc-kicker { color: var(--accent-soft); }
.svc-title {
  font-family: var(--display); font-weight: 800; font-size: 30px;
  letter-spacing: -0.02em; margin: 12px 0 0; color: inherit;
}
.svc-desc {
  margin: 14px 0 0; font-size: 14.5px; line-height: 1.6;
  color: var(--stone); max-width: 36ch;
}
.svc-card--feature .svc-desc { color: rgba(255,255,255,0.72); }
.svc-list {
  list-style: none; padding: 0; margin: 26px 0 0;
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
}
.svc-list li {
  font-size: 14px; color: var(--ink); padding: 11px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.svc-list li::before { content: "→"; color: var(--accent); font-weight: 700; }
.svc-card--feature .svc-list li { color: rgba(255,255,255,0.9); border-top-color: rgba(255,255,255,0.12); }
.svc-card--feature .svc-list li::before { color: var(--accent-soft); }
.svc-list--inline { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-list--inline li {
  border: none; padding: 7px 13px; background: var(--paper);
  border-radius: 999px; font-size: 12.5px; color: var(--stone);
}
.svc-list--inline li::before { content: none; }
.svc-cta {
  margin-top: auto; padding-top: 28px; align-self: flex-start;
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; color: inherit;
}
.svc-card--feature .svc-cta { color: var(--cream); }
.svc-cta svg { transition: transform 0.25s ease; }
.svc-card:hover .svc-cta svg { transform: translateX(4px); }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.25s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Glassmorphism ──────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  color: var(--cream);
}
.glass-dark {
  background: rgba(10, 20, 38, 0.62);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-xl);
  color: var(--cream);
}

/* ── Icon container (outlined squircle) ─────────── */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
  transition: all 0.2s ease;
}
.icon-box svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.icon-box.dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--cream); }
.icon-box.gradient { background: var(--accent-grad); border-color: transparent; color: var(--cream); }
.icon-box.lg { width: 80px; height: 80px; }
.icon-box.lg svg { width: 32px; height: 32px; }
.icon-box.sm { width: 44px; height: 44px; border-radius: var(--r-sm); }
.icon-box.sm svg { width: 18px; height: 18px; }

/* ── Image card (Solver-style portrait) ─────────── */
.image-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--paper-2);
}
a.image-card .img-cta { transition: transform 0.25s ease, background 0.25s ease; }
a.image-card:hover .img-cta { transform: translate(2px, -2px); background: var(--accent); border-color: var(--accent); color: #fff; }
.image-card .card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
a.image-card:hover .card-photo { transform: scale(1.05); }
/* legibility scrim so overlay text reads over any photo */
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,15,28,0.82) 0%, rgba(8,15,28,0.32) 34%, rgba(8,15,28,0) 60%);
  pointer-events: none;
  z-index: 1;
}
.image-card .img-overlay { z-index: 2; }
.image-card .ph {
  position: absolute;
  inset: 0;
}
.image-card .ph .ph-label { display: none; }
.image-card .img-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.image-card .img-meta {
  color: var(--cream);
  flex: 1;
  min-width: 0;
}
.image-card .img-meta h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.image-card .img-meta p {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  margin: 4px 0 0;
}
.image-card .img-cta {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  flex-shrink: 0;
}
.image-card .img-cta svg { width: 16px; height: 16px; }

/* ── Placeholder imagery (dark) ─────────────────── */
.ph {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(255, 160, 80, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #1a2b44 0%, #0A1426 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 49px,
    rgba(255, 255, 255, 0.06) 49px,
    rgba(255, 255, 255, 0.06) 50px
  );
}
.ph .ph-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(10, 20, 38, 0.6);
  padding: 5px 9px;
  border-radius: var(--r-xs);
}
.ph-light {
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(255, 180, 90, 0.15) 0%, transparent 65%),
    linear-gradient(180deg, #E8EEF6 0%, #D6DFEC 100%);
}
.ph-light::before {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 49px,
    rgba(10, 20, 38, 0.05) 49px,
    rgba(10, 20, 38, 0.05) 50px
  );
}
.ph-light .ph-label {
  background: rgba(255, 255, 255, 0.7);
  color: var(--stone);
}
.ph-warm {
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 140, 60, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, #3b2418 0%, #1d1108 100%);
}

/* ── Stat block ─────────────────────────────────── */
.stat-block {
  position: relative;
  padding-left: 24px;
}
.stat-block::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.stat-block .stat-num-small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--stone);
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-num .unit {
  font-family: var(--display);
  font-size: 0.4em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 6px;
}
.stat-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  margin-top: 12px;
}

/* ── Tabs (Solver-style with gradient underline) ── */
.tabs {
  display: inline-flex;
  gap: 6px;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}
.tab {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--stone);
  padding: 11px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border-radius: 999px;
  transition: color 0.28s ease;
}
.tab.active { color: var(--cream); }

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--ink-deep);
  color: var(--cream);
  padding: 96px 0 32px;
}
.footer a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.footer a:hover { color: var(--accent-2); }
.footer .h2 { color: var(--cream); }
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding: 64px 0 56px;
  border-top: 1px solid var(--line-dark);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin: 0 0 20px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { font-size: 14px; padding: 6px 0; color: rgba(255,255,255,0.7); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

/* ── WhatsApp float ─────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-grad);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  z-index: 80;
  box-shadow: 0 14px 40px -8px rgba(255, 122, 42, 0.5);
  transition: all 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 18px; height: 18px; }

/* ── Tweaks panel ───────────────────────────────── */
.tweaks {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 280px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: none;
  font-family: var(--sans);
  overflow: hidden;
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.tweaks-head h5 {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}
.tweaks-head button {
  border: 0;
  background: transparent;
  color: var(--stone);
  font-size: 22px;
  line-height: 1;
}
.tweaks-body { padding: 20px; }
.tweaks-body label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.swatch.active { border-color: var(--ink); }
.swatch span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--cream);
  padding-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ── Forms ──────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--stone); opacity: 0.7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Hero contact form (glassmorphism, underlined fields) */
.glass-form .field-line {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding: 14px 0;
}
.glass-form .field-line svg {
  width: 18px; height: 18px;
  stroke: rgba(255, 255, 255, 0.85);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.glass-form .field-line input,
.glass-form .field-line textarea {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  flex: 1;
  padding: 4px 0;
  resize: none;
}
.glass-form .field-line input::placeholder,
.glass-form .field-line textarea::placeholder { color: rgba(255,255,255,0.6); }

/* ── Chips ──────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.chip.gold {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--ink);
}
.chip.dark { background: rgba(255,255,255,0.08); border-color: var(--line-dark-strong); color: var(--cream); }

/* ── Section header pattern ─────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head .h1 { max-width: 14ch; }

/* ── Number stat (Solver "01 / 02 / 03") ────────── */
.num-stat {
  border-left: 1px solid var(--line);
  padding: 16px 0 16px 24px;
}
.num-stat .num-index {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.num-stat .num-value {
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.num-stat .num-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 12px;
  font-weight: 500;
}

/* ── Mobile nav (hamburger + drawer) ────────────── */
/* ── Hero carousel ──────────────────────────────── */
.hero-carousel { position: relative; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-nav { display: flex; align-items: center; gap: 20px; }
.hero-nav-num {
  font-family: var(--display); font-weight: 700;
  color: var(--cream); font-size: 18px; min-width: 2ch;
}
.hero-nav-total {
  font-family: var(--display); font-weight: 500;
  color: rgba(255,255,255,0.5); font-size: 18px;
}
.hero-nav-track {
  flex: 1; max-width: 200px; height: 2px;
  background: rgba(255,255,255,0.2);
  position: relative; border: 0; padding: 0;
  border-radius: 2px; cursor: pointer;
}
.hero-nav-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0; background: var(--accent-grad); border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.3s ease; transform: none; }
}

/* ── Mobile nav (hamburger + drawer) ───────────── */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav.classic .nav-toggle .bar,
.nav.light .nav-toggle .bar { background: var(--ink); }
.nav.classic .nav-toggle,
.nav.light .nav-toggle { border-color: var(--line-strong); }
body.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10, 20, 38, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 96px 28px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  font-family: var(--display);
  font-size: 30px; font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: -0.01em;
  transform: translateY(12px); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.2s ease;
}
body.menu-open .mobile-menu a.mm-link { transform: translateY(0); opacity: 1; }
.mobile-menu a.mm-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu a.mm-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu a.mm-link:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu a.mm-link:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu a.mm-link:nth-child(5) { transition-delay: 0.22s; }
.mobile-menu a.mm-link:nth-child(6) { transition-delay: 0.26s; }
.mobile-menu a.mm-link.active { color: var(--accent-2); }
.mobile-menu a.mm-link .mm-arrow { width: 20px; height: 20px; color: var(--accent-2); opacity: 0.7; }
.mobile-menu .mm-foot {
  margin-top: auto; padding-top: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu .mm-foot a { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; }
.mobile-menu .mm-cta { margin-top: 28px; }
.mobile-menu .mm-cta .btn { width: 100%; justify-content: center; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-search { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .utility-bar .util-group:first-child { display: none; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-billing { display: none; }
  .wa-float span { display: none; }
  .tweaks { width: calc(100% - 32px); left: 16px; bottom: 16px; }
}

/* ── Mobile hardening: kill horizontal overflow ──── */
@media (max-width: 820px) {
  /* Every inline multi-column grid collapses to one column */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Sections that set the grid on the section element itself */
  section[style*="grid-template-columns"] { display: block !important; }
  section[style*="min-height: 720px"] { min-height: 0 !important; }
  /* Services bento stacks */
  .svc-bento { grid-template-columns: 1fr; }
  .svc-card--feature { grid-column: auto; grid-row: auto; }
  /* Home tabs panel: stack copy over cards */
  .tab-panel.active { grid-template-columns: 1fr !important; gap: 36px !important; }
  /* Keep the small service cards 2-up (they're compact) */
  .tab-panel > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }
  /* Tabs: keep the pill compact and let it scroll if needed */
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { white-space: nowrap; flex: none; padding: 10px 18px; font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .h-display { font-size: clamp(30px, 9vw, 44px); line-height: 1.04; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
  /* Hero: tighten top padding so content lands above the fold */
  #inicio > .wrap { padding-top: 120px !important; padding-bottom: 48px !important; }
  #inicio .glass { padding: 28px !important; }
  .hero-slide .lede { max-width: 100% !important; }
  /* Hero photo: the diagonal dark-on-right gradient is a desktop device
     (darkens where the glass form sits) — on mobile everything stacks,
     so it just flattens the photo. Lighten it so the building reads. */
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(10,20,38,0.34) 0%, rgba(10,20,38,0.18) 30%, rgba(10,20,38,0.62) 78%, rgba(10,20,38,0.88) 100%),
      url("assets/hero.jpg") center center / cover no-repeat,
      linear-gradient(180deg, #142235 0%, #0A1426 45%, #050B17 100%);
  }
  .hero-photo-scrim { background: linear-gradient(180deg, rgba(10,20,38,0) 55%, rgba(10,20,38,0.5) 85%, rgba(10,20,38,0.78) 100%); }
  /* Any element that hard-codes a max-width in ch can overflow — cap it */
  [style*="max-width: 50ch"], [style*="max-width: 80ch"] { max-width: 100% !important; }
  /* Long words/emails never push the page wide */
  a, p, h1, h2, h3, span { overflow-wrap: break-word; }
  /* Photo/split sections get real height on mobile */
  section[style*="min-height: 600px"], div[style*="min-height: 600px"] { min-height: 340px !important; }
}

/* ── Reveal (opt-in via JS) ─────────────────────── */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ── Modal ──────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(10, 20, 38, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  display: none;
}
.modal.open { display: flex !important; }

/* ── FAQ ────────────────────────────────────────── */
.faq-item .faq-a { display: none; }
.faq-item.open .faq-a { display: block; animation: fadeIn 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; display: inline-block; color: var(--accent); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ════════════════════════════════════════════════
   INTERACTIONS v2  (senior UX pass)
   ════════════════════════════════════════════════ */

/* — Home tabs: real panel switching — */
.tab-panel {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.tab-panel.active {
  display: grid;
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.active > * { animation: panelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .tab-panel.active > *:last-child { animation-delay: 0.06s; }
}
@keyframes panelIn {
  from { transform: translateY(8px); }
  to   { transform: none; }
}
.tab { transition: color 0.2s ease; cursor: pointer; }
.tabs { position: relative; }
/* sliding pill that tracks the active tab */
.tabs .tab-ink {
  position: absolute;
  top: 6px; left: 0;
  bottom: 6px;
  height: auto;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(10,20,38,0.5);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.5, 1), width 0.42s cubic-bezier(0.34, 1.4, 0.5, 1);
  pointer-events: none;
  z-index: 0;
}
.tabs .tab.active::after { display: none; } /* JS ink replaces static underline */

/* — Home tabs: lighter, flatter service cards (less clutter) — */
.tab-panel .card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0 6px !important;
  box-shadow: none;
}
.tab-panel .card:hover {
  transform: none;
  border-color: var(--line-strong);
  background: transparent;
}
.tab-panel .icon-box.sm {
  width: 34px; height: 34px;
  background: transparent !important;
  border: none !important;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 0;
}
.tab-panel .icon-box.sm svg { width: 24px; height: 24px; stroke: var(--accent); }
.tab-panel .card h4 { margin-top: 0 !important; }

/* — Nav scroll state for inner (classic) pages — */
.nav.classic { transition: box-shadow 0.3s ease, background 0.3s ease; }
.nav.classic.scrolled {
  box-shadow: 0 8px 30px -16px rgba(10,20,38,0.28);
  border-bottom-color: var(--line-strong);
}
/* compact the home nav as it docks */
.nav { transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease; }

/* — Reveal: stagger delay is set inline by JS; add a gentle blur lift — */
.js-reveal-ready .reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

/* — Micro-interactions — */
.image-card .ph { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.image-card:hover .ph { transform: scale(1.06); }
.image-card .img-cta { transition: transform 0.25s ease, background 0.25s ease; }
.image-card:hover .img-cta { transform: translate(2px, -2px); }
.link svg { transition: transform 0.22s ease; }
.link:hover svg { transform: translateX(4px); }
.nav-links a { position: relative; }
.nav-links a::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); trans-origin: left;
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.5;
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links a.active::before { display: none; }
.chip { transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.chip:hover { transform: translateY(-1px); }
.wa-float { transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, visibility 0.25s ease; }
.wa-float-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.swatch { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.swatch:hover { transform: translateY(-2px); }

/* — Trend chart draw-on — */
.trend-line {
  stroke-dasharray: var(--trend-len, 900);
  stroke-dashoffset: var(--trend-len, 900);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.trend-line.drawn { stroke-dashoffset: 0; }
.trend-area { opacity: 0; transition: opacity 1s ease 0.5s; }
.trend-area.drawn { opacity: 1; }
.trend-dot { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.trend-dot.drawn { opacity: 1; transform: scale(1); }

/* — Hero parallax layer (home) — */
.hero-photo-layer { will-change: transform; transition: transform 0.2s ease-out; }

/* — Movimiento toggle (tweaks) — */
.tweaks .motion-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.tweaks .motion-row label { font-family: var(--sans); font-size: 13px; color: var(--ink); margin: 0; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line-strong); transition: background 0.22s ease;
}
.switch .thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track + .thumb { transform: translateX(18px); }

/* — Respect reduced motion + manual off — */
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tab-panel.active { animation: none; }
  .trend-line { transition: none; stroke-dashoffset: 0; }
  .trend-area, .trend-dot { transition: none; opacity: 1; transform: none; }
  .hero-photo-layer { transition: none; }
}
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-motion="off"] * {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}
html[data-motion="off"] .hero-photo-layer { transform: none !important; }
