/* ============================================================
   ASV AGENCY — Design system
   Monochrome, type-led, editorial. No external assets.
   ============================================================ */

/* ---- 1. Design tokens ---- */
:root {
  /* Ink + neutrals (strictly monochrome) */
  --ink:        #0f172a;   /* near-black, primary text */
  --ink-soft:   #1e293b;   /* secondary near-black */
  --gray-700:   #475569;   /* body on white, 7.6:1 */
  --gray-600:   #64748b;   /* muted body, 4.9:1 */
  --gray-500:   #94a3b8;   /* labels / meta on white, 3.1:1 (large only) */
  --gray-400:   #cbd5e1;   /* hairlines, dividers */
  --gray-300:   #e2e8f0;
  --gray-200:   #eef2f7;
  --gray-100:   #f6f8fb;   /* surface wash */
  --white:      #ffffff;

  /* Inverted tokens (on ink) */
  --ink-on-white-text: #f1f5f9;   /* text on ink, 14:1 */
  --ink-on-white-muted: #94a3b8;  /* muted on ink, 3.6:1 (labels) */

  /* Spacing scale — 4px base */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Segoe UI Mono", Menlo,
               Consolas, monospace;

  --text-display: clamp(2.5rem, 7.5vw, 5.25rem);
  --text-h2:      clamp(1.75rem, 4vw, 2.5rem);
  --text-h3:      clamp(1.125rem, 2vw, 1.375rem);
  --text-lead:    clamp(1.0625rem, 2vw, 1.25rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-label:   0.75rem;

  /* Tracking */
  --track-tight: -0.03em;
  --track-label: 0.22em;

  /* Shape */
  --radius: 6px;
  --hairline: 1px solid var(--gray-300);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 160ms;

  /* Layout */
  --container: 72rem;   /* 1152px */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
}

/* ---- 2. Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--gray-700);
  background-color: #eef1f6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%230f172a' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M0 50 H50 V100 H100'/%3E%3Cpath d='M200 150 H150 V100 H100'/%3E%3Cpath d='M50 0 V50'/%3E%3Cpath d='M150 200 V150'/%3E%3Cpath d='M100 100 H120 V60'/%3E%3Cpath d='M100 100 V120 H140'/%3E%3C/g%3E%3Cg fill='%230f172a' fill-opacity='0.09'%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3Ccircle cx='150' cy='150' r='1.6'/%3E%3Ccircle cx='120' cy='60' r='1.4'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(15, 23, 42, 0.09) 1px, transparent 1.7px),
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 200px 200px, 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, -20px -20px, 0 0, 0 0;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, figure, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: var(--white);
}

/* ---- 3. Accessibility: skip link + focus ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--white);
  font-size: var(--text-small);
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- 4. Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-24);
}

.section--tight { padding-block: var(--space-16); }

/* Section heading block */
.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-12);
}

.section-head--center { margin-inline: auto; text-align: center; }

/* Small uppercase label, wide tracking — echoes the logo lockup */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--gray-400);
}

.section-head--center .eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--gray-400);
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.08;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 40rem;
}

.section-head--center p { margin-inline: auto; }

/* ---- 5. Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;                 /* 48px tap target */
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.8);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.85);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gray-300);
}

.btn--ghost:hover { border-color: var(--ink); }

.btn--link {
  min-height: 3rem;
  padding: var(--space-3) var(--space-2);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.btn--link:hover { color: var(--gray-600); }

.btn__arrow {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(2px); }

/* ---- 6. Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: var(--hairline);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 2.5rem;                 /* 40px */
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: var(--track-label);
  color: var(--ink);
}

.brand__tag {
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;            /* 44px */
  padding: 0 var(--space-4);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--gray-100);
}

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: var(--hairline);
  border-radius: var(--radius);
}

