/* Archivo: styles.css
   Integración: estilos base + client-cards llamativas + analytics panel + responsive */

:root {
  --bg: #0a0a0a;
  --gold: #ffd700;
  --gold-d: #d4af37;
  --muted: #cfcfcf;
  --container: 1100px;
  --radius: 12px;
  --transition: 0.36s cubic-bezier(0.2, 0.9, 0.25, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, #060606 0%, #0a0a0a 100%);
  color: #eaeaea;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Reusable Components */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

h1,
h2,
h3 {
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

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

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

.section-subtitle {
  max-width: 60ch;
  margin: 0 auto 3rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.96));
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.45s ease;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-gold {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 6px solid var(--gold);
  border-top-color: transparent;
  box-shadow: 0 0 26px rgba(255, 215, 0, 0.28);
  animation: spin 1.05s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dynamic BG */
.dynamic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(1000px 480px at 20% 20%, rgba(255, 215, 0, 0.03), transparent 6%),
    radial-gradient(800px 380px at 90% 80%, rgba(255, 215, 0, 0.02), transparent 8%);
  filter: blur(18px);
  animation: bgShift 18s linear infinite;
  opacity: 1;
}
@keyframes bgShift {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.4));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.06);
  margin-bottom: 12px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-principal {
  height: 48px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.14));
  transition: transform 0.28s;
}
.logo-principal:hover {
  transform: scale(1.05);
}
.desktop-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.desktop-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.desktop-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(10, 10, 10, 0.98);
  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;
}
.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero-section {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  text-align: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-left {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}
.hero-title {
  font-size: 2.4rem;
  margin: 0 0 12px;
}
.subtitle {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 1.5rem;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  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: 0.95rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}
.btn-primary {
  background: linear-gradient(90deg, var(--gold), var(--gold-d));
  color: #111;
  box-shadow: 0 6px 30px rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.08);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255, 215, 0, 0.2);
}
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-lg {
  padding: 14px 20px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

/* hero-right */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  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, 215, 0, 0.06), transparent 18%);
  transition: background 0.12s linear;
  mix-blend-mode: overlay;
  opacity: 0.95;
}
.mockup-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 2px 18px rgba(255, 215, 0, 0.06);
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1), box-shadow 0.45s;
}
.mockup-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.mockup-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1;
}

/* Clients */
.clients-section p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}
.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: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #0f0f0f;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s ease, box-shadow 0.28s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.client-card .client-border {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06), rgba(212, 175, 55, 0.06));
  pointer-events: none;
  mix-blend-mode: overlay;
}
.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.6));
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  transition: opacity 0.28s;
}
.client-name {
  font-weight: 800;
  color: var(--gold);
}
.client-cta {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.client-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.client-card:hover .client-overlay {
  opacity: 1;
}

/* Showcase */
.showcase-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  background: #121212;
  border-radius: 12px;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 2rem;
}
.showcase-row:nth-child(even) {
  flex-direction: row-reverse;
}
.showcase-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.showcase-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.showcase-text {
  flex: 1.2;
  min-width: 260px;
}
.showcase-text h3 {
  margin-top: 0;
}
.showcase-text ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.showcase-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
}
.showcase-text li i {
  color: var(--gold);
  margin-top: 4px;
}

/* Global Payment */
.global-payment-section {
  padding: 2rem 0;
  text-align: center;
}
.global-payment-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  background: #121212;
  border-radius: 12px;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.35);
}
.global-payment-content .image-content {
  flex: 1;
  min-width: 300px;
}
.global-payment-content .image-content img {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.global-payment-content .text-content {
  flex: 1.2;
  min-width: 260px;
  text-align: left;
}
.global-payment-content .text-content h2,
.global-payment-content .text-content p.section-subtitle {
  text-align: left;
}
.global-payment-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.global-payment-content li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}
.global-payment-content li .icon {
  font-size: 2rem;
  color: var(--gold);
}
.global-payment-content li strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

/* Extra Features */
.extra-features-section {
  padding: 2rem 0;
  text-align: center;
}
.extra-features-section h2 {
  margin-bottom: 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #121212;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.feature-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}
.feature-card p {
  color: var(--muted);
}

/* Demo */
.demo-section {
  padding: 2rem 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: 300px;
  background: #121212;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.35);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.demo-card h3 {
  margin-top: 0;
}
.demo-card .credentials {
  margin: 0.5rem 0;
  color: var(--muted);
}
.btn-demo-publico {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.3s ease;
  margin-top: 1rem;
}
.btn-demo-publico:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Pricing */
.pricing-section {
  padding: 2rem 0;
  text-align: center;
}
.pricing-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.pricing-box {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 215, 0, 0.01));
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.04);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.pricing-box.highlighted {
  border: 2px solid var(--gold);
  transform: scale(1.05);
  box-shadow: 0 18px 56px rgba(255, 215, 0, 0.1);
}
.pricing-box.highlighted:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 24px 64px rgba(255, 215, 0, 0.15);
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  background: var(--gold);
  color: #111;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 10px;
}
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}
.price {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.price-term {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.price-monthly {
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 800;
  background: rgba(255, 215, 0, 0.04);
  padding: 8px 12px;
  border-radius: 12px;
  margin-top: 10px;
}
.required-note {
  background: rgba(255, 215, 0, 0.05);
  padding: 15px;
  border-radius: 10px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: left;
}
.pricing-box ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}
.pricing-box li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}
.pricing-box li i {
  color: var(--gold);
}

/* CTA */
.cta-section {
  padding: 2rem 0;
  text-align: center;
}
.cta-section h2 {
  margin-bottom: 1rem;
}
.cta-section p {
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.btn-cta {
  font-size: 1.15rem;
  padding: 16px 24px;
}

/* Footer */
.main-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.06);
  margin-top: 3rem;
}
.main-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.main-footer p:first-of-type {
  margin-bottom: 5px;
}

/* Responsive */
@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr 560px;
    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) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .mobile-nav {
    display: none;
  }
  .mobile-nav.active {
    display: flex;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .mockup-img {
    width: 100%;
    max-width: 420px;
  }
  .client-logos {
    justify-content: center;
  }
  .client-card {
    width: 140px;
    height: 92px;
    box-shadow: none;
    transition: transform 0.2s ease;
  }
  .client-card:hover {
    transform: none;
  }
  .client-card .client-overlay {
    display: none;
  }
  .pricing-container {
    flex-direction: column;
  }
}