/* ============================================
   Dominicana AI — Landing Page
   Estilo: Minimalista fintech, oscuro + dorado
   ============================================ */

/* --- Variables CSS --- */
:root {
  --bg-dark: #0a0a0a;
  --gold: #d4af37;
  --gold-light: #e8c84a;
  --orange: #ff6b35;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-text: #888888;
  --gradient-btn: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  --gradient-btn-hover: linear-gradient(135deg, #e8c84a 0%, #ff7f50 100%);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utilidades --- */
.gold { color: var(--gold); }

.section-light {
  background: var(--white);
  color: #1a1a1a;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-title-dark {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.btn-center {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   1. Navegación
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-logo .gold {
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

/* Botón en nav */
.btn-nav {
  background: var(--gradient-btn);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-nav:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   2. Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 20px 80px;
  background: radial-gradient(ellipse at 50% 30%, #1a1a1a 0%, var(--bg-dark) 70%);
}

/* Grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Glow */
.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 0.8s ease;
}

.hero-flag {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-text);
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
  animation: slideUp 0.8s ease 0.1s both;
}

.hero-counter-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray-text);
  margin-bottom: 1.2rem;
  animation: slideUp 0.8s ease 0.2s both;
}

.counter-highlight {
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease 0.3s both;
}

/* Botón Hero */
.btn-hero {
  display: inline-block;
  background: var(--gradient-btn);
  color: var(--white);
  padding: 18px 40px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  animation: pulse 2s infinite, slideUp 0.8s ease 0.4s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 35px rgba(212, 175, 55, 0.5);
}

/* ============================================
   Botones generales
   ============================================ */
.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

/* ============================================
   3. Características (sección blanca)
   ============================================ */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ============================================
   4. Datos / Stats (sección oscura)
   ============================================ */
.stats {
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
}

.stat-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-text);
  margin-top: 0.5rem;
}

/* ============================================
   5. Requisitos (sección blanca)
   ============================================ */
.requirements {
  padding: 80px 0;
}

.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.req-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.req-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.req-card:hover {
  box-shadow: var(--shadow-card);
}

.req-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.req-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}

.req-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.highlight-box {
  background: #f9f9f9;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 28px;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

/* ============================================
   6. Bono de registro
   ============================================ */
.bonus {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(160deg, #0d0d0d 0%, #1a1a0a 40%, #0a0a0a 100%);
  overflow: hidden;
}

.bonus-shine {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.bonus-content {
  position: relative;
  z-index: 2;
}

.bonus-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.bonus-eyebrow {
  font-size: 1.1rem;
  color: var(--gray-text);
  margin-bottom: 0.3rem;
}

.bonus-amount {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

.bonus-sub {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.bonus-note {
  font-size: 0.95rem;
  color: var(--gray-text);
  max-width: 450px;
  margin: 0 auto 0.8rem;
}

.bonus-urgency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2rem;
}

.btn-bonus {
  display: inline-block;
  background: var(--gradient-btn);
  color: var(--white);
  padding: 22px 50px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  animation: pulse 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-bonus:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 45px rgba(212, 175, 55, 0.55);
}

/* ============================================
   7. FAQ
   ============================================ */
.faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e8e8e8;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--orange);
}

.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.35s ease;
}

.faq-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ============================================
   8. Footer
   ============================================ */
.footer {
  padding: 60px 0 100px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-text);
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-btn {
  margin-top: 8px;
  font-size: 0.95rem;
  padding: 14px 30px;
}

/* ============================================
   9. Botón flotante (móvil)
   ============================================ */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--gradient-btn);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.45);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 35px rgba(212, 175, 55, 0.6);
}

/* ============================================
   10. Popup de salida
   ============================================ */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.exit-popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gray-text);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.exit-popup-close:hover {
  color: var(--white);
}

.exit-popup-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.exit-popup h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.exit-popup p {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ============================================
   ANIMACIONES (Keyframes)
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

/* ============================================
   RESPONSIVE — Mobile First
   ============================================ */

/* --- Móvil pequeño: 320-767px (default) --- */
/* Todo el CSS base es mobile-first, no requiere media query extra */

/* Móvil: menú hamburguesa */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 100px 32px 40px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  /* Features: 1 columna */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Stats: 1 columna */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Hero */
  .hero-tags {
    flex-direction: column;
    gap: 4px;
  }
}

/* --- Tablet: 768px - 1023px --- */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Escritorio: 1024px+ --- */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card:last-child {
    grid-column: span 1;
    max-width: none;
    justify-self: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .floating-btn {
    display: none; /* Oculto en escritorio */
  }
}

/* Ocultar floating btn cuando no es móvil */
@media (hover: hover) and (pointer: fine) {
  .floating-btn {
    display: none;
  }
}

/* Mostrar en touch devices (móvil/tablet) */
@media (hover: none) and (pointer: coarse) {
  .floating-btn {
    display: inline-block;
  }
}
