/* ==========================================================================
   ABI VISUALIZATION — Base styles (desktop-first, breakpoints in responsive.css)
   Minimalist premium · inspired by Linear/Stripe/Vercel/Webflow/HubSpot
   ========================================================================== */

:root {
  /* ---------- Brand palette — 4 colors, 1 job each, no exceptions ----------
     Hex values below are the real values extracted from the official logo
     (previous values were approximations, replaced in the 2026-07-24 pass).
     --ink:   text + dark backgrounds
     --teal:  accents, links, icons, system elements (focus rings, hovers)
     --amber: EXCLUSIVE to primary CTAs (.btn-primary) — nothing else may use
     it, EXCEPT .text-amber (one approved text-accent exception, requested
     for the automation page's chatbot h2 — see that rule for context)
     --green: EXCLUSIVE to WhatsApp — nothing else may use it
     The *-light variants come from the logo's own gradient and exist for
     hover states on solid amber/green/teal fills (lightening on hover,
     not darkening — see .btn-primary:hover).
     Every other palette variable below is an alias into one of these four,
     so there is exactly one hardcoded hex per color in the whole file.

     CONTRAST RULE: white text on amber, green, or teal fails AA (ratios
     1.73 / 2.13 / 2.50 — minimum is 4.5). Applies only to BUTTONS WHERE
     THE FILL CARRIES READABLE TEXT (.btn-primary and similar) — those
     must use --ink text, not white. Decorative icons in colored chips
     (.card-icon, .flow-icon, .timeline-marker) are exempt:
     they sit next to their own text label and stay white on purpose. */
  --ink: #0F262C;
  --teal: #12B5C2;
  --amber: #FDB91B;
  --green: #92C04E;
  --teal-light: #3CBFC9;
  --amber-light: #F8C244;
  --green-light: #A3C86C;

  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1B2C31;           /* = --abi-text, raised from #101828 in the contrast pass */
  --text-secondary: #4A5C62; /* = --abi-text-muted, raised from #475467 in the contrast pass */
  --border: #EAECF0;

  --accent: var(--amber);         /* .btn-primary only */
  --accent-tint: #FEF3E2;         /* unused after this pass — kept for a future amber-CTA hover/bg need */

  --accent-teal: var(--teal);
  --accent-teal-tint: #E0F7FA;

  --accent-green: var(--green);   /* WhatsApp only */
  --accent-green-tint: #EEF7E4;
  --accent-green-dark: #4E8A1F;

  --dark-bg: var(--ink);
  --dark-surface: #17323A;
  --dark-border: #24444C;
  --dark-text-secondary: #9FB4B8;

  /* Contrast-pass palette (named exactly as specified) */
  --abi-dark: var(--ink);
  --abi-dark-soft: #14313A;
  --abi-cyan: var(--teal);
  --abi-green: var(--green);
  --abi-orange: var(--amber);
  --abi-tint: #F1F4F5;
  --abi-text: #1B2C31;
  --abi-text-muted: #4A5C62;

  /* Radius */
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.10);

  /* Type */
  --font-heading: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Lato', -apple-system, sans-serif;
  --font-cta: 'Roboto Flex', -apple-system, sans-serif;

  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--text);
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

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

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.section-lede { color: var(--text-secondary); font-size: 1.0625rem; }

.eyebrow {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--abi-cyan);
  margin-bottom: 0.75em;
}
.eyebrow-sm { margin-bottom: 0.4em; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--abi-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   COMPONENT: Button
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cta);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  position: relative;
}
.btn svg, .btn i { width: 18px; height: 18px; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--abi-cyan); color: var(--abi-cyan); transform: translateY(-1px); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

/* Secondary CTA on dark sections (today: only the hero's WhatsApp button) */
.hero .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: var(--abi-dark-soft); border-color: #fff; color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--abi-cyan);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, gap 0.15s ease;
}
.text-link svg, .text-link i { width: 16px; height: 16px; }
.text-link:hover { border-color: var(--abi-cyan); gap: 9px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 0.9375rem; font-weight: 700; color: var(--text-secondary); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--abi-cyan); }

/* "Publicidad"/"Advertising" dropdown (Google Ads + Meta Ads) — first
   dropdown in the nav, mobile override lives in responsive.css inside the
   existing .main-nav 960px block instead of a new media query. */
.nav-item--dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-dropdown-trigger i { width: 14px; height: 14px; }
.nav-item--dropdown:hover .nav-dropdown-trigger,
.nav-item--dropdown:focus-within .nav-dropdown-trigger { color: var(--abi-cyan); }

