/* ============================================================
   MapGestión landing — nube / celular / video
   Acentos: teal / cian operativo (sin púrpura)
   ============================================================ */
:root {
  /* Light theme */
  --ink: #ffffff;
  --panel: #f5f5f5;
  --text: #212121;
  --muted: #6b6b6b;
  --accent: #00bfa5; /* fresh teal */
  --accent-2: #66fff9;
  --teal: #00bfa5;
  --sky: #00c8ff;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --glass: rgba(255, 255, 255, .4);
  --glass-border: rgba(0, 0, 0, .1);
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --accent-glow: rgba(0, 191, 165, .35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #041016;
    --panel: #0a1a22;
    --text: #e8f1f4;
    --muted: #8aa3ae;
    --accent: #2ec4b6;
    --accent-2: #89f5e7;
    --teal: #89f5e7;
    --sky: #38bdf8;
    --glass: rgba(8, 24, 32, .55);
    --glass-border: rgba(137, 245, 231, .14);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.ambient span:nth-child(1) { width: 46vw; height: 46vw; background: #0f766e; opacity: .14; top: -10%; left: -8%; animation: blobA 26s ease-in-out infinite; }
.ambient span:nth-child(2) { width: 42vw; height: 42vw; background: #0284c7; opacity: .1; top: 40%; right: -12%; animation: blobB 32s ease-in-out infinite; }
.ambient span:nth-child(3) { width: 38vw; height: 38vw; background: #89f5e7; opacity: .07; bottom: -14%; left: 24%; animation: blobC 30s ease-in-out infinite; }
@keyframes blobA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8vw, 6vh); } }
@keyframes blobB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-7vw, -5vh); } }
@keyframes blobC { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6vw, -7vh); } }

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section-title {
  font-size: clamp(1.55rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  line-height: 1.15;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  margin: .7rem auto 2.25rem;
  max-width: 44ch;
}
.grad {
  background: linear-gradient(100deg, var(--teal), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.js .gsap-fade,
.js .reveal,
.js .mod__text,
.js .mod__media { opacity: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 52px; padding: 0 1.5rem; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 0 2rem; font-size: 1.05rem; }
.btn--primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #041016;
  box-shadow: 0 10px 30px var(--accent-glow);
}
.btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(46,196,182,.5); }
  .btn--ghost:hover { background: rgba(255,255,255,.14); }
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ===== Nav glass flotante ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: .85rem 1rem 0;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .7rem .55rem 1.1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 40px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: none; gap: 1.35rem; color: var(--muted); font-size: .9rem; font-weight: 600; }

/* Mobile navigation button */
.nav__menuBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Drawer navigation */
.nav__drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  max-width: 80%;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.2);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding-top: calc(var(--nav-height, 4rem) + 1rem);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.nav__drawer.is-open {
  transform: translateX(0);
}

/* Overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 55;
}

.nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Hide menu button on larger screens */
@media (min-width: 820px) {
  .nav__menuBtn { display: none; }
  .nav__drawer { position: static; transform: none; height: auto; width: auto; background: none; backdrop-filter: none; padding: 0; display: flex; flex-direction: row; }
  .nav__overlay { display: none; }
}

.nav__links a:hover { color: #fff; }
@media (min-width: 820px) {
  .nav__links { display: flex; }
}

/* ============================================================
   §1 Hero — full-bleed, texto encima
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  justify-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: -6% 0 -4%;
  z-index: 0;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* Hero inicio: tablet centrado; texto abajo-derecha para no taparlo */
.hero__media img.hero__img--index {
  object-position: center 45%;
}
@media (max-width: 700px) {
  .hero__media img.hero__img--index { object-position: 48% 42%; }
  .hero__content {
    width: min(100% - 2rem, 100%);
    margin: 0 1rem 1.25rem auto;
    padding: 0;
    text-align: left;
  }
  .hero__title { font-size: clamp(1.55rem, 6.5vw, 2.15rem); }
}

.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,16,22,.35) 0%, rgba(4,16,22,.08) 35%, rgba(4,16,22,.45) 68%, rgba(4,16,22,.88) 100%),
    linear-gradient(250deg, rgba(4,16,22,.75) 0%, rgba(4,16,22,.35) 28%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 480px);
  margin: 0 1.25rem 3.5rem auto;
  padding: 0;
  text-align: left;
}
@media (min-width: 900px) {
  .hero__content {
    width: min(42vw, 480px);
    margin: 0 max(1.5rem, calc((100% - var(--maxw)) / 2)) 4.5rem auto;
  }
}

