/* Lavigna360 — hoja única del sitio. Tokens en docs/design-reference.md */

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --line: #DCE3EC;
  --line-strong: #C8D2DF;
  --ink: #0B1220;
  --ink-2: #334155;
  --muted: #5B6779;
  --primary: #1D4ED8;
  --primary-600: #1E40AF;
  --primary-50: #EAF0FE;
  --primary-ink: #1D4ED8;
  --accent: #06B6D4;
  --accent-soft: rgba(6, 182, 212, 0.14);
  --dark: #0B1220;
  --dark-2: #121B2E;
  --dark-line: rgba(230, 236, 245, 0.12);
  --on-dark: #E6ECF5;
  --on-dark-muted: #9AA8BD;
  --wa: #25D366;
  --danger-soft: #B4505A;
  --header-bg: rgba(245, 247, 250, 0.86);
  --header-bg-solid: rgba(255, 255, 255, 0.92);
  --sheet-bar: #F1F5F3;
  --sheet-ink: #3F6B52;
  --veil: rgba(255, 255, 255, 0.7);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.06);
  --shadow-lift: 0 2px 4px rgba(11, 18, 32, 0.06), 0 18px 40px rgba(11, 18, 32, 0.1);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

:root[data-theme="dark"] {
  --bg: #0A0F1C;
  --surface: #111A2C;
  --surface-2: #18233A;
  --line: #24324D;
  --line-strong: #33446A;
  --ink: #F1F5FB;
  --ink-2: #CBD5E1;
  --muted: #94A3B8;
  --primary: #2F62E8;
  --primary-600: #2556D6;
  --primary-50: rgba(59, 110, 245, 0.16);
  --primary-ink: #8FB0FF;
  --accent-soft: rgba(6, 182, 212, 0.16);
  --dark: #060A14;
  --dark-2: #0E1626;
  --danger-soft: #F08A94;
  --header-bg: rgba(10, 15, 28, 0.78);
  --header-bg-solid: rgba(10, 15, 28, 0.94);
  --sheet-bar: #13261D;
  --sheet-ink: #7FD1A1;
  --veil: rgba(17, 26, 44, 0.66);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.35);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CBD5E1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