/* Explicit row layout — ".main-nav ul" (display:flex, the top-level nav
   list rule) also matches this nested <ul> by default, which is what
   made it wrap into a ragged 2-column mess. Declaring flex-direction/gap
   here isn't optional, it's overriding that inherited match on purpose. */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 20;
}
.nav-item--dropdown:hover .nav-dropdown-menu,
.nav-item--dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--abi-tint); color: var(--abi-cyan); }

/* Desktop-only letter marks (Google "G" / Meta "M") — generic circular
   monograms in the site's own tokens, not the platforms' actual logos/
   brand colors (avoids reproducing trademarked assets). Hidden on mobile
   in responsive.css — text-only there, per request. */
.nav-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--abi-tint);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.lang-switch-icon { width: 16px; height: 16px; color: var(--text-secondary); flex-shrink: 0; }
.lang-switch-item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
a.lang-switch-item:hover { color: var(--abi-cyan); }
.lang-switch-item--active { font-weight: 700; color: var(--abi-cyan); cursor: default; }
.lang-switch-sep { color: var(--border); font-size: 0.875rem; user-select: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 88px 0; background: var(--abi-dark); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 64px; }
/* google-ads hero: 60/40 split for the copy vs. the Google SERP mock
   (#ga-hero-mock). Kept as its own modifier instead of touching the
   shared .hero-grid ratio used by home/automation. */
.hero-grid--60-40 { grid-template-columns: 3fr 2fr; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); margin-bottom: 0.5em; color: #fff; }
.hero-subhead { font-size: 1.125rem; color: rgba(255, 255, 255, 0.78); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 16px; }
.hero-microcopy { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); margin: 0; }
/* Only the automation page's CTA-final puts .hero-microcopy inside
   .cta-final (home's {{> cta}} partial has no third support-text line),
   so this scoped rule can't affect anything else. */
.cta-final .hero-microcopy { margin-top: 24px; }

/* Automation hero overrides — scoped with ".hero .cta-final-inner" /
   ".cta-final-inner .hero-subhead" so home's hero-grid layout and this
   same page's own CTA-final section (both also use .cta-final-inner)
   stay exactly as they were. */
.hero .cta-final-inner { max-width: 900px; }
.cta-final-inner .hero-subhead {
  /* max-width alone leaves the box pinned left; text-align:center
     (inherited from .cta-final-inner) only centers text *inside* that
     narrow box, not the box itself. */
  margin: 0 auto 1em;
}
.hero h1 em {
  /* --amber is documented in :root as exclusive to .btn-primary, so the
     emphasis line uses --teal-light instead of the "amarillo" originally
     requested. */
  font-style: normal;
  color: var(--teal-light);
  font-size: 1.15em;
}

/* --- Flow diagram --- */
.hero-visual { display: flex; justify-content: center; }
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 360px; }
.flow-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flow-card:hover { transform: translateX(4px); }
.flow-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--abi-cyan);
  color: #fff;
  flex-shrink: 0;
}
.flow-icon svg, .flow-icon i { width: 20px; height: 20px; }
.flow-label { font-weight: 700; font-size: 0.9375rem; color: #fff; }

.flow-card--accent { background: color-mix(in srgb, var(--green) 18%, transparent); border-color: var(--abi-green); }
/* WhatsApp exception (brand convention) — white icon on green despite
   failing AA contrast (2.13:1). Kept intentionally; reviewed 2026-07-24. */
.flow-card--accent .flow-icon { background: var(--abi-green); color: #fff; }

.flow-connector {
  width: 1.5px;
  height: 28px;
  margin-left: 39px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}
.flow-connector::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   COMPONENT: Card (problem / service / why-us)
   ========================================================================== */
.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--abi-cyan);
  color: #fff;
  margin-bottom: 20px;
}
.card-icon svg, .card-icon i { width: 20px; height: 20px; }
.card-icon--teal { background: var(--abi-cyan); }
.card-icon--green { background: var(--abi-green); } /* reserved for a WhatsApp-related icon only — unused today, kept as valid utility */
.card-icon--round { border-radius: 50%; width: 56px; height: 56px; margin: 0 auto 20px; }

/* PROBLEMA cards on the automation page reuse .problem-card/.card-icon
   (identical to home's 3-card grid) inside .services-grid (its existing
   2-col layout) instead of .problem-grid (fixed 3 cols — wrong for 4
   items, and shared with home so it can't just be changed to 2). Both
   rules below are scoped by selector (not a new class) so home's own
   .problem-grid/.problem-card/.problem-closing render exactly as before. */
.services-grid .problem-card { border: 1px solid var(--border); }
/* Top stays 48px (breathing room after the cards, requested earlier).
   Bottom dropped to 0: it was stacking on top of BOTH .section's own
   88px padding-bottom AND .scroll-arrow's padding, making the gap to
   CHATBOT nearly double every other section-to-section gap on the site. */
