/* =========================================
   MAGIC STORE - CSS ESTILO "BENTO/SIDELOADLY"
   ========================================= */

*,
*::before,
*::after {
  box-sizing: border-box; /* Fundamental para evitar que padding/borders causen desbordamiento */
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #7c3aed;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Nuevos colores base Bento / Sideloadly Apple-esque */
  --bg-deep: #000000;
  --bg-card: #121214; /* Color gris oscuro de los contenedores */
  --bg-card-hover: #1c1c1e;
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-gold: #fbbf24;
  
  --text-primary: #f5f5f7; /* Color de texto nativo Apple */
  --text-secondary: #86868b;
  --text-muted: #86868b;
  
  --border: rgba(255, 255, 255, 0.08); /* Bordes más sutiles y limpios */
  --glass-border: rgba(255, 255, 255, 0.05);
  
  /* Sombras limpias, sin brillos excesivos */
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.6);
  
  /* Border radius grandes tipo Bento/Sideloadly */
  --radius-xl: 24px;
  --radius-md: 14px;
  --blur-strength: 24px;
}

html {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Corta de raíz cualquier desbordamiento horizontal */
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Optimización de hardware para gráficas bajas (Intel HD, etc) */
.gpu-accel {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  will-change: transform, opacity;
}

/* Íconos estilo nativo macOS */
.macos-icon {
  border-radius: 22.5%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.macos-icon-small {
  border-radius: 8px; /* Más moderno para tamaños pequeños */
}

/* =========================================
   NAVBAR Y NAVEGACIÓN
   ========================================= */
.main-nav {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100; 
  padding: 16px 20px; 
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px; /* Ancho ajustado para look compacto */
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

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

.nav-brand img {
  width: 32px; 
  height: 32px; 
}

.nav-brand span {
  font-weight: 700; 
  font-size: 1.1rem; 
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex; 
  gap: 20px;
  align-items: center;
}

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

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

/* Botones en navbar tipo pill */
.nav-highlight {
  color: var(--text-primary) !important; 
  background: rgba(255, 255, 255, 0.1); 
  padding: 6px 16px; 
  border-radius: 9999px; /* Pill shape */
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-highlight:hover { 
  background: rgba(255, 255, 255, 0.2); 
  transform: scale(1.02);
}

/* =========================================
   FONDO COSMIC MEJORADO (Z-Index Layers)
   ========================================= */

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -10;
  background-color: var(--bg-deep);
  overflow: hidden;
}

.galaxy-band {
  position: absolute;
  width: 150vw;
  height: 40vw;
  top: 50%;
  left: -25vw;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, rgba(30, 58, 138, 0.1) 40%, transparent 70%);
  transform: rotate(-25deg) translateY(-50%) translateZ(0);
  filter: blur(60px);
  z-index: 1;
  animation: nebulaFloat 25s ease-in-out infinite alternate;
}

.space-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  mix-blend-mode: screen;
}

.nebula-purple {
  width: 70vw;
  height: 70vw;
  bottom: -20%;
  left: -20%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 60%);
  animation: nebulaFloat 25s ease-in-out infinite alternate;
}

.nebula-cyan {
  width: 60vw;
  height: 60vw;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 60%);
  animation: nebulaFloat 20s ease-in-out infinite alternate-reverse;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 50px 160px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 130px 80px, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 180px 20px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 110px 140px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1.5px 1.5px at 10px 180px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 70px 100px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 150px 50px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 190px 180px, rgba(255,255,255,0.9), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 4s infinite linear;
  opacity: 0.5;
}

.stars::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image: 
    radial-gradient(1px 1px at 10px 10px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60px 50px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 120px 130px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 180px 90px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 220px 160px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 270px 30px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30px 200px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 90px 250px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 150px 210px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 280px 280px, rgba(255,255,255,0.7), transparent);
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: twinkle 6s infinite linear alternate;
  opacity: 0.4;
}

.space-planet {
  position: absolute;
  z-index: 3;
}