:root[data-theme="dark"] .pill { color: #67E8F9; }
:root[data-theme="dark"] .badge--ok { background: rgba(74, 222, 128, 0.14); color: #86EFAC; }
:root[data-theme="dark"] .badge--warn { background: rgba(251, 191, 36, 0.14); color: #FCD34D; }
:root[data-theme="dark"] .brand b { color: #8FB0FF; }

body, .site-header, .section--surface, .service-card, .case, .step, .industry, .module,
.pain-row, .faq details, .tour-card, .platform, .benefit, .express, .agents-band, .signal-card, .auto-card {
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }

button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px rgba(29, 78, 216, 0.28);
}
.btn--primary:hover { background: var(--primary-600); color: #fff; }

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

.btn--light {
  background: #fff;
  color: #0B1220;
}
.btn--light:hover { background: #EAF0FE; color: #0B1220; }

.btn--outline-dark {
  background: transparent;
  border-color: rgba(230, 236, 245, 0.32);
  color: var(--on-dark);
}
.btn--outline-dark:hover { border-color: var(--on-dark); color: #fff; }

.btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.92rem; border-radius: 10px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-solid); }

.site-header--dark {
  background: rgba(11, 18, 32, 0.72);
}
.site-header--dark.is-scrolled { background: rgba(11, 18, 32, 0.94); border-bottom-color: var(--dark-line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand b { color: var(--primary-ink); font-weight: 700; letter-spacing: 0.04em; }
.site-header--dark .brand,
.site-footer .brand { color: #fff; }
.site-header--dark .brand b,
.site-footer .brand b { color: #7FA2FF; }

.site-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-header--dark .site-nav a { color: var(--on-dark-muted); }
.site-header--dark .site-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.site-header--dark .site-nav a[aria-current="page"] { color: #fff; }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 0 1.9rem 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface) var(--select-arrow) no-repeat right 0.65rem center;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.site-header--dark .lang-select {
  background-color: transparent;
  border-color: var(--dark-line);
  color: var(--on-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23E6ECF5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.site-header--dark .lang-select option { color: var(--ink); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header--dark .nav-toggle { background: transparent; border-color: var(--dark-line); color: var(--on-dark); }

/* Mobile drawer */
.site-header.nav-open .site-nav {
  display: flex;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
}
.site-header.nav-open .site-nav a { padding: 0.9rem 0.75rem; font-size: 1.05rem; color: var(--ink); }
.site-header.nav-open .nav-toggle .icon-menu { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }
.site-nav .nav-wa { display: inline-flex; margin-top: 0.5rem; }
.site-header--dark.nav-open .site-nav { background: var(--dark-2); border-color: var(--dark-line); }
.site-header--dark.nav-open .site-nav a { color: var(--on-dark); }

@media (min-width: 1100px) {
  .site-nav { display: flex; }
  .site-nav a { padding: 0.55rem 0.7rem; font-size: 0.92rem; }
  .site-nav .nav-wa { display: none; }
  .header-actions { margin-left: 0.75rem; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: 72px; }
@media (min-width: 768px) { .section { padding-block: 104px; } }

.section--tight { padding-block: 56px; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }

.section--dark {
  background: var(--dark);
  color: var(--on-dark-muted);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--primary-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.section--dark .eyebrow, .tour-hero .eyebrow { color: #8FB0FF; }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 4.2vw, 2.75rem); }
.section-head p { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }
.section--dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(29, 78, 216, 0.1), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 18, 32, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding-block: 72px 112px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

.hero h1 {
  font-size: clamp(2.5rem, 7.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary-ink);
}
.hero-sub {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-actions .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .hero-actions .btn { flex: 0 0 auto; } }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust-row .icon { color: var(--primary-ink); width: 1.1em; height: 1.1em; }
.trust-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.trust-row a:hover { color: var(--ink); }

/* Signature scene: spreadsheet becomes a panel */
.scene {
  position: relative;
  height: 360px;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}
@media (min-width: 960px) { .scene { height: 440px; } }

.scene-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.scene-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.scene-tag--before .dot { background: #94A3B8; }
.scene-tag--after .dot { background: var(--accent); }

.scene-card {
  position: absolute;
  inset: 44px 0 0 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  will-change: transform, opacity;
}

.sheet-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--sheet-bar);
  border-bottom: 1px solid var(--line);
  color: var(--sheet-ink);
  font-size: 0.8rem;
  font-weight: 600;
}
.sheet-bar .icon { width: 1.05rem; height: 1.05rem; }
.sheet-grid {
  display: grid;
  grid-template-columns: 34px 1.4fr 1fr 1fr;
  font-size: 0.78rem;
  color: var(--muted);
}
.sheet-grid span {
  height: 40px;
  padding: 0 0.6rem;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.sheet-grid .h { background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.sheet-grid .n { justify-content: center; background: var(--surface-2); color: #94A3B8; padding: 0; }
.sheet-grid .x { color: var(--danger-soft); font-family: ui-monospace, Menlo, monospace; }
.sheet-grid i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem 0.5rem;
}
.panel-head strong { color: var(--ink); font-family: var(--font-display); font-size: 0.98rem; }
.panel-head .live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.panel-head .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.5rem 1.15rem 1.15rem;
}
.kpi {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: var(--surface-2);
}
.kpi small { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.kpi b { display: block; margin-top: 0.15rem; color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; }
.kpi--accent { background: var(--primary); }
.kpi--accent small { color: rgba(255, 255, 255, 0.75); }
.kpi--accent b { color: #fff; }

.bars {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 104px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  transform-origin: bottom;
}
.panel-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}
.panel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge--ok { background: rgba(22, 163, 74, 0.12); color: #15803D; }
.badge--warn { background: rgba(217, 119, 6, 0.14); color: #B45309; }

@media (max-width: 420px) {
  .panel-list li:nth-child(3) { display: none; }
}

/* Loop: 0–38% sheet, 44–92% panel */
@keyframes sheet-out {
  0%, 36% { opacity: 1; transform: none; }
  46%, 92% { opacity: 0; transform: translateY(-14px) scale(0.96) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes panel-in {
  0%, 40% { opacity: 0; transform: translateY(18px) scale(0.97); }
  50%, 90% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(18px) scale(0.97); }
}
@keyframes bars-grow {
  0%, 46% { transform: scaleY(0.08); }
  60%, 90% { transform: scaleY(1); }
  100% { transform: scaleY(0.08); }
}

.scene .sheet, .scene .scene-tag--before { animation: sheet-out 9s var(--ease) infinite; }
.scene .panel, .scene .scene-tag--after { animation: panel-in 9s var(--ease) infinite; }
.scene .bars span { animation: bars-grow 9s var(--ease) infinite; }
.scene .bars span:nth-child(2) { animation-delay: 0.06s; }
.scene .bars span:nth-child(3) { animation-delay: 0.12s; }
.scene .bars span:nth-child(4) { animation-delay: 0.18s; }
.scene .bars span:nth-child(5) { animation-delay: 0.24s; }
.scene .bars span:nth-child(6) { animation-delay: 0.3s; }
.scene .bars span:nth-child(7) { animation-delay: 0.36s; }

/* ---------- Pain rows (¿Te suena?) ---------- */

.pain-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pain-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.pain-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.pain-today, .pain-after {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.pain-today { color: var(--muted); }
.pain-today p {
  text-decoration: line-through;
  text-decoration-color: rgba(180, 80, 90, 0.55);
  text-decoration-thickness: 1.5px;
}
.pain-label {
  flex: none;
  min-width: 3.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.pain-today .pain-label { background: var(--surface-2); color: var(--muted); }
.pain-after .pain-label { background: var(--primary-50); color: var(--primary-ink); }
.pain-after p { color: var(--ink); font-weight: 500; }
.pain-link {
  justify-self: start;
  font-size: 0.92rem;
}
@media (min-width: 900px) {
  .pain-row {
    grid-template-columns: 1fr 24px 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.5rem;
  }
  .pain-arrow { display: block !important; color: var(--accent); }
  .pain-link { justify-self: end; }
}
.pain-arrow { display: none; width: 22px; height: 22px; }

/* ---------- Services bento ---------- */

.services-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(0, auto);
  }
  .service-card--wide { grid-column: span 4; }
  .service-card--narrow { grid-column: span 2; }
  .service-card--full { grid-column: span 6; }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.service-card h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.service-card p { color: var(--muted); }
.service-card .link-arrow { margin-top: auto; padding-top: 0.5rem; }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-ink);
}
.service-icon .icon { width: 24px; height: 24px; }

.tick-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.tick-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 0.97rem;
}
.tick-list .icon { margin-top: 0.15em; color: var(--primary-ink); width: 1.1em; height: 1.1em; }
@media (min-width: 640px) {
  .tick-list--2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

.service-card--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--on-dark-muted);
}
.service-card--dark h3 { color: #fff; }
.service-card--dark p { color: var(--on-dark-muted); }
.service-card--dark .service-icon { background: rgba(127, 162, 255, 0.14); color: #A9C1FF; }
.service-card--dark .link-arrow { color: #A9C1FF; }
.service-card--dark .link-arrow:hover { color: #fff; }

.service-card--split { gap: 24px; }
.service-split-copy { display: flex; flex-direction: column; gap: 1rem; }
.service-split-media {
  display: block;
  margin: 0 -28px -28px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-split-media img { transform: scale(1.03); }
@media (min-width: 900px) {
  .service-card--split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 40px;
    padding: 40px;
  }
  .service-split-media { margin: 0; border-radius: var(--radius); }
}

.service-media {
  position: relative;
  margin: 0.5rem -28px -28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.03); }
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--dark) 0%, transparent 32%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0E7490;
  font-size: 0.78rem;
  font-weight: 600;
}
.service-card--dark .pill, .section--dark .pill, .tour-hero .pill { background: rgba(6, 182, 212, 0.16); color: #67E8F9; }

/* ---------- Industries ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.industry {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.industry .icon {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
}
.industry strong { display: block; color: var(--ink); font-size: 0.98rem; font-weight: 600; }
.industry span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.industry--more { border-style: dashed; background: transparent; }
.industry--more .icon { background: var(--primary-50); color: var(--primary-ink); }

/* ---------- Cases ---------- */

.case-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case--with-visual { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .case--feature { grid-column: span 2; }
  .case--with-visual { grid-column: 1 / -1; }
}
.case--with-visual {
  display: grid;
  gap: 28px;
  align-items: start;
}
.case--with-visual > .case-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 960px) {
  .case--with-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case--with-visual > .svc-block-visual,
  .case--with-visual > .tour-visual { order: 2; }
}
.case--with-visual .scene { height: 320px; max-width: none; }
@media (min-width: 960px) { .case--with-visual .scene { height: 400px; } }
.case--with-visual .tour-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-lift);
}
.case--with-visual .flow-item:nth-child(n) { margin-left: 0; }
.case {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.case.case--with-visual {
  display: grid;
  gap: 28px;
  align-items: start;
}
.case-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.case-kicker .icon { color: var(--primary-ink); }
.case h3 { font-size: 1.3rem; }
.case p { color: var(--muted); }
.case-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.case-flow span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.case-flow span:last-child { background: var(--primary); color: #fff; }
.case-flow .icon { width: 1rem; height: 1rem; color: var(--accent); }
.case-flow > .icon { color: var(--muted); }
.case--feature { background: linear-gradient(160deg, var(--surface) 55%, var(--primary-50)); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps--3 { }
@media (min-width: 1040px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.25rem;
  color: var(--primary-ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.step::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 56px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step h3 { font-size: 1.12rem; }
.step p { margin-top: 0.5rem; color: var(--muted); font-size: 0.96rem; }
.step--free { border-color: rgba(29, 78, 216, 0.35); background: linear-gradient(180deg, var(--primary-50), var(--surface) 70%); }
.step .pill { margin-top: 0.85rem; }

/* ---------- Express band ---------- */

.express {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(6, 182, 212, 0.12), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .express { grid-template-columns: 1fr auto; padding: 40px 48px; }
}
.express h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.express p { margin-top: 0.6rem; color: var(--muted); font-size: 1.05rem; }
.express strong { color: var(--ink); }

/* ---------- Final CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(29, 78, 216, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); letter-spacing: -0.035em; }
.cta-band p { max-width: 36rem; margin: 1rem auto 0; font-size: 1.12rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.75rem; }
.cta-note { margin-top: 1.25rem !important; font-size: 0.92rem !important; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 32px;
  background: #070C16;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-tag { max-width: 22rem; margin-top: 0.75rem; }
.site-footer h4 {
  margin-bottom: 0.9rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 32px;
  color: var(--on-dark);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links .icon { width: 1.1rem; height: 1.1rem; color: var(--on-dark-muted); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.85rem;
}

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #06301A;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  animation: fab-float 3s ease-in-out infinite;
}
.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  opacity: 0.4;
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.wa-float::after { animation-delay: 1.2s; }
.wa-float:hover {
  color: #06301A;
  background: #1ebe5d;
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}
.wa-float:hover::before,
.wa-float:hover::after { animation: none; opacity: 0; }
.wa-float .icon { width: 30px; height: 30px; }
@media (min-width: 768px) {
  .wa-float {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

@keyframes fab-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.42; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 64px;
}
@media (min-width: 900px) { .page-hero { padding-block: 80px 96px; } }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.035em; }
.page-hero h1 em { font-style: normal; color: var(--primary-ink); }
.page-hero .hero-sub { max-width: 38rem; }

/* Signals card next to inner hero */
.signal-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.signal-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.signal-list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.signal-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.96rem;
}
.signal-list .icon { margin-top: 0.15em; color: var(--danger-soft); }

/* ---------- Modules grid ---------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.module:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.module .icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-ink);
}
.module h3 { font-size: 1.05rem; }
.module p { margin-top: 0.4rem; color: var(--muted); font-size: 0.94rem; }
.module--more { border-style: dashed; background: transparent; }

/* ---------- Before / after examples (automatizaciones) ---------- */

.auto-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) { .auto-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .auto-grid { grid-template-columns: repeat(3, 1fr); } }
.auto-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.auto-card header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 18px 20px 0;
}
.auto-card header .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary-ink);
}
.auto-card h3 { font-size: 1.08rem; }
.auto-before, .auto-after { padding: 14px 20px; }
.auto-before { margin-top: 12px; color: var(--muted); }
.auto-before p { text-decoration: line-through; text-decoration-color: rgba(180, 80, 90, 0.5); }
.auto-after {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--primary-50), var(--surface));
  color: var(--ink);
  font-weight: 500;
}
.auto-before small, .auto-after small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.auto-before small { color: var(--muted); }
.auto-after small { color: var(--primary-ink); }

/* ---------- Callout ---------- */

.callout {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--on-dark-muted);
}
@media (min-width: 900px) { .callout { grid-template-columns: 1.2fr 1fr; padding: 48px; gap: 48px; align-items: center; } }
.callout h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.callout p { margin-top: 1rem; font-size: 1.05rem; }
.callout .tick-list li { color: var(--on-dark); }
.callout .tick-list .icon { color: #67E8F9; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--primary-ink); transition: transform 0.2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------- Tours 360 ---------- */

.tour-hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 72px;
  background: var(--dark);
  color: var(--on-dark-muted);
}
.tour-hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(29, 78, 216, 0.32), transparent 70%);
  pointer-events: none;
}
.tour-hero .container { position: relative; }
@media (min-width: 960px) { .tour-hero { padding-block: 72px 104px; } }
.tour-hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.035em; }
.tour-hero .hero-sub { color: var(--on-dark-muted); }
.tour-hero h1 em { font-style: normal; color: #8FB0FF; }
.tour-hero .trust-row li { color: var(--on-dark-muted); }
.tour-hero .trust-row .icon { color: #67E8F9; }

.tour-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
@media (min-width: 960px) { .tour-frame { aspect-ratio: 5 / 4; } }
.tour-frame img, .tour-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.tour-frame iframe { opacity: 0; transition: opacity 0.4s var(--ease); }
.tour-frame.is-loaded iframe { opacity: 1; }
.tour-frame.is-loaded .tour-play, .tour-frame.is-loaded .tour-poster-shade { opacity: 0; pointer-events: none; }
.tour-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.1), rgba(11, 18, 32, 0.55));
  transition: opacity 0.3s var(--ease);
}
.tour-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: max-content;
  height: 56px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0B1220;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.3s var(--ease);
}
.tour-play:hover { transform: scale(1.04); }
.tour-play .icon { color: var(--primary-ink); }
.tour-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.tour-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.72);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.tour-caption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}
.tour-caption .icon { width: 1rem; height: 1rem; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 12px;
}
.platform {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.platform img { width: 36px; height: 36px; flex: none; object-fit: contain; border-radius: 8px; }
.platform strong { display: block; color: var(--ink); font-size: 0.97rem; }
.platform span { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.platform--web { grid-column: 1 / -1; background: var(--primary-50); border-color: rgba(29, 78, 216, 0.25); }
.platform--web .icon { width: 36px; height: 36px; padding: 7px; border-radius: 8px; background: var(--primary); color: #fff; }

.benefit-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.benefit .icon { width: 28px; height: 28px; margin-bottom: 1rem; color: var(--primary-ink); }
.benefit h3 { font-size: 1.12rem; }
.benefit p { margin-top: 0.4rem; color: var(--muted); }

.showcase {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: 64px; }
  .showcase--reverse .showcase-media { order: -1; }
}
.showcase h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.showcase p { margin-top: 1rem; font-size: 1.05rem; color: var(--muted); }
.showcase .btn { margin-top: 1.5rem; }
.showcase-media {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--dark-2);
  box-shadow: var(--shadow-lift);
}
.showcase-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.showcase-media:hover img { transform: scale(1.03); }
.showcase-media .tour-badge { top: auto; bottom: 14px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-btn {
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.tour-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.tour-card[hidden] { display: none; }
.tour-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tour-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card-media .badge360 {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tour-card-body { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; padding: 18px 20px 20px; }
.tour-card h3 { font-size: 1.08rem; }
.tour-card .loc { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.86rem; }
.tour-card .loc .icon { width: 0.95rem; height: 0.95rem; }
.tour-card p { color: var(--muted); font-size: 0.93rem; }
.tour-card .btn { margin-top: auto; align-self: flex-start; }
.tour-card-body > p + .btn { margin-top: 0.85rem; }

.agents-band {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (min-width: 860px) { .agents-band { grid-template-columns: auto 1fr auto; padding: 32px 40px; gap: 32px; } }
.agents-band > .icon { width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--primary-50); color: var(--primary-ink); }
.agents-band h2 { font-size: 1.4rem; }
.agents-band p { margin-top: 0.35rem; color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(7, 12, 22, 0.86);
}
.modal.is-open { display: flex; }
.modal-box {
  position: relative;
  width: min(1200px, 100%);
  height: min(86vh, 760px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.modal-box iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.8);
  color: #fff;
  cursor: pointer;
}

/* ---------- Renders ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery--portrait a { aspect-ratio: 4 / 5; }

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); }
.site-header--dark .theme-toggle { background: transparent; border-color: var(--dark-line); color: var(--on-dark); }
.site-header--dark .theme-toggle:hover { border-color: var(--on-dark-muted); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Home: 3D background ---------- */

.bg3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.bg3d.is-ready { opacity: var(--bg3d-opacity, 1); }
.has-bg3d main, .has-bg3d .site-footer { position: relative; z-index: 1; }
.has-bg3d .section--surface { background: var(--veil); }
.has-bg3d .section--dark { background: rgba(6, 10, 20, 0.82); }

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 48px 72px;
  text-align: center;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, var(--bg) 0%, transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}
.home-hero .container { position: relative; }
.home-hero .eyebrow { justify-content: center; text-wrap: balance; }
.home-hero .eyebrow::before { display: none; }
.home-hero .eyebrow--breathe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem 0.5rem;
}
.home-hero .eyebrow-item {
  opacity: 0.3;
  animation: eyebrow-breathe 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2s);
}
.home-hero .eyebrow-sep { opacity: 0.28; }
@keyframes eyebrow-breathe {
  0%, 16%, 100% { opacity: 0.3; }
  4%, 12% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .eyebrow-item { animation: none; opacity: 1; }
  .home-hero .eyebrow-sep { opacity: 0.55; }
}
.home-hero h1 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(2.7rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.home-hero h1 em { font-style: normal; color: var(--primary-ink); }
.home-hero .hero-sub { margin-inline: auto; max-width: 36rem; }
.home-hero .hero-actions, .home-hero .trust-row { justify-content: center; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--muted), transparent);
  animation: cue 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* ---------- Home: service cards ---------- */

.svc-cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (min-width: 768px) { .svc-card { min-height: 440px; } }
.svc-card:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.svc-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.svc-card:hover img { transform: scale(1.05); }
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 20, 0.2) 0%, rgba(6, 10, 20, 0.5) 38%, rgba(6, 10, 20, 0.95) 100%);
}
.svc-card-num {
  margin: 22px 22px 0;
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 600;
}
.svc-card-body { margin-top: auto; padding: 22px 22px 24px; }
.svc-card h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.7rem); }
.svc-card p { margin-top: 0.55rem; color: rgba(230, 236, 245, 0.88); font-size: 0.92rem; line-height: 1.55; }
.svc-card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #A9C1FF;
  font-weight: 600;
}
.svc-card-go .icon { transition: transform 0.2s var(--ease); }
.svc-card:hover .svc-card-go .icon { transform: translateX(4px); }
.svc-card .pill { margin-bottom: 0.75rem; background: rgba(6, 182, 212, 0.22); color: #A5F3FC; }
.svc-card--editorial::before {
  background: linear-gradient(180deg, rgba(18, 12, 10, 0.08) 0%, rgba(18, 12, 10, 0.28) 40%, rgba(12, 10, 16, 0.94) 100%);
}

/* ---------- Home: one section per service ---------- */

.svc-block {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .svc-block { grid-template-columns: 1fr 1fr; gap: 72px; }
  .svc-block--reverse .svc-block-visual { order: -1; }
}
.svc-block h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.svc-block-lead { margin-top: 1rem; font-size: 1.1rem; color: var(--ink-2); }
.svc-block .tick-list { margin-top: 1.5rem; }
.svc-block .hero-actions { margin-top: 1.75rem; }
.svc-block-num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}
.section--dark .svc-block-num { color: rgba(230, 236, 245, 0.14); }
.section--dark .svc-block-lead { color: var(--on-dark-muted); }
.section--dark .tick-list li { color: var(--on-dark); }
.section--dark .tick-list .icon { color: #67E8F9; }

.flow-stack { display: grid; gap: 12px; }
.flow-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 0.93rem;
}
.flow-item .before { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(180, 80, 90, 0.5); }
.flow-item .after { color: var(--ink); font-weight: 600; }
.flow-item > .icon { color: var(--accent); }
.flow-item:nth-child(2) { margin-left: 6%; }
.flow-item:nth-child(3) { margin-left: 12%; }
@media (max-width: 520px) {
  .flow-item { grid-template-columns: 1fr; gap: 4px; }
  .flow-item > .icon { display: none; }
  .flow-item:nth-child(n) { margin-left: 0; }
}

.tour-visual {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.tour-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tour-visual:hover img { transform: scale(1.03); }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scene .sheet, .scene .scene-tag--before { animation: none; opacity: 0; }
  .scene .panel, .scene .scene-tag--after { animation: none; opacity: 1; transform: none; }
  .scene .bars span { animation: none; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue::after { animation: none; }
  .wa-float,
  .wa-float::before,
  .wa-float::after { animation: none !important; }
}
