/* ============================================================
   Team Matcher — Landing
   Paleta:
   --navy   azul marino profundo (estadio)
   --green  verde oscuro (escudo)
   --lime   verde lima (acento)
   --gold   dorado (detalle)
   --cream  texto claro
   ============================================================ */

:root {
  --soon-label: "Próximamente";
  --navy: #0d1b2e;
  --navy-2: #12233b;
  --green: #14351f;
  --lime: #8bc34a;
  --lime-strong: #7cc242;
  --gold: #d4af5a;
  --cream: #eef2ea;
  --muted: #a9b4c0;
  --border: rgba(255, 255, 255, 0.08);

  --maxw: 1120px;
  --radius: 14px;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

html[lang="en"] { --soon-label: "Coming soon"; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 46, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: auto; }
.brand-name { font-weight: 700; letter-spacing: 0.3px; font-size: 1.05rem; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.nav a:hover { color: var(--cream); }

.nav-cta {
  color: var(--navy) !important;
  background: var(--lime);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--lime-strong); }

/* ---------- Botón de idioma ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { border-color: rgba(255, 255, 255, 0.25); color: var(--cream); }
.lang-toggle .lang-sep { color: var(--border); }
.lang-toggle .lang-opt { transition: color 0.2s ease; }
.lang-toggle .lang-opt.is-active { color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.30;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(19, 53, 31, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 27, 46, 0.55) 0%, rgba(13, 27, 46, 0.9) 75%, var(--navy) 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.badge-beta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 90, 0.4);
  background: rgba(212, 175, 90, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.hero-title .accent { color: var(--lime); }

.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--lime); font-weight: 700; }

.hero-actions { margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badges--center { justify-content: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 12px;
}
.gplay-badge {
  background: #101010;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.gplay-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); }

.store-badge--soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  cursor: default;
  position: relative;
}
.store-badge--soon::after {
  content: "Próximamente";
  content: var(--soon-label, "Próximamente");
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
}

.store-icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-text small { font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: #cfcfcf; }
.store-badge--soon .store-text small { color: var(--muted); }
.store-text strong { font-size: 1.25rem; font-weight: 600; }

.inline-link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--lime-strong); }

.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;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--navy-2); }

.eyebrow {
  color: var(--lime);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.4px;
  text-wrap: balance;
  margin-bottom: 44px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: rgba(139, 195, 74, 0.45); transform: translateY(-3px); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--lime), var(--lime-strong));
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--lime);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--cream); }
.feature p { color: var(--muted); }

/* ---------- Capturas / teléfonos ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.phone {
  margin: 0;
  text-align: center;
}
.phone img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.phone figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  text-wrap: balance;
}

/* ---------- Lista de espera ---------- */
.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.waitlist-copy .section-title { margin-bottom: 16px; }
.waitlist-sub { color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }

.waitlist-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.waitlist-row { display: flex; gap: 12px; }
.waitlist-row input {
  flex: 1;
  min-width: 0;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--cream);
  font-size: 1rem;
  font-family: inherit;
}
.waitlist-row input::placeholder { color: #6f7d8c; }
.waitlist-row input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.btn-primary {
  background: var(--lime);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--lime-strong); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.waitlist-msg { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.waitlist-msg.is-success { color: var(--lime); }
.waitlist-msg.is-error { color: #ff8a8a; }
.waitlist-fine { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(19, 53, 31, 0.65) 0%, transparent 60%),
    var(--navy);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-logo { width: 96px; margin-bottom: 20px; }
.cta-sub { color: var(--muted); max-width: 520px; margin: 0 auto 30px; font-size: 1.1rem; }
.cta .hero-note { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--navy);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-logo { width: 30px; }
.footer-tag { color: var(--lime); font-size: 0.95rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .waitlist-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 560px; padding: 60px 0; }
  .section { padding: 64px 0; }
  .shots { grid-template-columns: 1fr 1fr; gap: 16px; }
  .waitlist-row { flex-direction: column; }
  .btn-primary { padding: 14px 24px; }
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badges--center { align-items: center; }
}
