/* ==========================================================================
   Ziko — CRM inmobiliario con IA
   Design system + components
   --------------------------------------------------------------------------
   1. Tokens            6. Header & navigation     11. Product UI (mockups)
   2. Reset & base      7. Hero variants           12. Page sections
   3. Typography        8. Cards & surfaces        13. Forms
   4. Layout            9. Media / photography     14. Footer
   5. Buttons & links  10. Chips, badges, icons    15. Utilities & motion
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0B1F3A;
  --navy-800: #102949;
  --navy-700: #16345C;
  --navy-600: #1F4270;
  --blue: #2563EB;
  --blue-700: #1D4ED8;
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FE;
  --teal: #14B8A6;
  --teal-600: #0F9E8E;
  --teal-50: #E7F8F5;
  --gold: #F4B942;
  --gold-50: #FEF6E4;
  --gold-700: #9A6A07;

  /* Neutrals */
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ink: #172033;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #EDF1F7;
  --success: #16A36A;
  --success-50: #E8F7F0;
  --danger: #D33A3A;
  --danger-50: #FDEEEE;

  /* On dark */
  --on-dark: #FFFFFF;
  --on-dark-2: #B8C5DA;
  --on-dark-3: #8193AF;
  --line-dark: rgba(255, 255, 255, .10);

  /* Type */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 1.7rem + 3vw, 4.25rem);    /* 40 → 68 */
  --fs-h1: clamp(2.25rem, 1.55rem + 2.8vw, 4rem);        /* 36 → 64 */
  --fs-h2: clamp(1.875rem, 1.35rem + 2vw, 3.25rem);      /* 30 → 52 */
  --fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.875rem);     /* 22 → 30 */
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);     /* 17 → 20 */
  --fs-body: 1.0625rem;                                  /* 17 */
  --fs-sm: .9375rem;                                     /* 15 */
  --fs-xs: .8125rem;                                     /* 13 */
  --fs-2xs: .75rem;

  /* Spacing scale 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 120 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 80px; --s-10: 96px; --s-11: 120px;
  --section-y: clamp(64px, 5vw + 32px, 120px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --container-narrow: 780px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Elevation — navy-tinted */
  --sh-1: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 1px rgba(11, 31, 58, .04);
  --sh-2: 0 4px 12px -2px rgba(11, 31, 58, .08), 0 2px 4px rgba(11, 31, 58, .04);
  --sh-3: 0 18px 40px -12px rgba(11, 31, 58, .18), 0 4px 10px rgba(11, 31, 58, .05);
  --sh-4: 0 40px 80px -24px rgba(6, 18, 36, .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* 2. RESET & BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero--dark :focus-visible { outline-color: var(--teal); }
::selection { background: var(--blue-100); color: var(--navy); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* 3. TYPOGRAPHY --------------------------------------------------------- */
.h-display, .h1, .h2, .h3, .h4, h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.h-display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.032em; font-weight: 800; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.h2--sm { font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.75rem); }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.muted { color: var(--muted); }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.on-dark, .on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark .lead, .on-dark p { color: var(--on-dark-2); }
.on-dark .muted { color: var(--on-dark-3); }

/* Highlight inside headings */
.hl { color: var(--blue); }
.on-dark .hl { color: var(--teal); }
.hl-gold { position: relative; white-space: nowrap; }
.hl-gold::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em;
  background: var(--gold); border-radius: 2px; z-index: -1; opacity: .9;
}
.on-dark .hl-gold::after { z-index: 0; mix-blend-mode: normal; height: 3px; bottom: -.04em; }

/* Eyebrow — index + label, the site's editorial signature */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow__index {
  font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .04em;
  padding-right: 10px; border-right: 1px solid var(--line);
}
.on-dark .eyebrow { color: var(--teal); }
.on-dark .eyebrow__index { color: var(--on-dark-3); border-color: var(--line-dark); }
.eyebrow--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 185, 66, .18);
}

.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: .8em 0; }
.prose li + li { margin-top: .4em; }