.hero__brand {
  font-size: clamp(1.25rem, 3.5vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--teal);
  margin-bottom: .75rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.hero__title {
  font-size: clamp(1.9rem, 5.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-shadow: 0 4px 28px rgba(0,0,0,.5);
}
.hero__desc {
  color: #d5e4ea;
  margin: 1rem 0 1.6rem;
  max-width: 38ch;
  font-size: 1.02rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35);
  border-radius: 14px; z-index: 2;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ============================================================
   §2 Historia unificada (chat → excel → tabla + mockups)
   ============================================================ */
.story { position: relative; z-index: 1; padding: 0 0 2rem; }
.story__intro { margin-bottom: 2rem; }

.chaos { position: relative; z-index: 1; overflow: visible; }
.chaos__pin {
  position: relative;
  padding: 6.75rem 0 2.5rem;
}
.chaos__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  width: 100%;
  margin: 0 0 1.35rem;
  padding: 0 1rem;
  position: relative;
  z-index: 3;
  background: transparent;
}
.chaos__cap {
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  letter-spacing: -.03em;
  color: #fff;
  margin: 0;
  max-width: 42rem;
  min-height: 2.4em;
  padding: 0;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.chaos__sub {
  text-align: center;
  color: var(--muted);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  margin: 0;
  max-width: 36rem;
  min-height: 1.5em;
  padding: 0;
  line-height: 1.4;
  position: relative;
  z-index: 0;
}
.chaos__stage {
  position: relative;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  min-height: min(72vh, 640px);
  overflow: hidden;
}
.chaos__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
  overflow: visible;
}
.chaos__table {
  align-items: stretch;
  place-items: stretch;
  inset: auto 0 0 0;
  top: 0;
  height: auto;
  min-height: 100%;
}
.chaos__table .mgtable { width: 100%; max-width: none; }

/* WhatsApp / Radio mock */
.wa {
  width: min(100%, 380px);
  border-radius: 20px;
  overflow: hidden;
  background: #0b1c24;
  border: 1px solid rgba(137,245,231,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
.wa__head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.wa__head .material-symbols-outlined { color: var(--teal); font-size: 1.6rem; }
.wa__head strong { display: block; font-size: .92rem; }
.wa__head em { display: block; font-style: normal; font-size: .75rem; color: var(--muted); }
.wa__thread {
  padding: 1rem;
  display: flex; flex-direction: column; gap: .55rem;
  min-height: 280px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46,196,182,.08), transparent 50%),
    #07141a;
}
.wa__bubble {
  max-width: 88%;
  padding: .7rem .9rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.35;
  font-weight: 600;
}
.wa__bubble--in {
  align-self: flex-start;
  background: #1a2e38;
  color: #e8f1f4;
  border-bottom-left-radius: 4px;
}
.wa__bubble--out {
  align-self: flex-end;
  background: linear-gradient(135deg, #0f766e, #2ec4b6);
  color: #041016;
  border-bottom-right-radius: 4px;
}
.wa__typing {
  align-self: flex-start;
  display: inline-flex; gap: 4px;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: #1a2e38;
}
.wa__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #64748b;
  animation: waDot 1.2s infinite ease-in-out;
}
.wa__typing span:nth-child(2) { animation-delay: .15s; }
.wa__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes waDot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 767px) {
  .chaos__pin {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5.25rem 0 1.25rem;
    box-sizing: border-box;
  }
  .chaos__cap {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    min-height: 2.5em;
  }
  .chaos__sub { font-size: .95rem; }
  .chaos__stage {
    width: min(100% - 1.25rem, 1200px);
    min-height: min(58svh, 520px);
    flex: 1 1 auto;
    overflow: hidden;
  }
  .chaos__layer {
    position: absolute;
    inset: 0;
  }
  .chaos__table .mgtable { font-size: .82rem; }
  .mgtable__grid { font-size: .78rem; }
  .mgtable__grid th,
  .mgtable__grid td { padding: .45rem .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .chaos__stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: visible;
  }
  .chaos__layer {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 1.25rem;
  }
}