.services-grid + .problem-closing { margin: 48px auto 0; }

/* ==========================================================================
   SMALL UTILITIES (single-property, reusable anywhere — not page-specific)
   ========================================================================== */
/* 769px matches the site's one existing breakpoint (responsive.css uses
   max-width:768px everywhere) — nowrap only kicks in above it, so mobile
   keeps wrapping normally as intended. */
@media (min-width: 769px) {
  .nowrap-desktop { white-space: nowrap; }
}
.text-teal { color: var(--teal); }
/* Approved exception to the amber-is-CTA-only rule above (requested for
   the automation page's chatbot h2 line 2). */
.text-amber { color: var(--amber); }
.text-bold { font-weight: 700; }

/* ==========================================================================
   SCROLL ARROW (decorative separator between stacked sections)
   ========================================================================== */
.scroll-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  color: var(--teal);
  animation: scrollArrowBounce 1.5s ease-in-out infinite;
}
@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ==========================================================================
   STEP ARROWS (chatbot section — sequential 5-step infographic)
   Desktop: row of right-pointing chevrons (clip-path), dark→light gradient
   via color-mix(--ink, --teal-light) — same technique as .flow-card--accent.
   Mobile (<=768px): falls back to a plain rounded chip (clip-path:none) —
   an arrow pointing right reads badly stacked vertically, and rotating it
   per-breakpoint is exactly the fragile 2-orientation pattern removed
   from this page in step 1 (the old SVG leadflow diagram).
   ========================================================================== */
.step-arrows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 40px 0 8px;
}
.step-arrow { display: flex; flex-direction: column; align-items: center; width: 176px; text-align: center; }
.step-arrow-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.step-arrow-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  padding-right: 20px; /* keeps the icon off the point */
  clip-path: polygon(0% 0%, 78% 0%, 100% 50%, 78% 100%, 0% 100%);
  color: #fff; /* icon-only fill — exempt from the AA text-contrast rule, same as .card-icon/.timeline-marker */
}
.step-arrow-shape i, .step-arrow-shape svg { width: 26px; height: 26px; }
.step-arrow-text { margin-top: 14px; font-size: 0.9375rem; color: var(--text-secondary); }

.step-arrow:nth-child(1) .step-arrow-shape { background: var(--ink); }
.step-arrow:nth-child(2) .step-arrow-shape { background: color-mix(in srgb, var(--ink) 75%, var(--teal-light) 25%); }
.step-arrow:nth-child(3) .step-arrow-shape { background: color-mix(in srgb, var(--ink) 50%, var(--teal-light) 50%); }
.step-arrow:nth-child(4) .step-arrow-shape { background: color-mix(in srgb, var(--ink) 25%, var(--teal-light) 75%); }
.step-arrow:nth-child(5) .step-arrow-shape { background: var(--teal-light); }

@media (max-width: 768px) {
  .step-arrows { flex-direction: column; align-items: center; gap: 16px; }
  .step-arrow { width: 100%; max-width: 320px; flex-direction: row; text-align: left; gap: 16px; }
  .step-arrow-shape { clip-path: none; border-radius: var(--radius-md); flex-shrink: 0; width: 64px; }
  .step-arrow-number { margin-bottom: 0; }
  .step-arrow-text { margin-top: 0; }
}

/* ==========================================================================
   ORBIT DIAGRAM (system section — 5 items radiating from a center hub)
   Icon + full benefit text both live INSIDE each circle. Connectors are
   arrows (SVG <marker>, same technique the old leadflow diagram used for
   its arrowheads before it was removed in step 1), edge-to-edge and
   trimmed by each circle's own radius so the arrowhead lands right on the
   node's boundary. vector-effect:non-scaling-stroke keeps stroke-width in
   real screen px regardless of the 0-100 viewBox scale.
   2 of the 5 node colors below (#0d7a5f, #f0a500) are one-off hardcoded
   hex values, requested explicitly and by exact code — everywhere else in
   this file every color is a var()/color-mix() of the 4 brand tokens; this
   diagram is the one deliberate exception.
   Mobile: falls back to plain stacked cards — rotating/reflowing a radial
   layout is fragile, a flat list isn't.
   ========================================================================== */