.nav-toggle__bar {
  position: relative;
  width: 1.125rem;
  height: 2px;
  background: var(--ink);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.125rem;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle__bar::before { top: -0.375rem; }
.nav-toggle__bar::after { top: 0.375rem; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* ---- 7. Hero ---- */
.hero {
  position: relative;
  padding-block: var(--space-24) var(--space-20);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: center;
}

.hero__copy { max-width: 42rem; }

.hero h1 {
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}

.hero__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__trust {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  color: var(--gray-500);
}

.hero__trust svg {
  width: 1rem;
  height: 1rem;
  color: var(--gray-500);
}

/* Hero network motif — pure SVG line-art, echoes the logo */
.hero__art {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: -1;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.045);
}

.hero__art svg {
  width: 100%;
  max-width: 26rem;
  height: auto;
}

/* ---- 8. Problem ---- */
.problem {
  background: var(--gray-100);
  border-block: var(--hairline);
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.pain {
  padding-top: var(--space-6);
  border-top: 2px solid var(--ink);
}

.pain__index {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.pain h3 {
  margin-top: var(--space-3);
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 700;
}

.pain p {
  margin-top: var(--space-3);
  font-size: var(--text-body);
  color: var(--gray-600);
}

/* ---- 9. Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.service {
  padding: var(--space-8);
  border: var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 28px -22px rgba(15, 23, 42, 0.45);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-radius var(--dur) var(--ease);
}

.service:hover {
  border-color: var(--gray-400);
  border-radius: 18px;
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 22px 40px -24px rgba(15, 23, 42, 0.40);
}

.service__num {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.service h3 {
  margin-top: var(--space-4);
  font-size: var(--text-h3);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}

.service p {
  margin-top: var(--space-3);
  font-size: var(--text-body);
  color: var(--gray-600);
}

/* ---- 10. How it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: var(--hairline);
}

.step__mark {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 700;
}

.step h3 {
  margin-top: var(--space-3);
  font-size: var(--text-h3);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}

.step p {
  margin-top: var(--space-3);
  font-size: var(--text-body);
  color: var(--gray-600);
}

/* ---- 11. Metrics ---- */
.metrics {
  background: var(--ink);
  color: var(--ink-on-white-text);
}

.metrics .eyebrow { color: var(--ink-on-white-muted); }
.metrics .eyebrow::before,
.metrics .section-head--center .eyebrow::after { background: var(--gray-600); }

.metrics h2 { color: var(--white); }
.metrics .section-head p { color: var(--ink-on-white-muted); }

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
}

.metric {
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-600);
}

.metric h3 {
  font-size: var(--text-h3);
  line-height: 1.25;
  color: var(--white);
  font-weight: 600;
}

.metric p {
  margin-top: var(--space-3);
  font-size: var(--text-body);
  color: var(--ink-on-white-muted);
}

.metric__kpi {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---- 12. FAQ ---- */
.faq {
  max-width: 48rem;
  margin-inline: auto;
}

.faq__item {
  border-bottom: var(--hairline);
}

.faq__item:first-child { border-top: var(--hairline); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-1);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-500);
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq summary:hover { color: var(--gray-700); }

.faq__body {
  padding: 0 var(--space-1) var(--space-6);
  font-size: var(--text-body);
  color: var(--gray-600);
  max-width: 42rem;
}

/* ---- 13. Final CTA ---- */
.final-cta {
  background: var(--gray-100);
  border-block: var(--hairline);
  text-align: center;
}

.final-cta h2 {
  max-width: 32rem;
  margin-inline: auto;
}

.final-cta p {
  max-width: 34rem;
  margin: var(--space-4) auto 0;
  font-size: var(--text-lead);
  color: var(--gray-600);
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.final-cta__email {
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: var(--gray-500);
}

.final-cta__email a { color: var(--ink); }

/* ---- 14. Footer ---- */
.site-footer {
  padding-block: var(--space-16);
  border-top: var(--hairline);
  background: var(--white);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
}

.site-footer__brand .brand__name { color: var(--ink); }

.site-footer__tagline {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--gray-500);
  max-width: 22rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.site-footer__legal a {
  font-size: var(--text-small);
  color: var(--gray-600);
  min-height: 2.75rem;             /* 44px */
  display: inline-flex;
  align-items: center;
}

.site-footer__legal a:hover { color: var(--ink); }

.site-footer__contact {
  font-size: var(--text-small);
  color: var(--gray-600);
}

.site-footer__contact a { color: var(--ink); }

.site-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--text-small);
  color: var(--gray-500);
}

/* ---- 15. Legal pages ---- */
.legal-hero {
  padding-block: var(--space-16) var(--space-8);
  border-bottom: var(--hairline);
}

.legal-hero h1 {
  font-size: var(--text-h2);
  line-height: 1.08;
  letter-spacing: var(--track-tight);
  color: var(--ink);
  font-weight: 700;
}

.legal-hero .eyebrow { margin-top: 0; }

.legal-template-notice {
  margin: var(--space-6) 0 0;
  padding: var(--space-5);
  border: 1px solid var(--gray-400);
  background: var(--gray-100);
  font-size: var(--text-small);
  color: var(--gray-700);
  border-radius: var(--radius);
}

