/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #020b18;
  --blue-800: #050d1a;
  --blue-700: #071526;
  --blue-600: #0a1f38;
  --blue-500: #0d2a4a;
  --blue-400: #185FA5;
  --blue-300: #378ADD;
  --blue-200: #85B7EB;
  --blue-100: #B5D4F4;
  --blue-50:  #E6F1FB;
  --green: #1D9E75;
  --red: #E24B4A;
  --text-primary: #E6F1FB;
  --text-secondary: #85B7EB;
  --text-muted: #4a7ba7;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--blue-800);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--blue-400);
  color: var(--blue-50);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--blue-300); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.full { display: block; width: 100%; text-align: center; padding: 16px; font-size: 16px; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--blue-200);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 400;
  border: 1px solid var(--blue-500);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-100); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-500);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-50);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo span { color: var(--blue-300); }
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-200); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--blue-500);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--blue-400); border-color: var(--blue-400); color: var(--blue-50); }
.nav-cta {
  background: var(--blue-400);
  color: var(--blue-50);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-300); }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-300);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--blue-50);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 32px 72px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-600);
  border: 1px solid var(--blue-500);
  color: var(--blue-200);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-title {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--blue-50);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--blue-300);
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--blue-500);
}
.hstat strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: var(--blue-50);
  font-family: var(--font-mono);
}
.hstat span { font-size: 12px; color: var(--text-muted); }
.hstat-divider { width: 1px; height: 36px; background: var(--blue-500); }

/* Trading card visual */
.hero-visual { display: flex; justify-content: center; }
.trading-card {
  background: var(--blue-700);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }
