:root {
  --mint: #00E5A0;
  --dark: #060D1A;
  --darker: #03080F;
  --card: #0C1829;
  --border: rgba(0, 229, 160, 0.15);
  --text-muted: #6B7E99;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: #D4E4F7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: 'Syne', sans-serif;
}

/* ——— GRID BACKGROUND ——— */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ——— GLOW ——— */
.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(6, 13, 26, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--mint);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--mint);
}

.btn-nav {
  background: var(--mint);
  color: var(--dark);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-nav:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #D4E4F7;
  border-radius: 2px;
  transition: 0.3s;
}

/* ——— HERO ——— */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--mint);
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--mint);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--mint);
  color: var(--dark);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 160, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #D4E4F7;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(212, 228, 247, 0.15);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  border-color: rgba(0, 229, 160, 0.4);
  background: rgba(0, 229, 160, 0.05);
  transform: translateY(-2px);
}

/* ——— HERO MOCKUP ——— */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.stat-value.green {
  color: var(--mint);
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.route-name {
  font-size: 0.82rem;
  font-weight: 500;
}

.route-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.rb-green {
  background: rgba(0, 229, 160, 0.15);
  color: var(--mint);
}

.rb-yellow {
  background: rgba(255, 196, 0, 0.15);
  color: #FFC400;
}

.rb-blue {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
}

.floating-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
  z-index: 20;
}

.floating-card.top-right {
  top: -5px;
  right: -5px;
  min-width: 150px;
}

.floating-card.bottom-left {
  bottom: -5px;
  left: -5px;
  min-width: 160px;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.fc-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fc-value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--mint);
}

.fc-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ——— SECTION COMMONS ——— */
section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--mint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ——— FEATURES ——— */
#funciones {
  background: var(--darker);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: border-color 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 229, 160, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 229, 160, 0.35);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 229, 160, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ——— APPS ——— */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.app-card:hover {
  border-color: rgba(0, 229, 160, 0.35);
}

.app-card .app-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tag-admin {
  background: rgba(0, 229, 160, 0.12);
  color: var(--mint);
}

.tag-cobrador {
  background: rgba(96, 165, 250, 0.12);
  color: #60A5FA;
}

.app-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.app-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #A8BDD4;
}

.feature-list li::before {
  content: '✓';
  font-size: 0.75rem;
  color: var(--mint);
  background: rgba(0, 229, 160, 0.12);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ——— REGISTRO ——— */
#demo {
  background: var(--darker);
}

.register-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 56px;
}

.register-left h2 {
  margin-bottom: 16px;
}

.register-left p {
  margin-bottom: 32px;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 229, 160, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.trust-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ——— FORM ——— */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #A8BDD4;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 228, 247, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: rgba(0, 229, 160, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  background: var(--mint);
  color: var(--dark);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 229, 160, 0.3);
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
}

/* error / success */
.field-error {
  font-size: 0.75rem;
  color: #FF6B6B;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-group input.error {
  border-color: #FF6B6B;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 24px;
}

.success-msg.visible {
  display: block;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.success-msg h3 {
  color: var(--mint);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.success-msg p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ——— WHATSAPP CTA ——— */
.wa-section {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08) 0%, rgba(6, 13, 26, 0) 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.wa-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.wa-inner h2 {
  margin-bottom: 14px;
}

.wa-inner p {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-wa:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35);
}

.wa-icon {
  font-size: 1.4rem;
}

/* ——— FOOTER ——— */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--mint);
}

/* ——— FADE IN ANIMATION ——— */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 70px 20px;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .register-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hero adjustments for mobile overflow */
  .hero-content {
    padding: 50px 16px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.3px;
  }

  .hero p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .badge {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}

/* Extra small devices (phones, less than 500px) */
@media (max-width: 500px) {
  .hero-content {
    padding: 20px 5px;
    gap: 12px;
  }

  .hero h1 {
    /* font-size: clamp(1.6rem, 3vw, 2.2rem); */
    font-size: 1.20rem;
    letter-spacing: -0.1px;
  }

  .hero p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .hero-cta a {
    padding: 12px 15px;
    font-size: 0.70rem;
  }

  .badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(6, 13, 26, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #D4E4F7;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a:last-child {
  border: none;
}