.orbit-diagram { position: relative; width: 100%; max-width: 740px; aspect-ratio: 1; margin: 40px auto 8px; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.orbit-line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-arrow-head path { fill: var(--border); }

.orbit-center, .orbit-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 16px;
  z-index: 2;
}
.orbit-center {
  width: 150px; height: 150px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.orbit-center i, .orbit-center svg { width: 32px; height: 32px; }
.orbit-center-label { margin-top: 6px; font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; }

.orbit-node {
  width: 210px; height: 210px;
  box-shadow: var(--shadow-md);
}
.orbit-node i, .orbit-node svg { width: 26px; height: 26px; margin-bottom: 8px; flex-shrink: 0; }
.orbit-node-text { font-size: 0.75rem; line-height: 1.3; max-width: 160px; }

/* DOM order: svg(1) → .orbit-center(2) → 5x .orbit-node(3..7) */
.orbit-node:nth-child(3) { background: var(--teal); color: var(--ink); }
.orbit-node:nth-child(4) { background: var(--amber); color: var(--ink); }
.orbit-node:nth-child(5) { background: var(--ink); color: #fff; opacity: 0.85; }
.orbit-node:nth-child(6) { background: #0d7a5f; color: #fff; }
.orbit-node:nth-child(7) { background: #f0a500; color: var(--ink); }

@media (min-width: 769px) {
  .orbit-node { transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; cursor: default; }
  .orbit-node:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: var(--shadow-lg); filter: brightness(1.08); }
}

@media (max-width: 768px) {
  .orbit-diagram { display: flex; flex-direction: column; gap: 12px; max-width: 400px; aspect-ratio: auto; }
  .orbit-lines, .orbit-center { display: none; }
  .orbit-node {
    position: static; transform: none; border-radius: var(--radius-md);
    width: 100%; height: auto; flex-direction: row; text-align: left;
    padding: 16px; gap: 16px; box-shadow: none; border: 1px solid var(--border);
  }
  .orbit-node i, .orbit-node svg { margin-bottom: 0; }
  .orbit-node-text { max-width: none; font-size: 0.9375rem; }
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */
.problem { background: #FFFFFF; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.problem-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(15, 38, 44, 0.05), 0 8px 24px rgba(15, 38, 44, 0.07);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 38, 44, 0.08), 0 16px 32px rgba(15, 38, 44, 0.1);
}
.problem-card p { margin: 0; font-size: 1rem; color: var(--text); }

.problem-closing {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 32px;
  border-left: 4px solid var(--abi-cyan);
  background: var(--accent-teal-tint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--abi-tint); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(15, 38, 44, 0.05), 0 8px 24px rgba(15, 38, 44, 0.07);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--abi-cyan);
  opacity: 0;
  transition: opacity 180ms ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 38, 44, 0.08), 0 16px 32px rgba(15, 38, 44, 0.1);
}
.service-card:hover::before { opacity: 1; }
.service-card h3 { font-size: 1.1875rem; margin-bottom: 0.5em; }
.service-card p { color: var(--text-secondary); margin-bottom: 1.25em; }
.service-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--abi-cyan);
  transition: gap 0.15s ease;
}
.service-link svg, .service-link i { width: 16px; height: 16px; }
.service-card:hover .service-link { gap: 10px; }

/* whole-card click target while keeping a real, single, accessible <a> */
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process { background: #FFFFFF; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 23px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1.5px;
  background: var(--border);
}
.timeline-step { position: relative; text-align: center; padding: 0 12px; }
.timeline-marker {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--abi-cyan);
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.timeline-step h3 { font-size: 1.0625rem; }
.timeline-step p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }

/* ==========================================================================
   SOCIAL PROOF
   ========================================================================== */
.social-proof { background: var(--abi-dark); }
.social-proof .section-head h2 { color: #fff; }

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 56px;
}
.case-copy h3 { font-size: 1.5rem; color: #fff; }
.case-copy p { color: rgba(255, 255, 255, 0.78); }

/* Browser-window frame — kept exactly as before. The dots bar stays;
   the illustrated content below it is now a real screenshot (see
   .mockup-screenshot), so overflow:hidden here is what clips the image's
   bottom corners to match the frame's own border-radius. */
.mockup-window { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg); overflow: hidden; box-shadow: var(--shadow-md); }
.mockup-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mockup-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.mockup-screenshot { display: block; width: 100%; height: auto; }

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--abi-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   REVIEWS CAROUSEL (home — real Google Business Profile reviews)
   ========================================================================== */
/* --reviews-visible is the ONE place that controls how many cards show at
   once per breakpoint — reviews-carousel.js reads this same computed value
   at runtime, so JS and CSS never fall out of sync. */
.reviews-carousel {
  --reviews-visible: 3;
  --reviews-gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}
@media (max-width: 900px) {
  .reviews-carousel { --reviews-visible: 2; }
}
@media (max-width: 640px) {
  .reviews-carousel { --reviews-visible: 1; max-width: 420px; }
}