.legal-content {
  padding-block: var(--space-16);
  max-width: 44rem;
}

.legal-content h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content li { margin-bottom: var(--space-2); }

.legal-content a { color: var(--ink); text-decoration: underline; }

.placeholder {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--gray-200);
  padding: 0 var(--space-1);
  border-radius: 2px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  margin-top: var(--space-8);
  font-size: var(--text-small);
  color: var(--ink);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

/* ---- 16. Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- 17. Responsive ---- */
@media (max-width: 72rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 54rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .problem__grid,
  .steps,
  .metrics__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .services__grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .section { padding-block: var(--space-16); }
  .hero { padding-block: var(--space-16) var(--space-12); }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: var(--hairline);
    padding: var(--space-3) var(--gutter) var(--space-6);
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 3rem;             /* 48px */
    padding: 0 var(--space-3);
    border-bottom: var(--hairline);
  }

  .header__cta { margin-left: auto; }

  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}


/* ---- Stack y microcopy ---- */
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: var(--hairline);
}

.stack__label {
  margin: 0;
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.stack__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--ink-soft);
}

.final-cta .final-cta__micro {
  max-width: 34rem;
  margin: var(--space-6) auto 0;
  font-size: var(--text-small);
  color: var(--gray-600);
}


/* ---- 18. Texture ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.05;
}

/* ---- 19. Hero motion ---- */
/* ---- 20. Scroll reveal ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal :is(.pain, .service, .step, .metric) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js .reveal.is-visible :is(.pain, .service, .step, .metric) {
  opacity: 1;
  transform: none;
}

.js .reveal.is-visible :is(.pain, .service, .step, .metric):nth-child(2) { transition-delay: 70ms; }
.js .reveal.is-visible :is(.pain, .service, .step, .metric):nth-child(3) { transition-delay: 140ms; }
.js .reveal.is-visible :is(.pain, .service, .step, .metric):nth-child(4) { transition-delay: 210ms; }

/* ---- 21. Header on scroll ---- */
.site-header.is-scrolled {
  border-bottom-color: var(--gray-400);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
}

/* ---- 22. Motion off: todo visible y quieto ---- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal :is(.pain, .service, .step, .metric) {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ---- 23. Bandas negras ---- */
.section--dark {
  background: var(--ink);
  border-block-color: var(--ink);
  color: #e2e8f0;
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p,
.section--dark .section-head p {
  color: #cbd5e1;
}

.section--dark .eyebrow {
  color: var(--gray-400);
}

.section--dark .pain {
  border-top-color: var(--gray-500);
}

.section--dark .pain__index {
  color: var(--gray-400);
}

.section--dark .btn--primary {
  background: var(--white);
  color: var(--ink);
}

.section--dark .btn--primary:hover {
  transform: translateY(-1px);
}

.section--dark .btn--ghost {
  color: var(--white);
  border-color: var(--gray-500);
}

.section--dark .btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.section--dark .final-cta__email,
.section--dark .final-cta__email a {
  color: var(--white);
}

.section--dark .final-cta__micro {
  color: var(--gray-300);
}


/* ---- 24. Chip flotantes + paquete viajero ---- */
.hero-packet { opacity: 0; }

@supports (offset-path: path("M0 0")) {
  .hero-packet {
    opacity: 1;
    offset-path: path("M250 51 V249");
    offset-rotate: 0deg;
    animation: asv-travel 12s linear infinite;
  }
}

@keyframes asv-travel {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}

.section--dark .btn--primary {
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .hero-packet { opacity: 0 !important; }
}


/* ---- 25. Jerarquia semantica ---- */
.hero h1 .h1__kicker {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--gray-500);
}

.hero h1 .h1__claim {
  display: block;
}

.faq summary h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}


/* ---- 27. Mancha liquida del hero ---- */
.hero__art::before {
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  animation: asv-blob 18s ease-in-out infinite alternate;
}

@keyframes asv-blob {
  0% {
    border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%;
    transform: rotate(7deg) scale(1.04);
  }
  100% {
    border-radius: 42% 58% 52% 48% / 58% 42% 58% 42%;
    transform: rotate(-5deg) scale(0.97);
  }
}