.moon-detailed {
  width: 100px; 
  height: 100px; 
  top: 20%; 
  right: 15%;
  background: 
    radial-gradient(circle at 75% 25%, rgba(80, 80, 90, 0.4) 2%, transparent 3%), 
    linear-gradient(145deg, #374151 0%, #111827 100%);
  box-shadow: 
    inset -10px -10px 20px rgba(0, 0, 0, 0.9), 
    0 0 40px rgba(255, 255, 255, 0.05);
  animation: moonRotate 120s linear infinite; 
  border-radius: 50%; 
  opacity: 0.6;
}

.moon-detailed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(ellipse 30% 20% at 35% 70%, rgba(55, 65, 81, 0.8) 0%, transparent 40%),
    radial-gradient(ellipse 25% 35% at 75% 55%, rgba(75, 85, 99, 0.7) 0%, transparent 35%),
    radial-gradient(ellipse 20% 25% at 15% 40%, rgba(55, 65, 81, 0.75) 0%, transparent 30%);
  opacity: 0.9;
  mix-blend-mode: multiply;
}

.moon-detailed::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 12%;
  width: 25%;
  height: 20%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.6;
}

.shooting-star {
  position: absolute;
  width: 100px; 
  height: 1px; 
  background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, transparent 100%); 
  top: 50%; 
  left: 50%; 
  transform: rotate(-45deg) translateZ(0); 
  animation: shoot 5s linear infinite; 
  opacity: 0; 
  z-index: 4;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 20px #38bdf8, 0 0 30px #38bdf8;
}

.shooting-star:nth-child(5) { top: 20%; left: 80%; animation-delay: 2s; animation-duration: 4s; }
.shooting-star:nth-child(6) { top: 10%; left: 30%; animation-delay: 4s; animation-duration: 6s; }
.shooting-star:nth-child(7) { top: 70%; left: 10%; animation-delay: 1.5s; animation-duration: 5.5s; }
.shooting-star:nth-child(8) { top: -10%; left: 60%; animation-delay: 3s; animation-duration: 4.5s; }
.shooting-star:nth-child(9) { top: 40%; left: 90%; animation-delay: 0.5s; animation-duration: 5s; }

@keyframes nebulaFloat {
  0% { transform: scale(1) translate(0, 0) translateZ(0); }
  100% { transform: scale(1.05) translate(2%, -2%) translateZ(0); }
}