/* 4. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 4vw + 24px, 80px); }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--ink { background: #081830; color: var(--on-dark); }
.section--line-top { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 4vw, 64px); }
.section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: var(--s-7); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center .lead { max-width: 60ch; }

.grid { display: grid; gap: var(--s-5); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-5); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

@media (max-width: 960px) {
  .split, .split--wide-left, .split--wide-right, .section-head--split { grid-template-columns: 1fr; }
  .section-head--split { gap: var(--s-4); }
}

/* 5. BUTTONS & LINKS ---------------------------------------------------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-head); font-size: .975rem; font-weight: 700; letter-spacing: -0.005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s, color .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn:hover svg.i-arrow-right { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--teal { --btn-bg: var(--teal); box-shadow: 0 6px 16px -6px rgba(20, 184, 166, .6); }
.btn--teal:hover { background: var(--teal-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--surface); border-color: #CBD5E1; }
.btn--ghost-dark { --btn-bg: rgba(255,255,255,.04); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.22); box-shadow: none; }
.btn--ghost-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--navy); box-shadow: var(--sh-2); }
.btn--white:hover { background: var(--blue-50); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm);
  color: var(--blue); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.on-dark .link-arrow { color: var(--teal); }

.text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* 6. HEADER & NAVIGATION ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(246, 248, 252, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11,31,58,.35); background: rgba(255,255,255,.9); }
.site-header--dark { background: rgba(11, 31, 58, .72); color: #fff; }
.site-header--dark.is-scrolled { background: rgba(11, 31, 58, .94); border-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.site-header--dark .logo, .site-footer .logo { color: #fff; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__word { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 640px) { .logo__mark { width: 38px; height: 38px; } .logo__word { font-size: 1.65rem; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: var(--s-2); }
.nav__link, .nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: .94rem;
  color: var(--ink-2); text-decoration: none; background: none; border: 0;
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__trigger:hover { color: var(--navy); background: rgba(11, 31, 58, .05); }
.nav__link[aria-current="page"], .nav__trigger.is-current { color: var(--navy); }
.nav__link[aria-current="page"]::after, .nav__trigger.is-current::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 2px;
}
.site-header--dark .nav__link, .site-header--dark .nav__trigger { color: var(--on-dark-2); }
.site-header--dark .nav__link:hover, .site-header--dark .nav__trigger:hover,
.site-header--dark .nav__link[aria-current="page"], .site-header--dark .nav__trigger.is-current { color: #fff; background: rgba(255,255,255,.07); }
.nav__trigger svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item { position: relative; }
.nav__item.is-open .nav__trigger svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: -12px;
  width: 620px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  color: var(--ink);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__link {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 14px; border-radius: var(--r-md); text-decoration: none;
  transition: background-color .2s;
}
.mega__link:hover { background: var(--bg); }
.mega__link strong { display: block; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .98rem; }
.mega__link span { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; margin-top: 2px; }
.mega__feature {
  grid-row: span 3; background: var(--navy); color: #fff; border-radius: var(--r-md);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
  position: relative; overflow: hidden; text-decoration: none; min-height: 240px;
}
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.mega__feature > *:not(img) { position: relative; }
.mega__feature strong { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.25; }
.mega__feature span { color: var(--on-dark-2); font-size: var(--fs-xs); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.header-actions .nav__link { margin-right: 4px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }
.site-header--dark .menu-toggle { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: #fff; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--surface); padding: var(--s-5) var(--gutter) var(--s-7);
  overflow-y: auto; display: none;
  opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease);
}
.mobile-nav.is-open { display: block; }
.mobile-nav.is-visible { opacity: 1; transform: none; }
.mobile-nav__group + .mobile-nav__group { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.mobile-nav__label { font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: var(--s-2); font-family: var(--font-head); }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 0;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--blue); }
.mobile-nav .btn { margin-top: var(--s-5); }
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  .nav, .header-actions .nav__link, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* 7. HERO VARIANTS ------------------------------------------------------ */
.hero { position: relative; overflow: hidden; }
.hero--dark {
  background: var(--navy); color: #fff;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.hero--dark::before { /* fine technical grid, fades out */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero--dark::after { /* single soft light source */
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; pointer-events: none;
  background: radial-gradient(circle, rgba(37, 99, 235, .32), rgba(20, 184, 166, .08) 45%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero-home { padding-block: clamp(48px, 6vw, 96px) clamp(64px, 7vw, 120px); }
.hero-home__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-home h1 { color: #fff; margin: var(--s-5) 0; }
.hero-home .lead { color: var(--on-dark-2); max-width: 54ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--s-6); color: var(--on-dark-3); font-size: var(--fs-sm); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--teal); }

@media (max-width: 1080px) {
  .hero-home__grid { grid-template-columns: 1fr; }
}

/* Interior page hero — light, editorial, with photo */
.page-hero { padding-block: clamp(40px, 5vw, 80px) clamp(48px, 5vw, 88px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero h1 { margin: var(--s-5) 0; }
.page-hero .lead { max-width: 52ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--s-5); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.on-dark .breadcrumbs, .on-dark .breadcrumbs a { color: var(--on-dark-3); }

.page-hero--dark { padding-block: clamp(40px, 5vw, 80px) clamp(56px, 6vw, 104px); }
@media (max-width: 960px) {
  .page-hero__grid { grid-template-columns: 1fr; }
}

/* 8. CARDS & SURFACES --------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--sh-1);
}
.card--hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: #D5DEEA; }
.card--dark { background: var(--navy-800); border-color: var(--line-dark); color: var(--on-dark); box-shadow: none; }
.card--tint { background: var(--bg); box-shadow: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden; }

.icon-tile {
  width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; flex: none;
  background: var(--blue-50); color: var(--blue);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--teal { background: var(--teal-50); color: var(--teal-600); }
.icon-tile--gold { background: var(--gold-50); color: var(--gold-700); }
.icon-tile--navy { background: var(--navy); color: #fff; }
.icon-tile--dark { background: rgba(255,255,255,.06); color: var(--teal); border: 1px solid var(--line-dark); }
.icon-tile--sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-tile--sm svg { width: 18px; height: 18px; }

/* 9. MEDIA -------------------------------------------------------------- */
.photo { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--navy-700); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--4x5 { aspect-ratio: 4 / 5; }
.photo--3x4 { aspect-ratio: 3 / 4; }
.photo--1x1 { aspect-ratio: 1; }
.photo--4x3 { aspect-ratio: 4 / 3; }
.photo--3x2 { aspect-ratio: 3 / 2; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--21x9 { aspect-ratio: 21 / 9; }
.photo__caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 32px);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(11, 31, 58, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: var(--fs-xs); font-weight: 500;
}
.photo__caption svg { width: 14px; height: 14px; color: var(--gold); }

/* Photo with floating UI overlay */
.photo-stage { position: relative; }
.photo-stage .float { position: absolute; z-index: 2; }

/* 10. CHIPS, BADGES, ICONS --------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 600; line-height: 1.3; white-space: nowrap;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line);
}
.chip svg { width: 13px; height: 13px; }
.chip--blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.chip--teal { background: var(--teal-50); color: #0B7F72; border-color: #C5EEE8; }
.chip--gold { background: var(--gold-50); color: var(--gold-700); border-color: #FBE3B0; }
.chip--green { background: var(--success-50); color: #0F7A4E; border-color: #C6EBD9; }
.chip--red { background: var(--danger-50); color: #A92A2A; border-color: #F6D0D0; }
.chip--dark { background: rgba(255,255,255,.06); color: var(--on-dark-2); border-color: var(--line-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.ico { width: 20px; height: 20px; flex: none; }

.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-list svg { width: 20px; height: 20px; color: var(--teal-600); margin-top: 2px; }
.on-dark .check-list svg { color: var(--teal); }
.on-dark .check-list li { color: var(--on-dark-2); }

/* 11. PRODUCT UI — MOCKUPS --------------------------------------------- */
.app {
  --app-bg: #FFFFFF; --app-side: #F7F9FC;
  background: var(--app-bg); border-radius: 16px; overflow: hidden;
  box-shadow: var(--sh-4); border: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; color: var(--ink); line-height: 1.4;
}
.app__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #E4E9F1; display: block; }
.app__url { flex: 1; max-width: 280px; margin-inline: auto; text-align: center; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 4px 10px; }
.app__body { display: grid; grid-template-columns: 172px 1fr; min-height: 380px; }
.app__side { background: var(--app-side); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.app__brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 14px; letter-spacing: -.03em; }
.app__brand svg { width: 22px; height: 22px; }
.app__nav { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.app__nav svg { width: 15px; height: 15px; color: var(--muted); }
.app__nav.is-active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: var(--sh-1); }
.app__nav.is-active svg { color: var(--blue); }
.app__nav b { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: 1px 7px; border-radius: 99px; }
.app__main { padding: 16px 18px; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.app__title { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--navy); letter-spacing: -.02em; }
.app__sub { color: var(--muted); font-size: 11.5px; }
.app__search { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11.5px; background: #fff; }
.app__search svg { width: 13px; height: 13px; }
.app__btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; font-size: 11.5px; }
.app__btn svg { width: 12px; height: 12px; }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-head); font-weight: 700; font-size: 10.5px; color: #fff; background: var(--navy-600);
}
.avatar--blue { background: var(--blue); } .avatar--teal { background: var(--teal); }
.avatar--gold { background: #D99A1E; } .avatar--slate { background: #475569; } .avatar--navy { background: var(--navy); }
.avatar--sm { width: 22px; height: 22px; font-size: 9px; }
.avatar--lg { width: 40px; height: 40px; font-size: 13px; }

/* Lead rows */
.lead-table { width: 100%; border-collapse: collapse; }
.lead-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lead-table td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.lead-table tr:last-child td { border-bottom: 0; }
.lead-table .who { display: flex; align-items: center; gap: 9px; }
.lead-table .who b { display: block; font-weight: 600; color: var(--navy); }
.lead-table .who small { color: var(--muted); font-size: 11px; }
.lead-table tr.is-hl td { background: #FFFBF1; }

/* Mini property card */
.prop {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.prop__img { width: 64px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--line); }
.prop__img img { width: 100%; height: 100%; object-fit: cover; }
.prop b { display: block; font-weight: 700; color: var(--navy); font-size: 12.5px; }
.prop small { color: var(--muted); font-size: 11px; display: block; }
.prop .price { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 12.5px; }

/* Property card (large) */
.prop-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prop-card__img { aspect-ratio: 16/10; position: relative; background: var(--line); }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; }
.prop-card__img .chip { position: absolute; top: 8px; left: 8px; }
.prop-card__body { padding: 10px 12px 12px; }
.prop-card__body b { display: block; color: var(--navy); font-weight: 700; font-size: 12.5px; }
.prop-card__body small { color: var(--muted); font-size: 11px; }
.prop-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.prop-card__meta .price { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.prop-card__match { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #0B7F72; font-weight: 600; }

/* Kanban / pipeline */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
.kanban__col { background: var(--bg); border-radius: 12px; padding: 8px; min-height: 250px; transition: background .2s; }
.kanban__col.is-over { background: var(--blue-50); }
.kanban__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-weight: 700; color: var(--navy); font-size: 11.5px; }
.kanban__head span { color: var(--muted); font-weight: 600; }
.kanban__head i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.deal {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px;
  box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.deal:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #CFDAEA; }
.deal b { display: block; color: var(--navy); font-weight: 600; font-size: 12px; }
.deal small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.deal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.deal__foot .price { font-family: var(--font-head); font-weight: 800; font-size: 11.5px; color: var(--navy); }
.deal.is-moving { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244,185,66,.25); }

/* Activity feed */
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.feed li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.feed .ic svg { width: 14px; height: 14px; }
.feed .ic--teal { background: var(--teal-50); color: var(--teal-600); }
.feed .ic--gold { background: var(--gold-50); color: var(--gold-700); }
.feed .ic--green { background: var(--success-50); color: var(--success); }
.feed b { color: var(--navy); font-weight: 600; }
.feed p { color: var(--ink-2); font-size: 12px; margin: 0; }
.feed time { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* AI assistant panel */
.ai-panel {
  background: linear-gradient(180deg, #0F2748, #0B1F3A);
  border: 1px solid rgba(20, 184, 166, .28); border-radius: 18px; color: #fff; overflow: hidden;
  box-shadow: var(--sh-4), 0 0 0 1px rgba(20,184,166,.05) inset;
  font-size: 13px;
}
.ai-panel__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); }
.ai-panel__head b { font-family: var(--font-head); font-weight: 700; }
.ai-panel__head small { color: var(--on-dark-3); font-size: 11px; display: block; }
.ai-orb {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff;
}
.ai-orb svg { width: 16px; height: 16px; }
.ai-panel__body { padding: 14px; display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.45; }
.msg--user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg--ai { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: #E6EDF7; border-bottom-left-radius: 4px; }
.msg--ai ul { margin: 6px 0 0; padding-left: 16px; }
.msg--ai li { margin-top: 3px; }
.msg--ai strong { color: #fff; }
.msg__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg__src span { font-size: 10.5px; padding: 2px 8px; border-radius: 99px; background: rgba(20,184,166,.14); color: #7CE3D6; }
.ai-panel__input { margin: 0 14px 14px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); color: var(--on-dark-3); font-size: 12px; }
.ai-panel__input svg { width: 14px; height: 14px; margin-left: auto; color: var(--teal); }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); opacity: .4; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* Floating UI chips */
.float-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--sh-3); font-size: 12.5px; color: var(--ink);
}
.float-card__row { display: flex; align-items: center; gap: 10px; }
.float-card b { color: var(--navy); font-weight: 700; display: block; }
.float-card small { color: var(--muted); font-size: 11px; display: block; }
.float-card--dark { background: var(--navy-800); border-color: var(--line-dark); color: #fff; }
.float-card--dark b { color: #fff; }
.float-card--dark small { color: var(--on-dark-3); }

/* HERO composition */
.hero-visual { position: relative; padding: 28px 0 40px; }
.hero-visual .app { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero-visual .app__body { grid-template-columns: 138px 1fr; min-height: 400px; }
.hero-visual .lead-table .who small { white-space: nowrap; }
.hv-ai { position: absolute; right: -20px; bottom: -8px; width: 290px; z-index: 3; }
.hv-visit { position: absolute; left: -36px; bottom: 56px; z-index: 3; width: 232px; }
.hv-next { position: absolute; right: 24px; top: -4px; z-index: 3; }
.hv-next .float-card { display: flex; align-items: center; gap: 10px; border-color: #FBE3B0; }
.bob { animation: bob 6s var(--ease) infinite; }
.bob--2 { animation-delay: -2s; animation-duration: 7s; }
.bob--3 { animation-delay: -4s; animation-duration: 8s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); position: relative; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); opacity: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 1080px) {
  .hero-visual { max-width: 720px; margin: 24px auto 0; width: 100%; }
  .hero-visual .app { transform: none; }
  .hv-visit { left: -8px; }
  .hv-ai { right: -8px; }
}
@media (max-width: 640px) {
  .hero-visual { padding: 12px 0 0; }
  .hero-visual .app__body { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual .app__side { display: none; }
  .hero-visual .lead-table th:nth-child(3), .hero-visual .lead-table td:nth-child(3) { display: none; }
  .hv-visit { display: none; }
  .hv-next { position: relative; right: auto; top: auto; margin: -14px 0 12px; display: flex; justify-content: flex-end; }
  .hv-ai { position: relative; right: auto; bottom: auto; width: auto; margin: -24px 12px 0; }
}

/* 12. PAGE SECTIONS ---------------------------------------------------- */

/* Positioning strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip__inner { display: grid; grid-template-columns: auto 1fr; gap: var(--s-7); align-items: center; padding-block: 28px; }
.strip__title { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -.02em; max-width: 22ch; line-height: 1.3; }
.strip__title span { color: var(--muted); font-weight: 600; display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.strip__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip__item { display: flex; align-items: center; gap: 12px; padding: 4px 20px; border-left: 1px solid var(--line); font-weight: 600; color: var(--ink-2); font-size: var(--fs-sm); }
.strip__item svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.strip__item:nth-child(4) svg { color: var(--teal-600); }
@media (max-width: 1080px) { .strip__inner { grid-template-columns: 1fr; gap: var(--s-4); } .strip__items { grid-template-columns: repeat(2, 1fr); gap: 12px 0; } .strip__item:nth-child(odd) { border-left: 0; padding-left: 0; } }

/* Problem — fragmented workflow */
.problem { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.problem .chaos { position: sticky; top: calc(var(--header-h) + 32px); }
.pain-list { list-style: none; padding: 0; margin-top: var(--s-6); counter-reset: pain; }
.pain-list li { counter-increment: pain; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list li::before { content: counter(pain, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--gold-700); font-size: var(--fs-sm); padding-top: 2px; }
.pain-list b { display: block; font-family: var(--font-head); color: var(--navy); font-weight: 700; font-size: 1.05rem; }
.pain-list p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }

.chaos { position: relative; min-height: 560px; border-radius: var(--r-xl); background:
  radial-gradient(circle at 1px 1px, #D6DEEA 1px, transparent 0) 0 0/22px 22px, var(--bg);
  border: 1px dashed #CBD5E1; }
.chaos__frag { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-2); padding: 12px 14px; font-size: 12.5px; transition: transform .4s var(--ease); }
.chaos__frag:hover { transform: rotate(0deg) scale(1.02) !important; z-index: 5; }
.chaos__label { display: flex; align-items: center; gap: 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.chaos__label svg { width: 13px; height: 13px; }
.chaos .bubble { background: #E7F8EF; border-radius: 10px 10px 10px 2px; padding: 7px 10px; margin-top: 6px; color: #144D33; max-width: 220px; }
.chaos .bubble--me { background: #F1F5F9; color: var(--ink-2); border-radius: 10px 10px 2px 10px; margin-left: 30px; }
.sheet { border-collapse: collapse; font-size: 11px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sheet td, .sheet th { border: 1px solid #E2E8F0; padding: 4px 8px; white-space: nowrap; }
.sheet th { background: #F1F5F9; color: var(--muted); font-weight: 600; }
.sheet .dup { background: #FDEEEE; color: #A92A2A; }
.sheet .blank { color: #CBD5E1; }
.sticky-note { background: #FFF6D6 !important; border-color: #F6E3A6 !important; font-family: var(--font-head); color: #5B4A12; transform: rotate(3deg); }
.missed { display: flex; align-items: center; gap: 10px; }
.missed .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-50); color: var(--danger); }
.missed .ic svg { width: 15px; height: 15px; }
.chaos__q { position: absolute; font-family: var(--font-head); font-weight: 800; color: #94A3B8; font-size: 13px; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; box-shadow: var(--sh-1); }
.chaos svg.chaos__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 1080px) { .problem { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .chaos { min-height: 0; display: grid; gap: 12px; padding: 16px; }
  .chaos__frag, .chaos__q { position: relative; inset: auto !important; transform: none !important; width: auto !important; }
  .chaos svg.chaos__lines { display: none; }
  .sheet { width: 100%; }
}

/* Solution — connected chain */
.chain { position: relative; }
.chain__track { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; list-style: none; padding: 0; margin: 0; }
.chain__track > li { display: flex; justify-content: center; }
.chain__who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chain__who > span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); font-size: var(--fs-xs); color: var(--on-dark-2); }
.chain__track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: var(--line); }
.chain__progress { position: absolute; left: 8%; top: 27px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .6s var(--ease); }
.chain__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 6px; background: none; border: 0; color: inherit; }
.chain__node {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.chain__node svg { width: 22px; height: 22px; }
.chain__name { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; color: var(--muted); transition: color .3s; }
.chain__step.is-done .chain__node { border-color: var(--blue); color: var(--blue); }
.chain__step.is-active .chain__node { background: var(--navy); border-color: var(--navy); color: var(--gold); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(37,99,235,.12); }
.chain__step.is-active .chain__name, .chain__step.is-done .chain__name { color: var(--navy); }
.chain__step:hover .chain__node { border-color: var(--blue); }
.chain__detail { margin-top: var(--s-7); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: stretch; }
.chain__copy { padding: var(--s-6); border-radius: var(--r-xl); background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-5); min-height: 280px; }
.chain__copy .k { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.chain__copy h3 { color: #fff; margin-top: 8px; }
.chain__copy p { color: var(--on-dark-2); margin-top: 10px; }
.chain__pager { display: flex; gap: 8px; }
.chain__pager button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #fff; display: grid; place-items: center; transition: background .2s; }
.chain__pager button:hover { background: rgba(255,255,255,.08); }
.chain__pager svg { width: 16px; height: 16px; }
.record { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); box-shadow: var(--sh-2); }
.record__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.record__head b { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; display: block; }
.record__head small { color: var(--muted); font-size: var(--fs-xs); }
.record__head .chip { margin-left: auto; }
.record__rows { display: grid; gap: 0; margin-top: 6px; }
.record__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); opacity: .35; transition: opacity .4s, background .4s; }
.record__row:last-child { border-bottom: 0; }
.record__row span { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.record__row.is-on { opacity: 1; }
.record__row.is-now { background: linear-gradient(90deg, var(--gold-50), transparent); margin-inline: -12px; padding-inline: 12px; border-radius: 8px; }
@media (max-width: 960px) {
  .chain__track { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .chain__track::before, .chain__progress { display: none; }
  .chain__detail { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .chain__track { grid-template-columns: repeat(2, 1fr); }
  .record__row { grid-template-columns: 1fr; gap: 2px; }
}

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.bento__tile {
  grid-column: span 4; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.bento__tile:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: #D5DEEA; }
.bento__tile h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.bento__tile p { color: var(--muted); font-size: var(--fs-sm); }
.bento__tile--wide { grid-column: span 8; }
.bento__tile--half { grid-column: span 6; }
.bento__tile--tall { grid-row: span 2; }
.bento__tile--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.bento__tile--navy h3 { color: #fff; } .bento__tile--navy p { color: var(--on-dark-2); }
.bento__tile--blue { background: var(--blue); border-color: var(--blue); }
.bento__tile--blue h3 { color: #fff; } .bento__tile--blue p { color: #DCE6FE; }
.bento__demo { margin-top: auto; padding-top: 12px; }
.bento__split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center; height: 100%; }
.mini-list { display: grid; gap: 8px; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12.5px; }
.mini-row b { color: var(--navy); font-weight: 600; }
.mini-row small { color: var(--muted); font-size: 11px; display: block; }
.mini-row .chip { margin-left: auto; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.bar-chart div { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(255,255,255,.14); position: relative; transform-origin: bottom; transition: transform 1s var(--ease); }
.bar-chart div.is-accent { background: var(--teal); }
.bar-chart div span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--on-dark-3); }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11px; }
.cal__d { text-align: center; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.cal__slot { height: 30px; border-radius: 6px; background: var(--bg); }
.cal__slot.is-busy { background: var(--blue-50); border-left: 3px solid var(--blue); }
.cal__slot.is-visit { background: var(--gold-50); border-left: 3px solid var(--gold); }
.cal__slot.is-teal { background: var(--teal-50); border-left: 3px solid var(--teal); }
.flow-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.flow-mini span { padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.flow-mini span svg { width: 13px; height: 13px; }
.flow-mini .arr { background: none; padding: 0; color: rgba(255,255,255,.6); }
@media (max-width: 1080px) {
  .bento__tile, .bento__tile--wide, .bento__tile--half { grid-column: span 6; }
  .bento__tile--tall { grid-row: auto; }
  .bento__split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) { .bento__tile, .bento__tile--wide, .bento__tile--half { grid-column: span 12; } }

/* AI section */
.ai-section { overflow: hidden; }
.ai-section::before {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 800px; height: 800px; pointer-events: none;
  background: radial-gradient(circle, rgba(20,184,166,.18), transparent 65%);
}
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; position: relative; }
.ai-uses { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: 0; }
.ai-uses li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.ai-uses li:last-child { border-bottom: 1px solid var(--line-dark); }
.ai-uses b { color: #fff; font-family: var(--font-head); display: block; font-weight: 700; }
.ai-uses p { color: var(--on-dark-2); font-size: var(--fs-sm); margin-top: 2px; }
.human-note { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--s-6); padding: 16px 18px; border-radius: var(--r-lg); background: rgba(244, 185, 66, .08); border: 1px solid rgba(244, 185, 66, .25); }
.human-note svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.human-note p { color: #F3E3BD !important; font-size: var(--fs-sm); }
@media (max-width: 1080px) { .ai-grid { grid-template-columns: 1fr; } }

/* Product showcase tabs */
.tabs__list { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill); border: 0; background: none;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--muted); white-space: nowrap;
  transition: color .25s;
}
.tabs__tab svg { width: 16px; height: 16px; }
.tabs__tab[aria-selected="true"] { color: #fff; }
.tabs__indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: var(--r-pill); background: var(--navy); transition: transform .35s var(--ease), width .35s var(--ease); z-index: 0; }
.tabs__panel { animation: fadeUp .45s var(--ease); }
.tabs__panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.showcase { margin-top: var(--s-6); }
.showcase .app { box-shadow: var(--sh-3); border-color: var(--line); }
.showcase .app__body { min-height: 470px; grid-template-columns: 188px 1fr; }
.showcase__caption { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
.showcase__caption div { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); }
.showcase__caption svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: 3px; }
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.split-view { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.box__t { font-weight: 700; color: var(--navy); font-size: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.box__t span { color: var(--muted); font-weight: 500; font-size: 11px; }
@media (max-width: 900px) {
  .showcase .app__body { grid-template-columns: 1fr; }
  .showcase .app__side { display: none; }
  .showcase__caption { grid-template-columns: 1fr; gap: 12px; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .split-view { grid-template-columns: 1fr; }
}
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x .kanban { min-width: 640px; }
@media (max-width: 560px) { .prop-grid { grid-template-columns: 1fr 1fr; } .prop-grid > :nth-child(n+5) { display: none; } }

/* Audience split panels */
.audiences { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: var(--s-5); }
.aud {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 640px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate;
}
.aud > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.aud:hover > img { transform: scale(1.03); }
.aud::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,58,.05) 20%, rgba(11,31,58,.72) 55%, rgba(11,31,58,.96) 100%); }
.aud__body { padding: clamp(24px, 3vw, 40px); }
.aud__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.aud h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.12; margin: 12px 0 16px; letter-spacing: -.03em; max-width: 20ch; }
.aud ul { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 24px; }
.aud li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: #D5DEEA; font-size: var(--fs-sm); }
.aud li svg { width: 18px; height: 18px; color: var(--teal); margin-top: 2px; }
.aud--agents { background: var(--navy); }
@media (max-width: 960px) { .audiences { grid-template-columns: 1fr; } .aud { min-height: 560px; } }

/* Steps journey (horizontal, sticky head) */
.journey { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.journey__head { position: sticky; top: calc(var(--header-h) + 40px); }
.journey__list { list-style: none; padding: 0; margin: 0; position: relative; }
.journey__list::before { content: ""; position: absolute; left: 31px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
.journey__item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: clamp(28px, 3vw, 44px); position: relative; }
.journey__num {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy);
  box-shadow: var(--sh-1); transition: background .3s, color .3s, border-color .3s;
}
.journey__item.is-in .journey__num { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.journey__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-1); }
.journey__card h3 { font-size: 1.25rem; }
.journey__card p { color: var(--muted); margin-top: 6px; font-size: var(--fs-sm); }
.journey__card .cluster { margin-top: 14px; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; } .journey__head { position: static; } }
@media (max-width: 520px) {
  .journey__item { grid-template-columns: 44px 1fr; gap: 14px; }
  .journey__num { width: 44px; height: 44px; border-radius: 14px; font-size: 1rem; }
  .journey__list::before { left: 21px; }
}

/* Day timeline */
.day { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.day__photo { position: sticky; top: calc(var(--header-h) + 32px); }
.day__list { list-style: none; padding: 0; margin: 0; }
.day__item { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.day__item:last-child { border-bottom: 1px solid var(--line); }
.day__item .day__time { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); letter-spacing: -.04em; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.day__item .day__time small { display: block; font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 8px; }
.day__item h3 { font-size: 1.15rem; }
.day__item p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.day__ui { margin-top: 14px; }
@media (max-width: 960px) { .day { grid-template-columns: 1fr; } .day__photo { position: relative; top: 0; } }
@media (max-width: 520px) { .day__item { grid-template-columns: 1fr; gap: 10px; } }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.compare__col { padding: clamp(24px, 3vw, 44px); }
.compare__col--ziko { background: var(--navy); color: #fff; position: relative; }
.compare__col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.compare__col--ziko h3 { color: #fff; }
.compare__rows { list-style: none; padding: 0; margin-top: var(--s-5); }
.compare__rows li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.compare__col--ziko .compare__rows li { border-color: var(--line-dark); color: var(--on-dark-2); }
.compare__rows li b { display: block; color: var(--navy); font-weight: 600; }
.compare__col--ziko .compare__rows li b { color: #fff; }
.compare__rows svg { width: 20px; height: 20px; margin-top: 1px; }
.compare__col--old svg { color: #94A3B8; }
.compare__col--old .compare__rows li { color: var(--muted); }
.compare__col--ziko svg { color: var(--teal); }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .2s, border-color .2s; }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq summary:hover .pm { border-color: var(--blue); color: var(--blue); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.faq__a { padding: 0 64px 24px 0; color: var(--ink-2); }
.faq__a p + p { margin-top: .8em; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } .faq__a { padding-right: 0; } }

/* Demo CTA band — photo + floating panel */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.cta-band__copy { padding: clamp(32px, 5vw, 72px); position: relative; }
.cta-band__copy h2 { color: #fff; margin: var(--s-4) 0; }
.cta-band__copy p { color: var(--on-dark-2); }
.cta-band__media { position: relative; min-height: 420px; }
.cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(11,31,58,.2) 35%, rgba(11,31,58,0) 60%); }
.cta-band__steps { list-style: none; padding: 0; margin: var(--s-6) 0; display: grid; gap: 12px; counter-reset: s; }
.cta-band__steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--on-dark-2); font-size: var(--fs-sm); }
.cta-band__steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,185,66,.14); color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 13px; }
.cta-band__steps b { color: #fff; font-weight: 600; }
.cta-band .float { position: absolute; left: 32px; bottom: 32px; z-index: 2; max-width: 280px; }
@media (max-width: 960px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__media { min-height: 280px; order: -1; }
  .cta-band__media::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(11,31,58,0) 60%); }
}

/* Feature deep-dive rows (funciones) */
.fnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(246,248,252,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.fnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.fnav__inner::-webkit-scrollbar { display: none; }
.fnav a { flex: none; padding: 8px 14px; border-radius: var(--r-pill); font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.fnav a:hover { color: var(--navy); background: #fff; }
.fnav a.is-active { background: var(--navy); color: #fff; }

.feature-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 6vw, 104px); border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.feature-row--flip .feature-row__copy { order: 2; }
.feature-row__copy h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); margin: var(--s-4) 0; }
.feature-row__copy .lead { font-size: 1.08rem; }
.feature-row__points { list-style: none; padding: 0; margin-top: var(--s-5); display: grid; gap: 14px; }
.feature-row__points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.feature-row__points b { display: block; color: var(--navy); font-family: var(--font-head); font-weight: 700; }
.feature-row__points span { color: var(--muted); font-size: var(--fs-sm); }
.feature-row__visual { position: relative; }
.visual-surface { background: linear-gradient(160deg, #EAF0FA, #F6F8FC); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 36px); position: relative; overflow: hidden; }
.visual-surface--navy { background: linear-gradient(160deg, var(--navy-700), var(--navy)); border-color: var(--navy); }
.visual-surface--photo { padding: 0; border: 0; }
@media (max-width: 960px) { .feature-row { grid-template-columns: 1fr; } .feature-row--flip .feature-row__copy { order: 0; } }

/* Info grid (value props with varied spans) */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.values > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.values > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.values > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.values h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.values p { color: var(--muted); font-size: var(--fs-sm); }
.on-dark .values, .on-dark .values > div { border-color: var(--line-dark); }
.on-dark .values p { color: var(--on-dark-2); }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr 1fr; }
  .values > div, .values > div + div { padding: 24px 20px 24px 0; border-left: 0; }
  .values > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } .values > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Big quote-like statement (no fake testimonials — product statements) */
.statement { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.2; letter-spacing: -.03em; color: var(--navy); max-width: 28ch; }
.statement em { font-style: normal; color: var(--blue); }
.on-dark .statement { color: #fff; }
.on-dark .statement em { color: var(--teal); }

/* Role cards (para inmobiliarias) */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.role { border-radius: var(--r-xl); padding: 28px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.role__who { display: flex; align-items: center; gap: 12px; }
.role__who b { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; display: block; }
.role__who small { color: var(--muted); font-size: var(--fs-xs); }
.role__q { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.35; padding: 14px 16px; border-radius: 14px; background: var(--bg); border-left: 3px solid var(--gold); }
.role p { color: var(--muted); font-size: var(--fs-sm); }
.role--featured { background: var(--navy); border-color: var(--navy); }
.role--featured .role__who b, .role--featured .role__q { color: #fff; }
.role--featured .role__q { background: rgba(255,255,255,.06); }
.role--featured p { color: var(--on-dark-2); }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr; } }

/* Scenario cards (para agentes) */
.scenarios { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); }
.scenario { grid-column: span 4; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.scenario--wide { grid-column: span 8; flex-direction: row; }
.scenario--wide .scenario__img { width: 46%; aspect-ratio: auto; }
.scenario__img { aspect-ratio: 4/3; position: relative; overflow: hidden; background: var(--navy-700); }
.scenario__img img { width: 100%; height: 100%; object-fit: cover; }
.scenario__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.scenario__time { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700); }
.scenario h3 { font-size: 1.2rem; }
.scenario p { color: var(--muted); font-size: var(--fs-sm); }
.scenario__ui { margin-top: auto; padding-top: 8px; }
@media (max-width: 1080px) { .scenario, .scenario--wide { grid-column: span 6; flex-direction: column; } .scenario--wide .scenario__img { width: 100%; aspect-ratio: 4/3; } }
@media (max-width: 680px) { .scenario, .scenario--wide { grid-column: span 12; } }

/* Process (cómo funciona) — alternating stages */
.stage { display: grid; grid-template-columns: 120px minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 5vw, 88px); border-top: 1px solid var(--line); }
.stage__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(3.5rem, 2.4rem + 4vw, 6.5rem); line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px #B9C6D8; align-self: start; }
.stage.is-in .stage__num { -webkit-text-stroke-color: var(--blue); }
.stage h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.4rem); margin: 12px 0; }
@media (max-width: 1080px) { .stage { grid-template-columns: 1fr 1fr; } .stage__num { grid-column: 1 / -1; font-size: 3.5rem; } }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; } }

/* Resource guides */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.guide-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-700); }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.guide-card:hover .guide-card__img img { transform: scale(1.04); }
.guide-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card__body h3 { font-size: 1.2rem; }
.guide-card__body p { color: var(--muted); font-size: var(--fs-sm); }
.guide-card__body .link-arrow { margin-top: auto; }
@media (max-width: 960px) { .guide-cards { grid-template-columns: 1fr; } }

.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(48px, 5vw, 88px); border-top: 1px solid var(--line); }
.guide__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.guide__aside .chip { margin-bottom: 14px; }
.guide__body h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: var(--s-4); }
.guide__body h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.guide__body p, .guide__body li { color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.checklist li svg { width: 20px; height: 20px; color: var(--teal-600); margin-top: 2px; }
.stages-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: var(--fs-sm); }
.stages-table th, .stages-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stages-table th { background: var(--bg); font-family: var(--font-head); color: var(--navy); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }
.stages-table tr:last-child td { border-bottom: 0; }
.stages-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.glossary div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.glossary dd { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .guide__aside { position: static; } .glossary { grid-template-columns: 1fr; } .table-wrap { overflow-x: auto; } .stages-table { min-width: 560px; } }