.reviews-viewport { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: var(--reviews-gap);
  /* transform-only slide, 500-600ms, eased (never opacity/display) —
     reviews-carousel.js temporarily clears this to "none" while the user
     is actively dragging a touch swipe, then restores it. */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.review-slide {
  flex: 0 0 calc((100% - (var(--reviews-visible) - 1) * var(--reviews-gap)) / var(--reviews-visible));
  min-width: 0;
}
/* Clones look visually identical to real cards on purpose (that's what
   makes the loop invisible) — see reviews-carousel.js for the aria-hidden
   / tabindex="-1" that keeps them out of the accessibility tree, and this
   pointer-events:none stops a mid-transition clone from being scrollable. */
.review-slide[data-clone="true"] .review-body { pointer-events: none; }

.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Let vertical gestures pass through natively (review-body's own
     scroll); horizontal swipe is handled in JS. */
  touch-action: pan-y;
}

.review-card-head { display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; }
.review-meta { flex: 1; min-width: 0; }
.review-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-author { color: #fff; font-size: 0.9375rem; }
.review-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--abi-cyan);
  border: 1px solid var(--abi-cyan);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.review-subline { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.review-stars { color: var(--abi-cyan); font-size: 0.8125rem; letter-spacing: 1px; }
.review-time { color: rgba(255, 255, 255, 0.55); font-size: 0.8125rem; }

/* Fixed-height scrollable text area — same height on every card
   regardless of review length, so all cards stand the same height. */
.review-body-wrap { position: relative; flex-shrink: 0; }
.review-body {
  height: 13rem;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 180, 200, 0.35) transparent;
  touch-action: pan-y;
}
.review-body::-webkit-scrollbar { width: 6px; }
.review-body::-webkit-scrollbar-track { background: transparent; }
.review-body::-webkit-scrollbar-thumb { background: rgba(0, 180, 200, 0.35); border-radius: 999px; }
.review-body::-webkit-scrollbar-thumb:hover { background: rgba(0, 180, 200, 0.55); }
.review-body p { color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; line-height: 1.6; margin: 0; white-space: pre-wrap; }
.review-body:focus-visible { outline: 2px solid var(--abi-cyan); outline-offset: 2px; }

/* Bottom fade telling the reader there's more text below — hidden via JS
   once they've scrolled to the end, or if the review is short enough to
   fit without scrolling. */
.review-fade {
  position: absolute;
  left: 0; right: 10px; bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(15, 38, 44, 0.9));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.review-fade.is-hidden { opacity: 0; }

.review-card-foot {
  min-height: 1.2em;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.reviews-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--abi-cyan);
  background: transparent;
  color: #fff;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.reviews-arrow svg { width: 20px; height: 20px; display: block; }
.reviews-arrow:hover { background: var(--abi-cyan); color: var(--ink); }
.reviews-arrow:focus-visible { outline: 2px solid var(--abi-cyan); outline-offset: 3px; border-radius: 50%; }
.reviews-dots { display: flex; gap: 8px; }
.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.reviews-dot:hover { background: rgba(255, 255, 255, 0.7); }
.reviews-dot.is-active { background: var(--abi-cyan); transform: scale(1.3); }

.reviews-live {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reviews-cta-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-us { background: #FFFFFF; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { text-align: center; padding: 8px 16px; }
.why-card h3 { font-size: 1.125rem; }
.why-card p { color: var(--text-secondary); font-size: 0.9375rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--abi-tint); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 4px 24px;
  box-shadow: 0 1px 2px rgba(15, 38, 44, 0.05), 0 8px 24px rgba(15, 38, 44, 0.07);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 38, 44, 0.08), 0 16px 32px rgba(15, 38, 44, 0.1);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-caret { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); transition: transform 0.2s ease; }
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-item p { color: var(--text-secondary); margin: 0 0 20px; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
  background: var(--dark-bg);
  /* Ambient glow framing the one .btn-primary in this section — amber here
     belongs to that CTA, not a separate element. color-mix() keeps both
     stops derived from the 4 brand variables (no hardcoded hex). */
  background-image: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 45%),
                     radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--teal) 8%, transparent), transparent 45%);
}
.cta-final-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); text-wrap: balance; }
.cta-final p { color: var(--dark-text-secondary); font-size: 1.0625rem; margin-bottom: 32px; }
.cta-final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   PLACEHOLDER PAGES (in-construction subpages — see build.js buildPlaceholderPage)
   ========================================================================== */
.placeholder-block { max-width: 640px; margin: 0 auto; text-align: center; }
.placeholder-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.placeholder-back { display: inline-block; }

/* ==========================================================================
   JOIN US PAGE (/unete/, /en/join-us/)
   ========================================================================== */