/* ---- 28. Transicion liquida del boton ---- */
.btn--primary,
.btn--ghost {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn--primary::before,
.btn--ghost::before {
  content: "";
  position: absolute;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  width: 180%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -1;
  pointer-events: none;
}

.btn--primary::before { background: var(--ink-soft); }
.section--dark .btn--primary::before { background: var(--gray-200); }
.btn--ghost::before { background: rgba(15, 23, 42, 0.07); }
.section--dark .btn--ghost::before { background: rgba(255, 255, 255, 0.12); }

.btn--primary:hover::before,
.btn--ghost:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero__art::before { animation: none; }
  .btn--primary::before,
  .btn--ghost::before { transition: none; transform: translate(-50%, -50%) scale(0); }
}


/* ---- 29. Neon + glass + 3D ---- */
:root {
  --neon: #22d3ee;
  --neon-line: rgba(34, 211, 238, 0.32);
  --neon-glow: rgba(34, 211, 238, 0.22);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
}

/* Tarjetas con inclinacion 3D y brillo que sigue al puntero */
.service {
  position: relative;
  transform-style: preserve-3d;
}

.service:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06),
              0 22px 40px -24px rgba(15, 23, 42, 0.40),
              0 0 26px -6px var(--neon-glow);
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  background: radial-gradient(240px circle at var(--px, 50%) var(--py, 50%),
              rgba(34, 211, 238, 0.12), transparent 62%);
}

.service:hover::after { opacity: 1; }

/* Panel de cristal en la banda oscura */
.metrics .metric {
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.metrics .metric:hover {
  border-color: var(--neon-line);
  box-shadow: 0 0 0 1px var(--neon-line), 0 0 30px -6px var(--neon-glow);
}

/* Chips con anillo neón suave */
/* El paquete que recorre los cables brilla */
.hero-packet {
  fill: var(--neon);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.85));
}

/* Boton primario con halo neón al pasar */
.btn--primary:hover {
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.85),
              0 0 26px -6px var(--neon-glow);
}

/* Boton fantasma: cristal */
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .service:hover { transform: none; }
  .service::after { display: none; }
  .hero-packet { filter: none; }
}


.service > * {
  position: relative;
  z-index: 1;
}




/* ---- 31. Paleta con más azul ---- */
:root {
  --ink: #0d1b34;
  --ink-soft: #16294a;
  --gray-700: #3f4e6b;
  --gray-600: #5a6b8a;
  --gray-500: #7b8aa6;
  --gray-400: #a8b6cf;
  --gray-300: #cbd6e8;
  --gray-200: #e2e9f6;
  --gray-100: #e9eefa;
  --ink-on-white-text: #e8eefb;
  --ink-on-white-muted: #a3b4d0;
  --neon: #38bdf8;
  --neon-line: rgba(56, 189, 248, 0.36);
  --neon-glow: rgba(56, 189, 248, 0.26);
  --blue: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.10);
  --blue-line: rgba(37, 99, 235, 0.30);
}

