/* Voy Landing — tokens alineados con src/theme/theme.ts */
:root {
  --primary: #14b8a6;
  --primary-dark: #0f766e;
  --primary-soft: #f0fdfa;
  --primary-softer: #ccfbf1;
  --accent: #0d9488;
  --accent-soft: #ecfefb;
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #e5e7eb;
  --danger: #ef4444;
  --women-only: #a855f7;
  --women-soft: #f3e8ff;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-soft: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-float: 0 10px 30px rgba(17, 24, 39, 0.1);
  --shadow-primary: 0 6px 14px rgba(20, 184, 166, 0.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a.btn {
  color: #fff;
  font-size: 0.95rem;
}

.nav-links a.btn-primary:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-pro {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fde68a;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--primary-softer) 0%, transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border);
}

.hero-card-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.trip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.trip-info {
  flex: 1;
  min-width: 0;
}

.trip-route {
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trip-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trip-price {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

.chip-primary {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.chip-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-women {
  background: var(--women-soft);
  color: var(--women-only);
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-primary);
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Pro band */
.pro-band {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #0f766e 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-float);
}

.pro-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.pro-band p {
  margin: 0;
  opacity: 0.85;
  max-width: 28rem;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 0.75rem;
}

.pro-price {
  text-align: right;
}

.pro-price strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
}

.pro-price span {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* CTA */
.cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.cta p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: #111827;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.store-badge:hover {
  opacity: 0.9;
  text-decoration: none;
}

.store-badge-soon {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1.5px dashed var(--border);
  cursor: default;
  pointer-events: none;
}

.store-badge-soon:hover {
  opacity: 1;
}

.store-badge small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  max-width: 22rem;
}

.footer h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer button.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.footer button.link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* Modals — estilo ModalAviso de la app */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: min(100%, 640px);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-float);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s;
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p,
.modal-body li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-body ul {
  padding-left: 1.25rem;
}

.modal-body .legal-meta {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

body.modal-open {
  overflow: hidden;
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.legal-page-header {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.legal-page-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
}

.legal-content h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-content .legal-meta {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.nav-links a.is-active {
  color: var(--primary-dark);
}

@media (max-width: 768px) {
  .legal-content {
    padding: 1.5rem 1.25rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pro-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pro-price {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