/* 13. FORMS ------------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); box-shadow: var(--sh-3); position: relative; }
.form-card__head { margin-bottom: var(--s-5); }
.form-card__head h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.form-card__head p { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff;
  font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: #94A3B8; }
.input:hover, .select:hover, .textarea:hover { border-color: #CBD5E1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); background: #FFFBFB; }
.field.is-invalid .input:focus, .field.is-invalid .select:focus { box-shadow: 0 0 0 4px rgba(211, 58, 58, .12); }
.field.is-valid .input { border-color: #9EDDC0; }
.field__error { display: none; align-items: center; gap: 6px; color: var(--danger); font-size: var(--fs-xs); font-weight: 500; }
.field__error svg { width: 14px; height: 14px; flex: none; }
.field.is-invalid .field__error { display: flex; }
.field__hint { color: var(--muted); font-size: var(--fs-xs); }
.phone-group { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.phone-group .prefix { display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-weight: 600; color: var(--ink-2); font-size: 15px; }

.chips-select { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips-select legend { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 10px; padding: 0; }
.chips-select legend .opt { font-weight: 400; color: var(--muted); }
.chips-select label { position: relative; }
.chips-select input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips-select label > span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chips-select label > span svg { width: 14px; height: 14px; display: none; }
.chips-select input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
.chips-select input:checked + span svg { display: block; }
.chips-select input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: var(--fs-sm); color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.field.is-invalid .consent { color: var(--danger); }
.form-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--muted); }
.form-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--teal-600); }
.form-alert { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--danger-50); color: #8E2323; font-size: var(--fs-sm); margin-bottom: 16px; border: 1px solid #F6D0D0; }
.form-alert.is-visible { display: flex; }
.form-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.form-success { display: none; text-align: left; padding: 8px 0; animation: fadeUp .5s var(--ease); }
.form-success.is-visible { display: block; }
.form-success__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--success-50); color: var(--success); margin-bottom: 18px; }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h2 { font-size: 1.6rem; }
.form-success p { color: var(--ink-2); margin-top: 10px; }
.form-success ol { margin: 18px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; counter-reset: fs; }
.form-success ol li { counter-increment: fs; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.form-success ol li::before { content: counter(fs); width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Demo page layout */
.demo-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.demo-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.agenda { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--line-dark); }
.agenda li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.agenda .t { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: var(--fs-sm); padding-top: 2px; }
.agenda b { color: #fff; font-family: var(--font-head); display: block; }
.agenda p { color: var(--on-dark-2); font-size: var(--fs-sm); margin-top: 2px; }
@media (max-width: 1000px) { .demo-layout { grid-template-columns: 1fr; } .demo-aside { position: static; } }

/* Contact topics */
.topics { display: grid; gap: 12px; }
.topic { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.topic b { display: block; font-family: var(--font-head); color: var(--navy); }
.topic p { color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: 8px; }
.legal__toc > p { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal__toc nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; line-height: 1.4; }
.legal__toc nav a:hover { background: #fff; color: var(--navy); }
.legal__toc nav a.is-active { border-left-color: var(--blue); color: var(--navy); font-weight: 600; background: #fff; }
.legal__body { max-width: 760px; }
.legal__body section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal__body section:last-child { border-bottom: 0; }
.legal__body h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.legal__body h2 span { font-size: var(--fs-sm); color: var(--gold-700); font-weight: 800; }
.legal__body h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal__body p, .legal__body li { color: var(--ink-2); line-height: 1.7; }
.legal__body p + p { margin-top: 12px; }
.legal__body ul, .legal__body ol { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.legal-entities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.legal-entity { padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.legal-entity b { display: block; font-family: var(--font-head); color: var(--navy); }
.legal-entity small { display: block; color: var(--muted); margin-top: 2px; }
.legal-entity p { font-size: var(--fs-sm); margin-top: 8px !important; }
.notice { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--ink-2); font-size: var(--fs-sm); }
.notice svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.notice--gold { background: var(--gold-50); border-color: #FBE3B0; }
.notice--gold svg { color: var(--gold-700); }
@media (max-width: 960px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; max-height: none; } .legal-entities { grid-template-columns: 1fr; } }

/* 14. FOOTER ----------------------------------------------------------- */
.site-footer { background: #081830; color: var(--on-dark-2); padding-top: clamp(56px, 6vw, 96px); font-size: var(--fs-sm); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, .7fr)); gap: var(--s-6); padding-bottom: var(--s-8); }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--on-dark-2); }
.footer-brand .btn { margin-top: 24px; }
.footer-col h2 { font-family: var(--font-head); font-size: var(--fs-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 800; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #D6DFEC; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-companies { display: grid; grid-template-columns: auto 1fr 1fr; gap: var(--s-6); padding-block: var(--s-6); border-top: 1px solid var(--line-dark); align-items: start; }
.footer-companies__lead { max-width: 36ch; color: var(--on-dark-3); font-size: var(--fs-xs); line-height: 1.6; }
.footer-company b { color: #fff; font-family: var(--font-head); font-weight: 700; display: block; font-size: .95rem; }
.footer-company span { display: block; color: var(--on-dark-3); font-size: var(--fs-xs); margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line-dark); color: var(--on-dark-3); font-size: var(--fs-xs); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--on-dark-3); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-word { position: absolute; right: -2%; bottom: -8%; font-family: var(--font-head); font-weight: 800; font-size: clamp(8rem, 20vw, 18rem); letter-spacing: -.07em; line-height: .8; color: rgba(255,255,255,.025); pointer-events: none; user-select: none; }
.footer-top, .footer-companies, .footer-bottom { position: relative; z-index: 1; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-companies { grid-template-columns: 1fr; gap: var(--s-4); } }

/* 15. UTILITIES & MOTION ----------------------------------------------- */
.mt-1 { margin-top: var(--s-2); } .mt-2 { margin-top: var(--s-4); } .mt-3 { margin-top: var(--s-5); } .mt-4 { margin-top: var(--s-6); } .mt-5 { margin-top: var(--s-7); } .mt-6 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide-sm { } @media (max-width: 640px) { .hide-sm { display: none !important; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-visual .app { transform: none; }
}
@media print { .site-header, .mobile-nav, .site-footer, .fnav { display: none; } body { background: #fff; } }

/* AI visual: photo + floating assistant */
.ai-stage { position: relative; padding: 0 0 48px 48px; }
.ai-stage .photo { aspect-ratio: 4 / 5; max-width: 460px; margin-left: auto; }
.ai-stage .ai-panel { position: absolute; left: 0; bottom: 0; width: min(420px, 88%); z-index: 2; }
.ai-stage .float { position: absolute; right: -12px; top: 36px; z-index: 2; }
@media (max-width: 640px) {
  .ai-stage { padding: 0; }
  .ai-stage .photo { aspect-ratio: 4 / 3; }
  .ai-stage .ai-panel { position: relative; width: auto; margin: -64px 12px 0; }
  .ai-stage .float { display: none; }
}
.stage-bars { display: grid; gap: 8px; }
.stage-bars div { display: grid; grid-template-columns: 90px 1fr 56px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); }
.stage-bars i { display: block; height: 8px; border-radius: 99px; background: var(--blue); }
.stage-bars b { font-family: var(--font-head); color: var(--navy); font-size: 12px; text-align: right; }
.mini-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; border-left: 2px solid var(--line); padding-left: 14px; }
.mini-timeline li { position: relative; font-size: 12.5px; color: var(--ink-2); }
.mini-timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.mini-timeline b { color: var(--navy); font-weight: 600; }
.mini-timeline small { color: var(--muted); display: block; font-size: 11px; }

/* Cómo funciona — flow strip */
.flow { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); }
.flow > li { position: relative; display: flex; align-items: center; }
.flow > li + li { border-left: 1px solid var(--line); }
.flow-node { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; text-decoration: none; font-family: var(--font-head); font-weight: 700; color: var(--navy); border-radius: var(--r-xl); transition: background .2s; }
.flow-node:hover { background: var(--bg); }
.flow-arrow { position: absolute; right: -13px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; z-index: 1; color: var(--muted); }
.flow-arrow svg { width: 13px; height: 13px; }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(3, 1fr); } .flow > li:nth-child(4) { border-left: 0; } .flow > li:nth-child(n+4) { border-top: 1px solid var(--line); } .flow > li:nth-child(3) .flow-arrow { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: repeat(2, 1fr); } .flow > li { border-left: 0 !important; border-top: 1px solid var(--line); } .flow > li:nth-child(-n+2) { border-top: 0; } .flow > li:nth-child(even) { border-left: 1px solid var(--line) !important; } .flow-arrow { display: none; } .flow-node { padding: 16px; font-size: .92rem; } }

/* Onboarding steps */
.onb { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); counter-reset: onb; }
.onb__step { position: relative; padding: 28px 24px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); }
.onb__step::after { content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--line); }
.onb__step:last-child::after { display: none; }
.onb__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: .95rem; margin-bottom: 18px; }
.onb__step p { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }
@media (max-width: 960px) { .onb { grid-template-columns: 1fr 1fr; } .onb__step::after { display: none; } }
@media (max-width: 560px) { .onb { grid-template-columns: 1fr; } }

/* Values in 2 columns */
.values--2 { grid-template-columns: 1fr 1fr; }
.values--2 > div, .values--2 > div + div { padding: 24px 24px 24px 0; border-left: 0; }
.values--2 > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-dark); }
@media (max-width: 560px) { .values--2 { grid-template-columns: 1fr; } .values--2 > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Lead distribution diagram + inventory overlay */
@media (max-width: 640px) {
  .dist { grid-template-columns: 1fr !important; }
  .dist > div:nth-child(2) { transform: rotate(90deg); margin: 4px auto; }
  .inv-cards { grid-template-columns: 1fr 1fr !important; margin: -40px 12px 0 !important; }
  .inv-cards > :nth-child(3) { display: none; }
}
.demo-aside .agenda { margin-bottom: var(--s-5); }

.week-board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.week-board .deal { padding: 8px; }
.week-board .deal b { font-size: 11.5px !important; line-height: 1.35; }
@media (max-width: 700px) { .week-board { grid-template-columns: repeat(5, 130px); min-width: 0; } }

/* Grid overflow guards */
.stage > *, .guide > *, .feature-row > *, .split > *, .journey > *, .day > *, .legal > *, .demo-layout > *, .faq-layout > *, .page-hero__grid > * { min-width: 0; }
@media (max-width: 640px) {
  .photo-stage .float { left: 12px !important; right: auto !important; }
  .photo-stage .float.hide-sm { display: none; }
  .page-hero .photo-stage .float { top: auto !important; bottom: 12px !important; }
}
@media (max-width: 480px) {
  .hero__ctas .btn, .cta-band .cluster .btn { width: 100%; white-space: normal; text-align: center; }
  .aud .btn { white-space: normal; text-align: left; }
}
@media (max-width: 1080px) { .problem .chaos { position: relative; top: 0; } }
@media (max-width: 640px) {
  .lead-table--4 th:nth-child(2), .lead-table--4 td:nth-child(2), .lead-table--4 th:nth-child(4), .lead-table--4 td:nth-child(4) { display: none; }
  .lead-table .chip { white-space: normal; }
  .hero-visual .app__main { overflow: hidden; }
}
@media (max-width: 960px) { .day__photo .photo { aspect-ratio: 3 / 2; } .day__photo .photo img { object-position: center 25% !important; } }

/* Para agentes — balanced 2x2 scenario grid */
.scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.scenarios .scenario { grid-column: auto; flex-direction: column; }
.scenarios .scenario__img { aspect-ratio: 16 / 9; width: 100%; }
.scenarios .scenario__body { padding: 26px 28px 28px; }
.scenarios .scenario__ui { margin-top: auto; padding-top: 14px; }
@media (max-width: 760px) { .scenarios { grid-template-columns: 1fr; } }
