/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #E53E3E;
  --primary-dark: #C53030;
  --primary-glow: rgba(229, 62, 62, 0.15);
  --bg: #0A0A0A;
  --surface: #141414;
  --surface2: #1E1E1E;
  --surface3: #282828;
  --text: #FFFFFF;
  --text2: #A0A0A0;
  --text3: #666666;
  --border: #2A2A2A;
  --success: #48BB78;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text2);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

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

section { padding: 100px 0; }

/* ── Fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text);
}
.nav-logo-text span { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-outline-sm {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: transparent;
}
.btn-outline-sm:hover { border-color: var(--text2); color: var(--text); }

.btn-primary-sm {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary-sm:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

/* Fondo con gradiente radial */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(229,62,62,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid de puntos */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-glow);
  border: 1px solid rgba(229,62,62,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--primary); }

.hero-desc {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }

.btn-android {
  background: var(--primary);
  color: #fff;
}
.btn-ios {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-download svg { flex-shrink: 0; }

.btn-download-sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  display: block;
}
.btn-download-main {
  font-size: 15px;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}
.hero-stat-num span { color: var(--primary); }
.hero-stat-label { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-wrap {
  position: relative;
}

.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(229,62,62,0.15), transparent 70%);
  border-radius: 50%;
}

.phone {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 44px;
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  padding: 0 16px 16px;
  height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-header {
  text-align: center;
  padding: 12px 0 8px;
}
.phone-logo { font-size: 13px; font-weight: 900; letter-spacing: 3px; color: var(--primary); }
.phone-greeting { font-size: 11px; color: var(--text2); margin-top: 2px; }

.phone-card {
  background: var(--surface2);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px;
}

.phone-card-title { font-size: 10px; color: var(--text2); margin-bottom: 6px; }
.phone-card-val { font-size: 22px; font-weight: 900; color: var(--text); }
.phone-card-val span { font-size: 11px; font-weight: 400; color: var(--text2); }

.phone-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text2);
  margin-bottom: 4px;
}
.phone-bar-bg {
  height: 6px;
  background: var(--surface3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.phone-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
}

.phone-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone-mini-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}
.phone-mini-icon { font-size: 16px; margin-bottom: 4px; }
.phone-mini-val { font-size: 15px; font-weight: 800; }
.phone-mini-lbl { font-size: 9px; color: var(--text2); }

.phone-tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}
.phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: var(--text3);
}
.phone-tab.active { color: var(--primary); }
.phone-tab-icon { font-size: 18px; }

/* floating badges */
.phone-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: float 3s ease-in-out infinite;
}
.phone-badge:nth-child(2) { animation-delay: 1.5s; }

.phone-badge-left {
  left: -80px;
  top: 120px;
}
.phone-badge-right {
  right: -80px;
  bottom: 160px;
}

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

.badge-icon { font-size: 22px; }
.badge-text-top { font-size: 11px; font-weight: 700; }
.badge-text-bot { font-size: 10px; color: var(--text2); }

/* ══════════════════════════════════════
   FEATURES
══════════════════════════════════════ */
.features { text-align: center; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(229,62,62,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--primary-glow);
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-desc { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ══════════════════════════════════════
   PROGRAMAS
══════════════════════════════════════ */
.programs {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.program-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.4); }

.program-card:nth-child(1)::before { background: #4FC3F7; }
.program-card:nth-child(2)::before { background: #81C784; }
.program-card:nth-child(3)::before { background: #FFB74D; }
.program-card:nth-child(4)::before { background: #E53E3E; }
.program-card:nth-child(5)::before { background: #CE93D8; }

.program-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.6;
}
.program-icon { font-size: 28px; margin-bottom: 10px; }
.program-name { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.program-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.how { text-align: center; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--border), transparent);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ══════════════════════════════════════
   DOWNLOAD CTA
══════════════════════════════════════ */
.download {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid var(--border);
}

.download-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(229,62,62,0.1) 0%, transparent 70%);
}

.download-card-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
}
.download-card-sub {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 36px;
  position: relative;
}

.download-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 32px;
}

.btn-dl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
}
.btn-dl:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.btn-dl-android { background: var(--primary); color: #fff; }
.btn-dl-ios { background: var(--surface3); color: var(--text); border: 1px solid var(--border); }
.btn-dl-icon { font-size: 26px; }
.btn-dl-sub { font-size: 11px; opacity: 0.7; display: block; }
.btn-dl-main { font-size: 17px; display: block; line-height: 1; }

.download-note {
  font-size: 13px;
  color: var(--text3);
  position: relative;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text);
}
.footer-logo span { color: var(--primary); }

.footer-copy { font-size: 13px; color: var(--text3); }

/* ══════════════════════════════════════
   REGISTER PAGE
══════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229,62,62,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.auth-logo { font-size: 20px; font-weight: 900; letter-spacing: 4px; color: var(--primary); text-align: center; margin-bottom: 8px; }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { color: var(--text2); font-size: 14px; text-align: center; margin-bottom: 32px; }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  flex-shrink: 0;
}
.step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-line { width: 28px; height: 2px; background: var(--border); }

.auth-section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.auth-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-wrap { margin-bottom: 12px; }
.field-label { font-size: 11px; font-weight: 600; color: var(--text2); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 6px; display: block; }
.field-row {
  display: flex;
  align-items: center;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
}
.field-row span { font-size: 16px; margin-right: 8px; color: var(--text2); flex-shrink: 0; }
.field-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 12px 0;
  font-family: inherit;
}
.field-input::placeholder { color: var(--text3); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.gender-row { display: flex; gap: 8px; }
.gender-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface3);
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.gender-btn:hover, .gender-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.optional-note { font-size: 11px; color: var(--text3); font-style: italic; margin-top: 8px; }

.btn-full {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-full:hover { background: var(--primary-dark); transform: translateY(-1px); }

.auth-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text2); }
.auth-link a { color: var(--primary); font-weight: 700; }

.google-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.google-divider::before, .google-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.google-divider-text { font-size: 12px; color: var(--text3); white-space: nowrap; }

.btn-google {
  width: 100%;
  padding: 14px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-google:hover { background: var(--surface3); border-color: var(--text3); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
  .program-card:nth-child(4) { grid-column: 1; }
  .program-card:nth-child(5) { grid-column: 2; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .program-card:nth-child(4), .program-card:nth-child(5) { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps::before { display: none; }

  .download-card { padding: 40px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }

  .auth-card { padding: 32px 24px; }
  .phone-badge { display: none; }

  .nav-logo-text { display: none; }
}

@media (max-width: 480px) {
  .programs-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