.join-us-intro { max-width: 640px; margin: 0 auto; text-align: center; }
.join-us-section { padding-top: 0; }
.join-us-block { max-width: 640px; margin: 0 auto; }
.join-us-list { display: flex; flex-direction: column; gap: 10px; }
.join-us-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
}
.join-us-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--abi-cyan);
}
.join-us-form-wrap { max-width: 480px; margin: 0 auto; }

/* ==========================================================================
   CONTACT PAGE (/contacto/, /en/contact/)
   ========================================================================== */
.contact-intro { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-section { padding-top: 0; }
.contact-block { max-width: 640px; margin: 0 auto; }
.contact-block--center { text-align: center; }
.contact-block h2,
.contact-form-wrap h2 { margin-bottom: 20px; }
.meetings-iframe-container { min-height: 600px; width: 100%; }
.contact-form-wrap { max-width: 480px; margin: 0 auto; }
.contact-privacy-link { align-self: flex-start; }
.contact-closing { padding-top: 0; }
.contact-closing-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-closing-inner a { font-weight: 700; color: var(--abi-cyan); }
.contact-coverage { color: var(--text-secondary); margin: 4px 0 0; }

/* ==========================================================================
   PRIVACY POLICY PAGE (/privacy-policy/)
   ========================================================================== */
.privacy-block { max-width: 720px; margin: 0 auto; }
.privacy-block h1 { margin-bottom: 0.3em; }
.privacy-block h2 { margin-top: 2em; font-size: 1.25rem; }
.privacy-block p,
.privacy-block li { color: var(--text-secondary); }
.privacy-block ul { display: flex; flex-direction: column; gap: 8px; margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.privacy-block a { color: var(--abi-cyan); font-weight: 700; }

/* ==========================================================================
   COMPONENT: Contact form (scaffolded for future pages)
   ========================================================================== */
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 700; font-size: 0.9375rem; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--abi-cyan);
  box-shadow: 0 0 0 3px var(--accent-teal-tint);
}
.form-success { color: var(--abi-cyan); font-weight: 700; }
/* Not amber — amber is reserved exclusively for .btn-primary on this site. */
.form-error { color: var(--text); font-weight: 700; }
/* Empty/invalid required field on submit (contact-form.js). !important
   because .form-field input/select/textarea's own 1px border-color rule
   is the same specificity (one class + one type selector each) — without
   it, source order would be the only thing deciding the winner. */
.field-error { border-color: red !important; }

/* Honeypot — visually hidden off-screen (not display:none, which some bots skip) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--dark-bg); color: var(--dark-text-secondary); padding-top: 72px; border-top: 1px solid var(--dark-border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { font-size: 0.9375rem; }
.logo-footer { display: inline-block; margin-bottom: 18px; }
.logo-footer img { height: 28px; width: auto; }
address { display: flex; flex-direction: column; gap: 6px; font-style: normal; margin-top: 12px; }
address a { font-size: 0.9375rem; transition: color 0.15s ease; }
address a:hover { color: var(--abi-cyan); }

.footer-col h4 { color: #fff; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9375rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--abi-cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--dark-border);
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.social-links { display: flex; gap: 14px; }
.social-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-links a:hover { border-color: var(--abi-cyan); color: var(--abi-cyan); transform: translateY(-2px); }

/* ==========================================================================
   PRICING PLANS (automation page — /automatizacion-de-leads/, /en/lead-automation/)
   Two-tier plan cards. Everything else (checklist, buttons, labels) reuses
   .join-us-list / .btn / .eyebrow — these 6 rules are layout + the
   "featured" highlight only.
   ========================================================================== */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.pricing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
}
.pricing-plan--featured { border-color: var(--teal); box-shadow: var(--shadow-lg); }
/* Scoped to pricing-plan buttons only — .btn itself carries no top margin
   by default, and the button sits right after .join-us-list with nothing
   in between, so it needs its own breathing room here. */
.pricing-plan .btn { margin-top: 28px; }
.pricing-plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--ink); /* white-on-teal fails AA per the contrast rule documented in :root */
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-plan-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.5rem);
  color: var(--text);
  margin: 12px 0 0;
}
.pricing-plan-price-note {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 0.2em;
}

/* ==========================================================================
   RESTORED FROM PRODUCTION (2026-08-11) — .hero-dark, .tools-grid, .tool-card*
   This block existed on the live SiteGround server but was already missing
   from the local repo before today's automation-page session started (see
   git: baseline commit 8ec543f already lacked it, 251 of the 252 lines
   changed today are pure additions). Restored verbatim from the server's
   assets/css/style.css so /herramientas/ and /blog/ (both consumers of
   .hero-dark) render correctly again. Not automation-page CSS.
   ========================================================================== */