@media (min-width: 900px) {
  .chaos__pin {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 7rem 0 2.5rem;
    box-sizing: border-box;
  }
  .chaos__stage { min-height: min(68vh, 640px); flex: 1 1 auto; }
  .chaos__table .mgtable { align-self: stretch; }
}

/* Mockups — Desde donde sea (grid estático) */
.story-scenes {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 5rem;
  background: var(--ink, #041016);
}
.story-scenes__title {
  text-align: center;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 auto .55rem;
  line-height: 1.15;
}
.story-scenes__sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 42ch;
  font-size: clamp(.95rem, 2vw, 1.1rem);
}
.story-scenes__rail {
  display: grid;
  gap: 1.5rem;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}
.story-scenes__card {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.story-scenes__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  background: var(--panel);
}
.story-scenes__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.story-scenes__copy .material-symbols-outlined {
  color: var(--teal); font-size: 1.5rem; margin-bottom: .35rem;
}
.story-scenes__copy h3 {
  font-size: 1.25rem; margin-bottom: .3rem;
}
.story-scenes__copy p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (min-width: 800px) {
  .story-scenes__rail { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .story-scenes__card { padding: .85rem; }
}

/* Excel (reutilizado en chaos) */
.xls {
  width: min(100%, 780px); margin: 0 auto;
  background: #fff; color: #1f2937; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); font-size: .82rem;
}
.xls__bar {
  background: #e5e7eb; padding: .55rem .8rem;
  display: flex; align-items: center; gap: .4rem;
  color: #6b7280; font-size: .75rem;
}
.xls__bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.xls__grid { width: 100%; border-collapse: collapse; }
.xls__grid th, .xls__grid td { border: 1px solid #e5e7eb; padding: .4rem .6rem; text-align: left; }
.xls__grid thead th { background: #f3f4f6; color: #9ca3af; font-weight: 600; }
.xls__grid td:first-child { background: #f3f4f6; color: #9ca3af; text-align: center; width: 2rem; }

.mgtable {
  width: 100%; max-width: none; margin: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.mgtable__toolbar {
  display: flex; flex-wrap: wrap; gap: .8rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mgtable__search {
  display: flex; align-items: center; gap: .5rem; flex: 1 1 240px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: .5rem .8rem; color: var(--muted);
}
.mgtable__search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: inherit;
}
.mgtable__filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.mgchip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: transparent;
  color: var(--muted); font: 600 .82rem/1 'Inter', sans-serif; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.mgchip:hover { color: #fff; }
.mgchip.is-active {
  background: rgba(46,196,182,.18);
  border-color: rgba(46,196,182,.5);
  color: #fff;
}
.mgdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mgtable__body { overflow: visible; }
.mgtable__grid { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mgtable__grid th {
  background: #0a1a22;
  text-align: left; padding: .75rem .9rem; color: var(--muted);
  font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.mgtable__grid td { padding: .75rem .9rem; border-top: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.mgtable__grid tbody tr:hover { background: rgba(255,255,255,.03); }
.mg-mva { color: var(--teal); font-weight: 700; }
.mg-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.06);
}
.mg-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mgtable__foot { padding: .7rem 1rem; color: var(--muted); font-size: .8rem; border-top: 1px solid rgba(255,255,255,.08); }
.mgtable__empty td { text-align: center; color: var(--muted); padding: 2rem; }
.mgsel {
  display: block; margin-top: .35rem; max-width: 150px;
  background: #0a1a22; color: #cbd5e1; border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px; padding: .28rem .4rem;
  font: 600 .72rem 'Inter', sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.mgsel:focus { outline: none; border-color: var(--accent); }
.mg-fuel-lbl { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mg-km { font-variant-numeric: tabular-nums; font-weight: 600; color: #cbd5e1; }
.mg-note { max-width: 16rem; color: var(--muted); font-size: .9rem; white-space: normal; }
.mg-note-empty { color: #475569; }
.mg-sort {
  display: inline-flex; align-items: center; gap: .2rem;
  background: none; border: 0; color: inherit; font: inherit;
  text-transform: inherit; letter-spacing: inherit; cursor: pointer; padding: 0;
}
.mg-sort:hover { color: #fff; }
.mg-sort__ic { font-size: 1rem; opacity: .55; }
.mg-sort[data-dir="1"] .mg-sort__ic,
.mg-sort[data-dir="-1"] .mg-sort__ic { opacity: 1; color: var(--accent); }

/* ============================================================
   Map sim — marcadores sobre el plano
   ============================================================ */
.map-sim {
  position: relative; margin: 1.75rem auto 0; max-width: 960px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.map-sim__img { width: 100%; display: block; }
.map-sim__layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

/* Unidad tipo mapa: centro del cajón vía left/top + GSAP xPercent/yPercent */
.spot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 5.35%;
  height: 12%;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 2px 1px;
  font: 800 clamp(8px, 1.05vw, 12px)/1.05 'Inter', sans-serif;
  color: #fff;
  text-align: center;
  letter-spacing: -.02em;
  background: var(--c);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 6px 14px rgba(0,0,0,.35);
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}
.spot::after {
  content: "";
  position: absolute;
  left: 16%; right: 16%; bottom: 8%;
  height: 2px; border-radius: 2px;
  background: rgba(255,255,255,.55);
}
.spot::before { content: none; }
.spot--avail  { --c: #22c55e; }
.spot--prep   { --c: #f59e0b; }
.spot--patio  { --c: #3b82f6; }
.spot--taller { --c: #ef4444; }
html:not(.js) .spot {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.map-sim__legend {
  position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: .5rem .9rem;
  background: rgba(4,16,22,.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: .5rem .7rem; border-radius: 10px; font-size: .72rem; color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.08); z-index: 2;
}
.map-sim__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--avail { background: #22c55e; } .dot--prep { background: #f59e0b; }
.dot--patio { background: #3b82f6; } .dot--taller { background: #ef4444; }
@media (max-width: 600px) {
  .spot { font-size: 6.5px; border-radius: 4px; height: 11.2%; width: 5.2%; }
  .spot::after { height: 2px; }
  .map-sim__legend { font-size: .65rem; }
}
.mod__text--center { text-align: center; max-width: 40rem; margin: 0 auto 0.5rem; }
.mod__text--center p { max-width: none; margin-inline: auto; }

/* ============================================================
   §4 Video — marco tipo ventana / glass
   ============================================================ */
.video-tour {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  background: var(--ink, #041016);
}
.video-stage { position: relative; }
.video-stage__glow {
  position: absolute; inset: 12% -4% -8%;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  filter: blur(28px);
  pointer-events: none; z-index: 0;
}
.video-stage__frame {
  position: relative; z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(6, 18, 24, .85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 30px 70px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.video-stage__bar {
  display: flex; align-items: center; gap: 7px;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}
.video-stage__bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.video-stage__bar span:nth-child(1) { background: #f87171; }
.video-stage__bar span:nth-child(2) { background: #fbbf24; }
.video-stage__bar span:nth-child(3) { background: #34d399; }
.video-stage__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232,241,244,.35);
}
.video-stage__player,
.vplayer__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #000;
  object-fit: contain;
}

/* Custom video player */
.vplayer {
  position: relative;
  background: #000;
  cursor: pointer;
}
.vplayer.is-playing { cursor: default; }
.vplayer.is-playing .vplayer__bigplay { opacity: 0; pointer-events: none; transform: scale(.85); }
.vplayer.is-fs {
  max-height: none;
}
.vplayer.is-fs .vplayer__video {
  max-height: none;
  height: 100%;
  aspect-ratio: auto;
}

.vplayer__bigplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78px; height: 78px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041016;
  box-shadow: 0 12px 40px rgba(46,196,182,.45), inset 0 1px 0 rgba(255,255,255,.35);
  cursor: pointer;
  z-index: 3;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.vplayer__bigplay .material-symbols-outlined {
  font-size: 2.4rem;
  margin-left: 3px;
  font-variation-settings: 'FILL' 1;
}
@media (hover: hover) {
  .vplayer__bigplay:hover { transform: scale(1.06); }
}

.vplayer__controls {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 4;
  display: flex; align-items: center; gap: .45rem;
  padding: .45rem .55rem;
  border-radius: 14px;
  background: rgba(4, 16, 22, .72);
  border: 1px solid rgba(137, 245, 231, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 30px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.vplayer.is-playing:not(:hover):not(:focus-within).is-idle .vplayer__controls {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.vplayer__btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: #e8f1f4;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.vplayer__btn .material-symbols-outlined { font-size: 1.35rem; }
@media (hover: hover) {
  .vplayer__btn:hover { background: rgba(255,255,255,.08); color: var(--teal); }
}
.vplayer__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.vplayer__time {
  flex: 0 0 auto;
  display: flex; gap: .25rem;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(232,241,244,.7);
  font-variant-numeric: tabular-nums;
  min-width: 5.6rem;
  justify-content: center;
}

.vplayer__scrub {
  position: relative;
  flex: 1 1 auto;
  height: 28px;
  display: grid;
  align-items: center;
  min-width: 0;
}
.vplayer__track {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
  pointer-events: none;
}
.vplayer__buffer {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: rgba(255,255,255,.22);
}
.vplayer__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(46,196,182,.45);
}
.vplayer__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

@media (max-width: 560px) {
  .vplayer__time { display: none; }
  .vplayer__bigplay { width: 64px; height: 64px; }
  .vplayer__controls { left: 8px; right: 8px; bottom: 8px; gap: .25rem; padding: .35rem .4rem; }
  .vplayer__btn { width: 34px; height: 34px; }
}
.video-tour__demo {
  text-align: center;
  color: var(--muted);
  margin-top: 1.4rem;
  font-size: .95rem;
}

/* ============================================================
   Pantallas — grid estático (sin pin / sin overlays)
   ============================================================ */
.screens {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  background: var(--ink, #041016);
}
.screens__intro { margin-bottom: 2rem; text-align: center; }
.screens__grid {
  display: grid;
  gap: 1.25rem;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}
@media (min-width: 700px) {
  .screens__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .screens__grid { grid-template-columns: repeat(3, 1fr); }
}
.screens__card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.screens__card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  background: var(--panel);
}
.screens__card figcaption {
  display: grid;
  gap: .2rem;
  padding: .9rem 1rem 1.05rem;
}
.screens__card strong {
  font-size: .98rem;
  font-weight: 700;
}
.screens__card span {
  color: var(--muted);
  font-size: .88rem;
}

.soon {
  display: inline-block;
  margin-left: .4rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(137,245,231,.35);
  vertical-align: middle;
}

/* ============================================================
   §5 Módulos
   ============================================================ */
.modules {
  position: relative;
  z-index: 2;
  padding: 1rem 0 2rem;
  background: var(--ink, #041016);
}
.mod { padding: 3.5rem 0; }
.mod:nth-child(even) { background: rgba(255,255,255,.02); }
.mod__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.mod__label {
  display: inline-block;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.mod__text h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .7rem;
}
.mod__text p { color: var(--muted); max-width: 38ch; }
.mod__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 20px 50px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mod__shot {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.mod__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.08);
  will-change: transform;
}
@media (min-width: 860px) {
  .mod__inner { grid-template-columns: 1fr 1.15fr; gap: 3rem; }
  .mod--rev .mod__inner { grid-template-columns: 1.15fr 1fr; }
  .mod--rev .mod__text { order: 2; }
  .mod--rev .mod__media { order: 1; }
}

/* ============================================================
   §6 Cómo trabajamos
   ============================================================ */
.how { padding: 5rem 0; }
.how__steps {
  display: grid;
  gap: 1.25rem;
  max-width: 960px;
  margin-inline: auto;
}
.how__steps li {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.how__n {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--teal);
  margin-bottom: .45rem;
}
.how__steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.how__steps p { color: var(--muted); font-size: .95rem; }
@media (min-width: 800px) {
  .how__steps { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

/* ============================================================
   §7 Trust
   ============================================================ */
.trust { padding: 2rem 0 4rem; }
.trust__inner { text-align: center; margin-top: 2.5rem; }
.trust__line { color: #cbd5e1; font-weight: 600; font-size: 1rem; }
.trust__note { color: var(--muted); font-size: .85rem; margin-top: .6rem; }
.proof__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center;
}
@keyframes statGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(46,196,182,0); }
  50% { text-shadow: 0 0 22px rgba(46,196,182,.35); }
}
.proof__num {
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900;
  animation: statGlow 3s ease-in-out infinite;
}
.proof__stats p { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
@media (max-width: 560px) {
  .proof__stats { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   §8 CTA + form
   ============================================================ */
.cta { padding: 5rem 0 4rem; }
.cta__inner { text-align: center; max-width: 720px; }
.cta__inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.cta__inner > p {
  color: var(--muted);
  margin: .8rem auto 0;
  max-width: 42ch;
}
.cta__soon { font-size: .88rem !important; margin-bottom: 1.75rem !important; }
.cta__soon em { color: var(--teal); font-style: normal; font-weight: 700; }

.cform { text-align: left; margin-top: 1.5rem; display: grid; gap: 1rem; }
.cform__row { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .cform__row { grid-template-columns: 1fr 1fr; }
}
.cform__field {
  display: grid; gap: .35rem;
  font-size: .85rem; color: var(--muted); font-weight: 600;
}
.cform__field input,
.cform__field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font: inherit;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cform__field textarea { min-height: 96px; resize: vertical; }
.cform .btn { width: 100%; margin-top: .25rem; }
.cform__status { min-height: 1.4em; font-size: .92rem; text-align: center; }
.cform__status.ok { color: var(--ok); }
.cform__status.err { color: var(--bad); }
.cform__alt { margin-top: 1.25rem; color: var(--muted); font-size: .92rem; }
.cform__alt a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   §9 Footer
   ============================================================ */
.foot { padding: 2.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.foot__inner {
  display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start;
}
.foot__logo { height: 26px; width: auto; opacity: .9; }
.foot__links {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  color: var(--muted); font-size: .9rem;
}
.foot__links a:hover { color: #fff; }
.foot__copy {
  width: min(100% - 2rem, var(--maxw));
  margin: 1.5rem auto 0;
  color: #5b7380;
  font-size: .8rem;
}
@media (min-width: 720px) {
  .foot__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient span { animation: none; }
  html { scroll-behavior: auto; }
  .js .gsap-fade,
  .js .reveal,
  .js .mod__text,
  .js .mod__media { opacity: 1; }
  .anywhere__media img,
  .mod__shot img,
  .story-scenes__media img { transform: none; }
  .wa__typing span { animation: none; }
  .spot::before, .proof__num { animation: none; }
  .spot { opacity: 1 !important; }
}
