/* Archivo: styles.css
   Integración: Estilos base + Look & Feel Moderno + Correcciones Responsive y UX */

:root {
  --bg: #040404; /* Negro más profundo */
  --card-bg: #111111;
  --gold: #FFC72C; /* Dorado vibrante */
  --gold-d: #D4AF37;
  --muted: #b4b4b4; /* Tono de gris suave */
  --text-color: #f0f0f0;
  --container: 1200px;
  --radius: 16px;
  --transition: 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
  --shadow-gold: 0 0 40px rgba(255, 199, 44, 0.1);
}

/* Base Global y Corrección de Desbordamiento (UX) */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  overflow-x: hidden; /* CORRECCIÓN CRÍTICA: Elimina el scroll horizontal no deseado */
  font-family: Poppins, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Reusable Components (UX) */
.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  /* Padding adaptativo para asegurar que el contenido no desborde en móvil */
  padding: 30px clamp(15px, 5vw, 40px); 
}

h1, h2, h3 {
  color: #fff;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

p {
  color: var(--muted);
}

.kicker {
  color: var(--gold);
  font-family: Teko, sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-subtitle {
  max-width: 70ch;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Efectos */
.card-glow {
    position: relative;
    z-index: 1;
}
.card-glow:before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 199, 44, 0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: -1;
}
.card-glow:hover:before {
    opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.9, 0.25, 1), transform 1.1s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: opacity, transform;
}
.reveal-up.visible {
  opacity: 1;
  transform: none;
}
/* Loader */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #020202 0%, #0a0a0a 100%);
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-gold {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 8px solid var(--gold);
  border-top-color: transparent;
  box-shadow: 0 0 30px rgba(255, 199, 44, 0.5);
  animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dynamic BG */
.background-effect {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background: radial-gradient(circle at 15% 15%, rgba(255, 199, 44, 0.02) 1%, transparent 12%),
              radial-gradient(circle at 85% 85%, rgba(255, 199, 44, 0.03) 1%, transparent 10%);
  filter: blur(20px);
  animation: bgShift 24s linear infinite alternate;
  opacity: 0.8;
}
@keyframes bgShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
  100% { transform: translate(0, 0); }
}

.confetti {
    position: fixed;
    width: 10px; height: 10px;
    z-index: 999;
    animation: fall 2s ease-in-out forwards;
    pointer-events: none;
}
@keyframes fall { 0% { opacity: 1; transform: translateY(-50vh) rotate(0deg); } 100% { opacity: 0; transform: translateY(100vh) rotate(720deg); } }

/* Header (UI: Sticky y Blur) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 4, 4, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 199, 44, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0; /* Padding vertical, el horizontal lo da .container */
}
.logo-principal {
  height: 52px;
  filter: drop-shadow(0 0 16px rgba(255, 199, 44, 0.2));
  transition: var(--transition);
}
.logo-principal:hover {
  transform: scale(1.08) rotate(-2deg);
}
.desktop-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}
.desktop-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: var(--transition);
  text-decoration: none;
}
.desktop-nav a:hover {
  color: #fff;
  background: rgba(255, 199, 44, 0.08);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(4, 4, 4, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav a {
  color: #eaeaea;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

/* Hero (UI: Gradiente y Texto premium) */
.hero-section {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 600px at 50% 10%, rgba(255, 199, 44, 0.05), transparent 70%);
    z-index: -1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  background: linear-gradient(90deg, #fff, var(--gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 199, 44, 0.4);
}
.subtitle {
  font-size: 1.25rem;
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(45deg, var(--gold), var(--gold-d));
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(255, 199, 44, 0.4);
  border-color: rgba(255, 199, 44, 0.15);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(255, 199, 44, 0.6);
  filter: brightness(1.1);
}
.btn-secondary {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 199, 44, 0.05);
}
.btn-lg {
  padding: 16px 24px;
  font-size: 1.15rem;
}
.btn-block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 18px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 199, 44, 0.06), transparent 18%);
  transition: background 0.12s linear;
  mix-blend-mode: overlay;
  opacity: 0.95;
}
.mockup-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  transform: translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1), box-shadow 0.6s;
  max-width: 600px;
  margin: 0 auto;
}
.mockup-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* Clients (Mejora de diseño y responsive) */
.clients-section {
    padding: 2rem 0 4rem;
}
.clients-section p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  opacity: 0.8;
}
.client-logos {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.client-card {
  position: relative;
  display: block;
  width: 180px;
  height: 100px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}
.client-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 199, 44, 0.4);
}
.client-img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  z-index: 2;
  transition: transform 0.28s;
}
.client-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  transition: opacity 0.35s;
}
.client-card:hover .client-overlay {
  opacity: 1;
}

