:root {
  color-scheme: dark;
  --bg: #070c12;
  --surface: #0f1621;
  --card: #121b27;
  --border: #233242;
  --text: #e6edf3;
  --muted: #9aa9b8;
  --accent: #19c0d4;
  --accent-2: #6be2a8;
  --shadow: rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #0f1c2b, var(--bg));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 12, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.topbar-links a:not(.button) { transition: color 0.15s; }
.topbar-links a:not(.button):hover,
.topbar-links a.nav-active { color: var(--text); }

.topbar-links a.nav-active {
  color: var(--accent);
  font-weight: 500;
}

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  content: '';
  position: relative;
}

.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after  { position: absolute; top: 6px; }

/* ── Brand ── */
.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name { font-size: 16px; font-weight: 700; margin: 0; }
.brand-tag  { margin: 0; font-size: 12px; color: var(--muted); }

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid transparent;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
}

.button:hover { opacity: 0.88; transform: translateY(-1px); }

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021116;
}

.button.ghost { border-color: var(--border); color: var(--text); }
.button.ghost:hover { border-color: var(--muted); }
.button.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.button.small  { padding: 8px 14px; font-size: 13px; }
.button.large  { padding: 14px 28px; font-size: 15px; }

/* ── Typography ── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}

h3 { letter-spacing: -0.2px; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.micro { font-size: 12px; color: var(--muted); }

/* ── Hero ── */
.hero {
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow--cyan {
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(25, 192, 212, 0.08) 0%, transparent 70%);
  animation: glow-pulse 5s ease-in-out infinite;
}

.hero-glow--green {
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(107, 226, 168, 0.06) 0%, transparent 70%);
  animation: glow-pulse 5s ease-in-out infinite 2.5s;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; min-width: 0; }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ── Stats row ── */
.stats-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-value { font-size: 16px; font-weight: 700; color: var(--text); }

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider { width: 1px; height: 28px; background: var(--border); }

/* ── Phone mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-mockup {
  width: 210px;
  height: 420px;
  background: linear-gradient(160deg, #111e2e, #0c1520);
  border: 1.5px solid #2c4058;
  border-radius: 36px;
  padding: 14px 10px 10px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  animation: phone-float 4s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 6px;
  background: #1a2d3f;
  border-radius: 3px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #070c12;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 5%;
  display: block;
}

.phone-float-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 22, 33, 0.9);
  border: 1px solid rgba(25, 192, 212, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.phone-float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 6px var(--accent-2);
  flex-shrink: 0;
  animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Sections ── */
.section { padding: 60px 0; }
.section.alt { background: rgba(15, 22, 33, 0.6); }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 8px; }

/* ── Cómo funciona ── */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 22px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(25, 192, 212, 0.3);
  transform: translateY(-2px);
}

.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(25, 192, 212, 0.1);
  border: 1px solid rgba(25, 192, 212, 0.15);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card h3 { font-size: 15px; margin: 0 0 8px; }
.step-card p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

.step-arrow {
  padding: 0 12px;
  color: var(--border);
  flex-shrink: 0;
}

/* ── Feature cards ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(25, 192, 212, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(25, 192, 212, 0.1);
  border: 1px solid rgba(25, 192, 212, 0.15);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}

.card h3 { font-size: 15px; margin: 0 0 8px; }
.card p  { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── Cities ── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 600px;
}

.city-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.city-card:not(.upcoming):hover { border-color: rgba(107, 226, 168, 0.3); }

.city-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  flex-shrink: 0;
}

.city-dot.dim { background: var(--muted); box-shadow: none; }

.city-name { font-size: 14px; font-weight: 600; margin: 0; }
.city-prov { font-size: 12px; color: var(--muted); margin: 0; }

.city-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(154, 169, 184, 0.1);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.city-badge.active {
  background: rgba(107, 226, 168, 0.12);
  border-color: rgba(107, 226, 168, 0.2);
  color: var(--accent-2);
}

/* ── Screenshots ── */
.screenshots {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.screenshot-phone {
  width: 165px;
  height: 340px;
  background: linear-gradient(160deg, #111e2e, #0c1520);
  border: 1.5px solid #2c4058;
  border-radius: 30px;
  padding: 13px 9px 9px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.screenshot-phone:hover {
  transform: translateY(-5px);
  box-shadow:
    0 36px 72px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(25, 192, 212, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screenshot-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  background: #1a2d3f;
  border-radius: 2px;
}

.screenshot-screen {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  overflow: hidden;
  background: #070c12;
}

.screenshot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 5%;
  display: block;
}

/* ── CTA card ── */
.cta-card {
  background: linear-gradient(135deg, rgba(25, 192, 212, 0.1), rgba(107, 226, 168, 0.1));
  border: 1px solid rgba(25, 192, 212, 0.2);
  padding: 36px 32px;
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-card h2       { margin-bottom: 6px; }
.cta-card .cta-row { margin-bottom: 0; }

/* ── FAQ ── */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.faq details[open] { border-color: rgba(25, 192, 212, 0.25); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
}

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

.faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}

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

.faq details p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; }

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-links { display: grid; gap: 8px; font-size: 13px; color: var(--muted); align-content: start; }
.footer-links a:hover { color: var(--text); }

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021116;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(25, 192, 212, 0.35);
}

.back-to-top.visible     { opacity: 1; transform: translateY(0); }
.back-to-top:hover       { transform: translateY(-2px); }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.15s;
}

.slide-from-right.visible { opacity: 1; transform: translateX(0); }

/* ── Inner pages ── */
.page { min-height: 100vh; padding: 40px 0 60px; }
.page .hero { padding-top: 20px; }
.steps { padding-left: 18px; color: var(--muted); }
.steps li { margin-bottom: 10px; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input,
.field textarea {
  background: #0d1520;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.note { font-size: 12px; color: var(--muted); }
.link { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
  }

  .phone-mockup {
    width: 160px;
    height: 320px;
    border-radius: 28px;
  }

  .phone-screen { border-radius: 20px; }

  .steps-grid { gap: 12px; }
  .step-arrow { transform: rotate(90deg); padding: 4px 0; width: 100%; display: flex; justify-content: center; }
}

@media (max-width: 720px) {
  .topbar-content { flex-direction: row; align-items: center; }

  .nav-toggle-label {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    margin-top: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .nav-toggle:checked ~ .topbar-links { display: flex; }

  .hero { padding-top: 40px; }
  .cta-card { padding: 24px 20px; }
  .cities-grid { max-width: 100%; }

  /* Screenshot carousel on mobile */
  .screenshots {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .screenshots::-webkit-scrollbar { display: none; }

  .screenshot-phone {
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}


/* ── Legal pages ── */
.legal-container { max-width: 900px; }
.legal-card { padding: clamp(20px, 4vw, 40px); }
.legal-card h1 { margin-top: 0; }
.legal-card h2 { margin-top: 32px; padding-top: 8px; }
.legal-card h3 { margin-top: 22px; color: var(--text); }
.legal-card p,
.legal-card li { color: var(--muted); line-height: 1.75; font-size: 15px; }
.legal-card ul,
.legal-card ol { padding-left: 22px; margin: 0 0 16px; }
.legal-card li { margin-bottom: 8px; }
.legal-card blockquote { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(25, 192, 212, 0.08); border-radius: 12px; color: var(--muted); }
.legal-card hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.legal-card code { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; }