/* fondo frío con la misma trama, ahora en azul */
body {
  background-color: #eef2fa;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%232563eb' stroke-opacity='0.13' stroke-width='1'%3E%3Cpath d='M0 50 H50 V100 H100'/%3E%3Cpath d='M200 150 H150 V100 H100'/%3E%3Cpath d='M50 0 V50'/%3E%3Cpath d='M150 200 V150'/%3E%3Cpath d='M100 100 H120 V60'/%3E%3Cpath d='M100 100 V120 H140'/%3E%3C/g%3E%3Cg fill='%232563eb' fill-opacity='0.20'%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3Ccircle cx='150' cy='150' r='1.6'/%3E%3Ccircle cx='120' cy='60' r='1.4'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(37, 99, 235, 0.13) 1px, transparent 1.7px),
    linear-gradient(to right, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 200px 200px, 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, -20px -20px, 0 0, 0 0;
}

/* etiquetas y enlaces en azul */
.eyebrow { color: var(--blue); }

/* el rótulo pequeno del principio vuelve a tono neutro */
.hero h1 .h1__kicker { color: var(--ink); }

.faq summary:hover { color: var(--blue); }

.btn--ghost:hover {
  border-color: var(--blue-line);
  color: var(--blue);
}

.site-nav a:hover { color: var(--blue); }

/* en la banda oscura el azul tiene que aclararse */
.section--dark .eyebrow { color: #8fb4f5; }

/* bandas y cabecera con tinte azul */
.section--dark { background: var(--ink); border-block-color: var(--ink); }
.metrics { background: var(--ink); }
.site-header.is-scrolled { border-bottom-color: var(--blue-line); }


/* ---- 32. Diagrama de flujo del hero ---- */
.hero__flow {
  width: 100%;
  max-width: 390px;
  height: auto;
}

.flow-box {
  fill: var(--white);
  stroke: var(--gray-300);
  stroke-width: 1;
}

.flow-title {
  fill: var(--ink);
  font-family: var(--font-display, var(--font-sans));
  font-size: 15px;
  font-weight: 600;
}

.flow-sub {
  fill: var(--gray-600);
  font-family: var(--font-sans);
  font-size: 11px;
}

.flow-links path {
  stroke: var(--gray-400);
  stroke-width: 1.2;
  fill: none;
}

.flow-spine {
  stroke-dasharray: 6 8;
  animation: asv-flow 3s linear infinite;
}

@keyframes asv-flow {
  to { stroke-dashoffset: -28; }
}

/* ---- 33. Fuentes autoalojadas (SIL OFL) ---- */
@font-face {
  font-family: 'Inter';
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-600.woff2') format('woff2');
}

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero h1 .h1__claim,
.section-head h2,
.final-cta h2,
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---- 34. Detalles de navegacion y FAQ ---- */
html { scroll-padding-top: 96px; }

.faq__item[open] .faq__body {
  animation: faq-abre 240ms var(--ease);
}

@keyframes faq-abre {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ---- 36. Interruptor de tema ---- */
.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}


/* ---- 37. Tema oscuro (opcional, con interruptor) ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7fb;
  --ink-soft: #dbe4ef;
  --gray-700: #c2ccd9;
  --gray-600: #9aa7b6;
  --gray-500: #8494a6;
  --gray-400: #3b4756;
  --gray-300: #263140;
  --gray-200: #1a2330;
  --gray-100: #131b26;
  --white: #0e141c;
  --ink-on-white-text: #0f172a;
  --ink-on-white-muted: #475569;
}

html[data-theme="dark"] body {
  background-color: #080b10;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M0 50 H50 V100 H100'/%3E%3Cpath d='M200 150 H150 V100 H100'/%3E%3Cpath d='M50 0 V50'/%3E%3Cpath d='M150 200 V150'/%3E%3Cpath d='M100 100 H120 V60'/%3E%3Cpath d='M100 100 V120 H140'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Ccircle cx='100' cy='100' r='2.2'/%3E%3Ccircle cx='50' cy='50' r='1.6'/%3E%3Ccircle cx='150' cy='150' r='1.6'/%3E%3Ccircle cx='120' cy='60' r='1.4'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1.7px),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 200px 200px, 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, -20px -20px, 0 0, 0 0;
}

html[data-theme="dark"] body::before { filter: invert(1); }

html[data-theme="dark"] .site-header {
  background: rgba(8, 11, 16, 0.72);
  border-bottom-color: var(--gray-300);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(8, 11, 16, 0.9);
  box-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .brand__logo {
  background: #ffffff;
  padding: 4px 6px;
  border-radius: 8px;
}

html[data-theme="dark"] .hero__art::before { background: rgba(255, 255, 255, 0.05); }

html[data-theme="dark"] .eyebrow { color: #8fb4f5; }

html[data-theme="dark"] .section--dark { color: #3d4a5a; }

html[data-theme="dark"] .section--dark p,
html[data-theme="dark"] .section--dark .section-head p { color: #3d4a5a; }

html[data-theme="dark"] .section--dark .eyebrow,
html[data-theme="dark"] .section--dark .pain__index { color: #5b6b7d; }

html[data-theme="dark"] .section--dark .pain { border-top-color: var(--gray-400); }
html[data-theme="dark"] .section--dark .btn--ghost::before { background: rgba(15, 23, 42, 0.08); }
html[data-theme="dark"] .section--dark .final-cta__micro { color: #4b5a6b; }

html[data-theme="dark"] .metrics { color: #0f172a; }
html[data-theme="dark"] .metrics .section-head p,
html[data-theme="dark"] .metrics .metric p { color: #3d4a5a; }

html[data-theme="dark"] .metrics .metric {
  background: #ffffff;
  border: 1px solid #dfe6ee;
}

html[data-theme="dark"] .metrics .metric__kpi { color: #5b6b7d; }

html[data-theme="dark"] .metrics .metric:hover {
  border-color: #b9c6d6;
  box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.45);
}

html[data-theme="dark"] .btn--ghost::before { background: rgba(255, 255, 255, 0.10); }
html[data-theme="dark"] .faq__item { border-top-color: var(--gray-300); }
html[data-theme="dark"] .theme-toggle { border-color: var(--gray-400); }