/* Showcase & Global Payment (UI: Card Moderno) */
.showcase-row,
.global-payment-content {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 3rem;
  margin-bottom: 3rem;
  transition: box-shadow 0.3s ease;
}
.showcase-row:nth-child(even) {
  flex-direction: row-reverse;
}
.showcase-row:hover,
.global-payment-content:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), var(--shadow-gold);
}
.showcase-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.showcase-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.showcase-text {
  flex: 1.2;
  min-width: 260px;
}
.showcase-text h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.showcase-text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.showcase-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--muted);
}
.showcase-text li i {
  color: var(--gold);
  margin-top: 5px;
  font-size: 1.1em;
}

/* Global Payment specifics */
.global-payment-content .text-content h2 {
    font-size: 2.2rem;
}
.global-payment-content li .icon {
  font-size: 2.5rem;
}

/* Extra Features (UI: Efecto de Ícono) */
.extra-features-section {
  padding: 3rem 0;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 199, 44, 0.3);
}
.feature-card i {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(45deg, var(--gold), var(--gold-d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 199, 44, 0.5);
}

/* Demo */
.demo-section {
    padding: 3rem 0;
    text-align: center;
}
.demo-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}
.demo-card {
  flex: 1;
  min-width: 350px;
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.35);
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.demo-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 199, 44, 0.3);
}
.btn-demo-publico {
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
}

/* Pricing (UI: Destacado y Sombra Fuerte) */
.pricing-section {
    padding: 3rem 0;
}
.pricing-box {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(255, 215, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.pricing-box.highlighted {
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.03), rgba(0, 0, 0, 0.5));
  transform: scale(1.03); /* Ligeramente más grande */
  box-shadow: 0 20px 60px rgba(255, 199, 44, 0.3);
}
.pricing-box.highlighted:hover {
  transform: scale(1.06) translateY(-8px);
  box-shadow: 0 28px 70px rgba(255, 199, 44, 0.45);
}
.price {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 199, 44, 0.5);
}
.price-monthly {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 800;
  background: rgba(255, 199, 44, 0.08);
  padding: 10px 15px;
  border-radius: 14px;
}
.required-note {
  font-size: 0.95rem;
}

/* CTA */
.cta-section {
  padding: 5rem 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.btn-cta {
  font-size: 1.15rem;
  padding: 18px 30px;
}

/* Footer & Analytics Panel */
.main-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 199, 44, 0.1);
  margin-top: 4rem;
  position: relative;
  text-align: center;
}
.btn-analytics-toggle {
    /* ... (Estilos mantenidos) ... */
}
.analytics-panel {
    /* ... (Estilos mantenidos) ... */
}

/* Responsive (UX Móvil) */
@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr 600px;
    text-align: left;
  }
  .hero-left {
    text-align: left;
    margin: 0;
  }
  .subtitle {
    margin-left: 0;
  }
  .hero-ctas {
    justify-content: flex-start;
  }
  .hero-features {
    justify-content: flex-start;
  }
  .menu-toggle,
  .mobile-nav {
    display: none;
  }
}
@media (max-width: 920px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  .hero-title {
      font-size: 2.4rem;
  }
  .hero-section {
      padding-top: 4rem;
  }
  .hero-grid {
    gap: 30px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  
  /* UX: Forzar apilamiento de filas de contenido */
  .showcase-row,
  .global-payment-content {
      padding: 2rem;
      flex-direction: column !important; 
      text-align: center;
  }
  .showcase-row:nth-child(even) {
      flex-direction: column !important;
  }
  .showcase-image,
  .global-payment-content .image-content,
  .showcase-text,
  .global-payment-content .text-content {
      min-width: 100%;
      text-align: center;
  }
  .global-payment-content .text-content h2,
  .global-payment-content .text-content p.section-subtitle {
      text-align: center;
  }
  .showcase-text ul {
      text-align: left;
      margin-left: auto;
      margin-right: auto;
  }
  
  /* UX: Ajuste de Logos de Clientes */
  .client-logos {
      gap: 10px;
  }
  .client-card {
    width: 110px;
    height: 70px;
    border-radius: 12px;
    box-shadow: none;
  }
  .client-img {
    max-height: 50px;
  }
  .client-card .client-overlay {
    display: none;
  }

  /* UX: Ajuste de Tarjetas de Demo y Precio */
  .demo-card {
      min-width: auto;
  }
  .pricing-container {
    flex-direction: column;
  }
  .pricing-box.highlighted {
      transform: scale(1.0); /* Evitar que sea demasiado grande en móvil */
  }
  .pricing-box.highlighted:hover {
      transform: translateY(-8px);
  }
}