@keyframes moonRotate {
  0% { transform: rotate(0deg) translateZ(0); }
  100% { transform: rotate(360deg) translateZ(0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}

@keyframes shoot {
  0% { transform: translateX(0) translateY(0) rotate(-45deg) translateZ(0); opacity: 1; }
  20% { opacity: 0; }
  100% { transform: translateX(-800px) translateY(800px) rotate(-45deg) translateZ(0); opacity: 0; }
}

/* =========================================
   LAYOUT Y SECCIONES
   ========================================= */
.container {
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-centered {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge-container {
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 3vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
  font-weight: 400;
}

.stats-centered {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.stat-box {
  text-align: center;
  padding: 0 20px;
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   NEWS TICKER
   ========================================= */
.news-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px; /* Pill shape */
  padding: 8px 12px;
  color: var(--text-primary);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.news-header {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-right: 16px;
  white-space: nowrap;
  z-index: 2;
}

.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@keyframes marquee {
  0% { transform: translate(0, 0) translateZ(0); }
  100% { transform: translate(-100%, 0) translateZ(0); }
}

/* =========================================
   ESTRUCTURA PRO-LAYOUT
   ========================================= */
.pro-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: start;
}

.content-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Features grid (BENTO UI) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

/* =========================================
   SCREENSHOTS Y LIGHTBOX
   ========================================= */
.screenshot-section {
  margin-top: 20px;
}

.screenshot-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.screenshot-container img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-container:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.screenshot-badge {
  position: absolute;
  bottom: 20px; 
  right: 20px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.zoom-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.screenshot-container:hover .zoom-indicator {
  opacity: 1;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.zoom-indicator::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-info {
  margin-top: 16px;
  text-align: center;
  color: white;
}

.lightbox-info h4 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lightbox-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.lightbox-counter {
  position: absolute;
  top: -40px;
  left: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =========================================
   STORE TABS (MULTIPLE PANELS)
   ========================================= */
.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.store-tab {
  flex: 1;
  min-width: 100px;
  padding: 12px 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-align: center;
}

.store-tab.active-activator {
  background: var(--primary);
  color: white;
}

.store-tab.active-invoice {
  background: var(--accent);
  color: white;
}

.store-tab.active-removal {
  background: #06b6d4;
  color: white;
}

.store-tab:hover:not(.active-activator):not(.active-invoice):not(.active-removal) {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.tool-panel {
  animation: fadeInUp 0.4s ease-out;
}

/* =========================================
   COLUMNA DE FORMULARIO - OPTIMIZADO PARA MÓVILES
   ========================================= */
.form-col {
  position: sticky;
  top: 100px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); 
  padding: 32px; 
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; 
}

.form-header-pro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
  gap: 12px;
}

.logo-img {
  width: 70px; 
  height: 70px;
  object-fit: cover;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: clamp(2rem, 8vw, 2.5rem); 
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.price-tag .currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-item i {
  color: var(--text-primary);
}

/* =========================================
   FORMULARIOS Y INPUTS COMPACTOS
   ========================================= */
.form-group {
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px; 
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); 
  padding: 12px 16px; 
  color: var(--text-primary);
  font-size: 0.95rem; 
  transition: all 0.2s;
  box-sizing: border-box; 
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.alert {
  padding: 14px 16px; 
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.alert-warning {
  color: #fbbf24;
}

.alert-danger {
  color: #f87171;
}

/* Payment tabs compactos */
.payment-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.payment-option {
  padding: 10px; 
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-option.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.payment-option i { font-size: 1.1rem; }
.paypal-icon { color: inherit; }
.remitly-icon { color: inherit; }

.remitly-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
}

/* Botón principal */
.btn-primary {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg-deep);
  border: none;
  padding: 14px 24px; 
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary:hover:not(:disabled) {
  background: #ffffff;
  transform: scale(1.02);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges / Downloads */
.badge-container {
  display: flex;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.pro-badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 12px;
}
.pro-badge:hover {
  background: rgba(255,255,255,0.08);
}
.badge-content {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.badge-content small {
  color: var(--text-secondary);
}
.badge-content span {
  font-weight: 500;
}

/* =========================================
   SECCIONES DE INFO Y SEO
   ========================================= */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.info-header {
  padding: 16px 20px; 
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.info-header:hover {
  background: rgba(255,255,255,0.05);
}

.info-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.info-content {
  padding: 0 20px 20px;
  display: none;
}

.info-content.visible {
  display: block;
}

/* =========================================
   VISTA DE ÉXITO Y SOPORTE
   ========================================= */
.post-payment-view {
  text-align: center;
  padding: 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.post-payment-view .fa-circle-check {
  font-size: 4rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.post-payment-view h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.order-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.order-box small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 8px;
}

#display-order-id {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all; 
}

.btn-whatsapp {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-upload {
  cursor: pointer;
  color: #3b82f6;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-upload i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.file-name-display {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =========================================
   MODAL POPUP
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 480px;
  width: 100%;
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.modal-overlay.active .modal-popup {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.modal-close {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-body strong { color: var(--text-primary); font-weight: 600; }
.modal-body em { font-style: italic; }

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
}

.btn-modal {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-modal-primary {
  background: var(--text-primary);
  color: var(--bg-deep);
  text-decoration: none;
}

.btn-modal-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  z-index: 1001;
  transition: transform 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.05);
}

/* =========================================
   UTILIDADES Y ANIMACIONES DE ENTRADA
   ========================================= */
.hidden { display: none !important; }

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .pro-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-col {
    position: relative;
    top: 0;
    order: -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 16px; }
  .lightbox-img { max-width: 95vw; max-height: 70vh; }
  
  .store-tab { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2rem, 8vw, 2.5rem); }
  
  .screenshot-grid { grid-template-columns: 1fr !important; }
  
  .stats-centered {
    flex-direction: column;
    gap: 20px;
  }
  
  .features-grid { grid-template-columns: 1fr; }
  
  .trust-badges {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .modal-popup {
    border-radius: 16px;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .nav-links {
    display: none; 
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   NUEVAS CLASES PARA EL SHOWCASE UI & LAUNCHPAD
   ========================================= */

h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }

.gradient-text {
  color: var(--text-primary); 
}

.text-purple { color: var(--text-primary); }
.text-cyan { color: var(--text-primary); }

.border-purple { border-color: var(--border) !important; }
.border-cyan { border-color: var(--border) !important; }

.glow-purple { box-shadow: none; }
.glow-cyan { box-shadow: none; }

.brand-text { font-weight: 700; font-size: 1.2rem; color: var(--text-primary); letter-spacing: -0.01em; }

.store-layout { display: flex; flex-direction: column; align-items: center; max-width: 1000px; margin: 0 auto; gap: 40px; box-sizing: border-box; }

/* LAUNCHPAD TABS */
.launchpad-wrapper { width: 100%; max-width: 800px; margin: 0 auto; box-sizing: border-box; }
.launchpad-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 6vw, 60px); 
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.launchpad-tab {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0.4;
}
.launchpad-tab.active-tab {
  opacity: 1;
}
.launchpad-tab:hover {
  opacity: 1;
}
.launchpad-icon {
  width: clamp(60px, 10vw, 80px);
  height: clamp(60px, 10vw, 80px);
  border-radius: 20%; 
  object-fit: cover;
}
.launchpad-tab span {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.product-showcase { width: 100%; max-width: 100%; animation: fadeInUp 0.4s ease-out; box-sizing: border-box; }

/* Product Hero (Bento centralizado) */
.product-hero {
  background: transparent; border: none; padding: clamp(20px, 5vw, 40px) 0;
  text-align: center; margin-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box;
}

/* =========================================
   CORRECCIÓN PARA MENÚS DESPLEGABLES (SELECT)
   ========================================= */

select.form-control {
  appearance: none; /* Quita el estilo blanco por defecto de Windows/Mac */
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Agregamos una flechita personalizada que combine con el tema oscuro */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px; /* Evita que el texto pise la flecha */
}

/* Forzamos el fondo oscuro y texto claro en la lista de opciones */
select.form-control option,
select option {
  background-color: #121214; /* Color oscuro sólido igual al de la tarjeta */
  color: #f5f5f7; /* Texto blanco/plata */
  padding: 12px;
  font-size: 0.95rem;
}

/* Efecto focus mejorado para el select */
select.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.06);
}

.product-logo { display: none; } 
.product-title { font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 700; color: var(--text-primary); margin-bottom: 24px; letter-spacing: -0.03em; }

/* Product Info Section */
.product-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 40px;
  text-align: left;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}
.info-title { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.product-info-section .lead { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.product-info-section p { color: var(--text-secondary); line-height: 1.6; }
.info-alert { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius-md); margin-top: 20px; font-size: 0.9rem; }

.price-tag-large { margin-bottom: 32px; display: flex; flex-direction: column; align-items: center; padding: 0 10px; width: 100%; box-sizing: border-box; }
.price-tag-large .amount {
  font-size: 3rem; font-weight: 700; color: var(--text-primary); line-height: 1;
}
.price-tag-large .currency { font-size: 1.2rem; color: var(--text-secondary); font-weight: 500; margin-left: 4px; }
.price-tag-large .price-note { color: var(--text-secondary); font-size: 0.9rem; margin-top: 8px; text-align: center; }

.btn-purchase {
  width: 100%;
  max-width: fit-content;
  background: var(--text-primary);
  color: var(--bg-deep);
  border: none;
  padding: 14px 24px; 
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  margin: 0 auto;
}

.action-glow-blue, .action-glow-purple, .action-glow-cyan {
  background: var(--text-primary);
  box-shadow: none;
}
.btn-purchase:hover { transform: scale(1.02); background: #ffffff; }

.showcase-gallery { margin-bottom: 60px; width: 100%; box-sizing: border-box; }
.gallery-title { font-size: 1.4rem; font-weight: 600; color: var(--text-primary); margin-bottom: 24px; text-align: center; }

.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; box-sizing: border-box; }
.screenshot-grid.auto-fit { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.hidden-form-wrapper { display: none; width: 100%; max-width: 600px; margin: 0 auto 40px; animation: fadeInUp 0.4s ease; box-sizing: border-box; }
.form-title { font-size: 1.4rem; font-weight: 600; color: var(--text-primary); margin-bottom: 24px; text-align: center; }

.trust-badges.horizontal { flex-direction: row; flex-wrap: wrap; border: none; padding: 0; margin-bottom: 32px; gap: 20px; justify-content: center; width: 100%; }

.win-badge { background: rgba(0, 0, 0, 0.6); }
.mac-badge { background: rgba(0, 0, 0, 0.6); }