/* ============================================================
   HERO OSCURO COMPARTIDO — .hero-dark
   ============================================================
   Estaba solo en /blog/assets/blog.css como .blog-hero, que las
   paginas del SITIO no cargan. Nada de lo que hacia era propio del
   blog (es un hero oscuro generico), asi que vive aqui: style.css lo
   cargan TANTO las paginas del sitio COMO las del blog.

   Lo usan hoy el indice del blog y el hub de /herramientas/ + /en/tools/.
   El padding vertical y el ancho completo salen de .section (88px 0),
   igual que antes — esta clase solo pone fondo, color y centrado.

   Contraste verificado sobre --ink #0F262C:
     eyebrow / acento cyan #12B5C2 -> 6.31:1  (AA normal, minimo 4.5)
     H1 blanco                     -> 15.74:1
     lede blanco al 78%            -> 10.01:1 */
.hero-dark {
  background: var(--abi-dark);
  position: relative;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(-8deg, rgba(18, 181, 194, 0.07) 0px, rgba(18, 181, 194, 0.07) 1px, transparent 1px, transparent 120px),
    radial-gradient(circle at 85% 20%, rgba(253, 185, 27, 0.08), transparent 45%);
}
.hero-dark__inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero-dark h1 { color: #fff; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); margin-bottom: 0.5em; }
.hero-dark h1 .accent { color: var(--abi-cyan); }
.hero-dark .section-lede { color: rgba(255, 255, 255, 0.78); max-width: 60ch; margin: 0 auto; }

/* ============================================================
   CENTRO DE HERRAMIENTAS — /herramientas/ y /en/tools/
   ============================================================
   Grid 3 / 2 / 1 columnas. Se mantiene A MANO aquí: build.js solo
   escribe HTML, robots.txt, sitemap.xml y manifest.json — nunca CSS.

   REGLA DE CONTRASTE (ver la nota del :root): blanco sobre teal da
   2.50 y falla AA, y teal sobre blanco da lo mismo invertido. Por eso
   el botón de card es borde teal + texto --ink sobre transparente, y
   en hover invierte a fondo teal + texto --ink — que sí pasa AA.
   El ámbar NO aparece en las cards: queda reservado al único
   .btn-primary del cierre de página. */

.tools-grid-section { padding-top: 8px; }

.tools-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.tool-card:not(.tool-card--soon):hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  color: var(--ink);
  margin-bottom: 18px;
}
.tool-card__icon svg { width: 100%; height: 100%; display: block; }

.tool-card__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0 0 10px;
}
.tool-card__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 22px;
  flex: 1 1 auto;
}

/* Botón de card — ver la regla de contraste de arriba. */
.tool-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  font-family: var(--font-cta);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tool-card__btn:hover,
.tool-card__btn:focus-visible {
  background: var(--teal);
  color: var(--ink);
}

/* Próximamente: card atenuada y botón inerte (un <span>, no un <a>:
   no es enlace, no recibe foco y no navega a ninguna parte). */
.tool-card--soon { opacity: 0.62; box-shadow: none; }
.tool-card--soon .tool-card__icon { color: var(--text-secondary); }
.tool-card__btn--disabled {
  border-color: var(--border);
  color: var(--text-secondary);
  cursor: not-allowed;
  background: transparent;
}
.tool-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-cta);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--abi-tint);
  border-radius: 999px;
  padding: 5px 10px;
}

/* El CTA de cierre del hub usa .cta-final (definida arriba), la misma que el
   indice del blog y la home. Las reglas .tools-cta__* que habia aqui hacian
   solo centrado sobre fondo claro y ya no las usa nadie. */

/* ==========================================================================
   LANDING PAGES (/landing-pages/, /en/landing-pages/)
   Demo grid: 4-col responsive grid, mismo breakpoint que .tools-grid
   (1024px/640px). Cada card reusa .tool-card/.mockup-window/.mockup-bar
   (ya definidos arriba) — .demo-placeholder es el único elemento
   realmente nuevo: un marcador de posición hasta que existan screenshots
   reales, mismo tamaño que ocuparía .mockup-screenshot.
   ========================================================================== */
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .demo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .demo-grid { grid-template-columns: 1fr; } }

.demo-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--abi-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.demo-placeholder i, .demo-placeholder svg { width: 32px; height: 32px; }

/* ==========================================================================
   BRIEF WIZARD (5-step interactive quote estimator, /landing-pages/ only)
   Plain JS (assets/js/landing-pages-brief.js) toggles .is-active on one
   .brief-step at a time and updates .brief-progress-bar's width — no
   framework, same vanilla-JS approach as reviews-carousel.js. Colors/
   radius/shadow are all existing tokens; .pricing-plan-price (already
   exists) is reused for the result screen's price display.
   ========================================================================== */
.brief-widget {
  max-width: 640px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}