.card-badge { font-size: 12px; padding: 3px 10px; border-radius: 20px; font-family: var(--font-mono); font-weight: 500; }
.card-badge.up { background: rgba(29,158,117,0.15); color: var(--green); }
.chart-area { height: 100px; margin-bottom: 20px; }
.chart-svg { width: 100%; height: 100%; }
.card-trades { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.trade-row { display: flex; justify-content: space-between; align-items: center; }
.trade-pair { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.trade-val { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.trade-val.up { color: var(--green); }
.trade-val.down { color: var(--red); }
.card-footer { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--blue-500); }
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.card-live { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

/* ===== FEATURES ===== */
.features {
  padding: 96px 0;
  background: var(--blue-900);
  border-top: 1px solid var(--blue-500);
  border-bottom: 1px solid var(--blue-500);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--blue-800);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feat-card:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.feat-icon {
  width: 44px; height: 44px;
  background: var(--blue-600);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-200);
  margin-bottom: 16px;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-card h3 { font-size: 15px; font-weight: 500; color: var(--blue-100); margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ===== HOW IT WORKS ===== */
.how { padding: 96px 0; }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.step { flex: 1; min-width: 220px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  color: var(--blue-500);
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 500; color: var(--blue-100); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.step-arrow { font-size: 24px; color: var(--blue-500); padding-top: 48px; }

/* ===== VIDEO ===== */
.video-section {
  padding: 96px 0;
  background: var(--blue-900);
  border-top: 1px solid var(--blue-500);
  border-bottom: 1px solid var(--blue-500);
}
.video-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--blue-500);
  aspect-ratio: 16/9;
}
.video-wrapper iframe { width: 100%; height: 100%; display: block; }
.video-placeholder {
  background: var(--blue-700);
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}
.video-placeholder svg { opacity: 0.4; }
.video-placeholder p { font-size: 15px; }
.video-placeholder small { font-size: 12px; font-family: var(--font-mono); opacity: 0.6; }

/* ===== PRICING ===== */
.pricing { padding: 96px 0; }
.price-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--blue-700);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-left {
  padding: 40px;
  border-right: 1px solid var(--blue-500);
}
.price-right { padding: 40px; }
.price-tag-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-300);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.price-display { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-currency { font-size: 28px; color: var(--blue-200); }
.price-amount { font-size: 72px; font-weight: 500; color: var(--blue-50); line-height: 1; font-family: var(--font-mono); }
.price-period { font-size: 14px; color: var(--text-muted); margin-left: 8px; }
.price-original { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.price-original s { color: var(--red); }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Coupon */
.coupon-box {
  background: var(--blue-600);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
}
.coupon-label { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.coupon-input-row { display: flex; gap: 8px; }
.coupon-input-row input {
  flex: 1;
  background: var(--blue-800);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--blue-50);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.coupon-input-row input:focus { border-color: var(--blue-400); }
.coupon-input-row input::placeholder { color: var(--text-muted); }
.coupon-input-row button {
  background: var(--blue-400);
  color: var(--blue-50);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.coupon-input-row button:hover { background: var(--blue-300); }
.coupon-msg { font-size: 13px; margin-top: 10px; min-height: 18px; font-family: var(--font-mono); }
.coupon-msg.success { color: var(--green); }
.coupon-msg.error { color: var(--red); }

.price-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.5; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.trust-badges span { font-size: 12px; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact { padding: 96px 0; background: var(--blue-900); border-top: 1px solid var(--blue-500); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.contact-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--blue-800);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { transform: translateY(-2px); }
.contact-card.whatsapp { color: var(--green); }
.contact-card.whatsapp:hover { border-color: var(--green); }
.contact-card.telegram { color: var(--blue-300); }
.contact-card.telegram:hover { border-color: var(--blue-300); }
.contact-icon { flex-shrink: 0; }
.contact-card h3 { font-size: 17px; font-weight: 500; color: var(--blue-100); margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--text-muted); }
.contact-card small { font-size: 11px; color: var(--blue-500); font-family: var(--font-mono); }

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--blue-500);
  background: var(--blue-900);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 16px; font-weight: 600; color: var(--blue-100); }
.footer-logo span { color: var(--blue-300); }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-200); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 36px; }
  .hero-visual { display: none; }
  .menu-toggle { display: block; }
  .nav-inner { position: relative; flex-wrap: wrap; gap: 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-800);
    border-bottom: 1px solid var(--blue-500);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 32px; font-size: 15px; }
  .price-box { grid-template-columns: 1fr; }
  .price-left { border-right: none; border-bottom: 1px solid var(--blue-500); }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .section-header h2 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr !important; }
  .gallery-content { padding: 0 12px; }

  /* Área táctil mínima de 44px */
  .lang-btn, .menu-toggle, .nav-cta, .nav-links a,
  .coupon-input-row button, .coupon-input-row input, .buy-btn,
  .gallery-nav, .gallery-close { min-height: 44px; }
}

/* ===== PRODUCTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.product-card {
  background: var(--blue-700);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.product-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--blue-800);
  overflow: hidden;
  cursor: pointer;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 24px;
  text-align: center;
}
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.product-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.product-card .price-display { margin-top: 4px; }
.product-card .price-amount { font-size: 56px; }
.product-card .price-features { margin-top: 0; }
.product-card .coupon-box { margin-bottom: 0; }

/* ===== GALERÍA ===== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 11, 24, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
}
.gallery-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 13, 26, 0.7);
  border: 1px solid var(--blue-500);
  color: var(--text-primary);
  font-size: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ===== MENÚ MÓVIL ===== */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue-500);
  color: var(--text-primary);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ===== FORMULARIOS (checkout) ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== PÁGINAS LEGALES ===== */
.legal-section {
  background: var(--blue-800);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.legal-section h2 {
  font-size: 17px;
  font-weight: 500;
  color: var(--blue-100);
  margin-bottom: 10px;
}
.legal-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Animación de pulso de transmisión en el gráfico espejo */
@keyframes pulse {
  0% { r: 6; opacity: 0.4; }
  50% { r: 14; opacity: 0.1; }
  100% { r: 6; opacity: 0.4; }
}