.brief-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.brief-progress-bar { height: 100%; background: var(--teal); transition: width 0.3s ease; }
.brief-step-label { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 24px; }

.brief-step { display: none; }
.brief-step.is-active { display: block; }
.brief-step h3 { margin-bottom: 16px; }

.brief-choices { display: flex; flex-direction: column; gap: 10px; }
.brief-choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.brief-choice:hover { border-color: var(--teal); }
.brief-choice.is-selected { border-color: var(--teal); background: var(--accent-teal-tint); font-weight: 700; }

.brief-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* ==========================================================================
   GOOGLE ADS PAGE — ROI calculator stats + AI ad generator preview cards
   (/google-ads/, /en/google-ads/). Approved block, appended verbatim.
   ========================================================================== */
.roi-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 640px) { .roi-results { grid-template-columns: repeat(2, 1fr); } }
/* Pricing (3 cards) and process timeline (4 steps): both need a real,
   scoped grid-template-columns rule instead of the inline style they had
   before — an inline style always beats any external rule regardless of
   media query, which was silently defeating .pricing-plans'/.timeline's
   own mobile collapse in responsive.css and squeezing 3-4 columns onto
   phones. IDs keep these scoped to google-ads only (.pricing-plans and
   .timeline are shared with the home/automation pages). */
#ga-pricing-plans { grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin-left: auto; margin-right: auto; }
#ga-process-timeline { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  #ga-pricing-plans { grid-template-columns: 1fr; }
  #ga-process-timeline { grid-template-columns: repeat(2, 1fr); }
}
.roi-stat { text-align: center; padding: 20px; background: var(--abi-tint); border-radius: var(--radius-md); }
.roi-stat-value { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); color: var(--teal); }
.roi-stat-label { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 4px; }
.ad-preview-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.ad-preview-headline { font-size: 1.125rem; color: var(--abi-cyan); font-weight: 600; }
.ad-preview-desc { font-size: 0.9375rem; color: var(--text-secondary); margin-top: 6px; }
.ad-preview-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-secondary); font-weight: 700; margin: 12px 0 4px; }
.brief-result { text-align: center; }

/* ==========================================================================
   META ADS PAGE (/meta-ads/, /en/meta-ads/). Feed-post preview card +
   pricing/process grid fixes — same pattern as the GOOGLE ADS PAGE block
   above (scoped IDs for the 2 grids so an inline style never has to fight
   responsive.css's mobile collapse again).
   ========================================================================== */
.meta-ad-preview { background: #fff; border: 1px solid #ddd; border-radius: 12px; overflow: hidden; max-width: 380px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.meta-ad-preview-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.meta-ad-preview-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.meta-ad-preview-image { width: 100%; height: 200px; background: linear-gradient(135deg, var(--teal) 0%, var(--abi-dark) 100%); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.875rem; }
.meta-ad-preview-body { padding: 12px 16px; border-top: 1px solid #eee; }
.meta-ad-preview-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.meta-ad-preview-cta-btn { background: #e4e6eb; border: none; border-radius: 6px; padding: 8px 16px; font-weight: 600; font-size: 0.875rem; cursor: default; }
@media (max-width: 640px) { .meta-ad-preview { max-width: 100%; } }

#ma-pricing-plans { grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1100px; }
#ma-process-timeline { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  #ma-pricing-plans { grid-template-columns: 1fr; }
  #ma-process-timeline { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   GOOGLE BUSINESS PROFILE PAGE (/google-business-profile/,
   /en/google-business-profile/). Knowledge-panel mock + review generator
   preview/response box — same pattern as the META ADS PAGE block above.
   Only #gbp-process-timeline needs a scoped grid rule: this page's
   .pricing-plans has just 2 tiers, which already fits the shared class's
   default 2-col grid with no override needed.
   ========================================================================== */
.gbp-mock { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; max-width: 340px; margin: 0 auto; border: 1px solid #ddd; font-family: var(--font-body); }
.gbp-mock-header { background: var(--abi-dark); padding: 16px; color: #fff; }
.gbp-mock-stars { color: #fbbc04; font-size: 1.125rem; letter-spacing: 2px; }
.gbp-mock-rating { font-size: 2rem; font-weight: 700; color: #fff; }
.gbp-review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-top: 16px; }
.gbp-review-stars { color: #fbbc04; font-size: 0.875rem; }
.gbp-response-box { background: #f0faf8; border-left: 3px solid var(--teal); padding: 16px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-top: 12px; font-size: 0.9375rem; }
@media (max-width: 640px) { .gbp-mock { max-width: 100%; } }

#gbp-process-timeline { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  #gbp-process-timeline { grid-template-columns: repeat(2, 1fr); }
}
