*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050816;
  --accent1: #8b5cf6;
  --accent2: #3b82f6;
  --accent3: #06b6d4;
  --text: #f8fafc;
  --muted: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(5, 8, 22, 0.6);
}

body[data-theme='light'] {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(248, 250, 252, 0.8);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Reducido de 110px para un ajuste más preciso */
  /* Evita que la navegación fija tape el inicio de las secciones */
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme='light'] .badge {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

body[data-theme='light'] .badge-dot {
  background: #7c3aed;
}

body[data-theme='light'] .blob {
  opacity: 0.3;
}

/* ── BACKGROUND BLOBS ── */
.blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  height: 100%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  --tx: 0px;
  --ty: 0px;
  animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent1);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent2);
  bottom: 20%;
  right: -150px;
  animation-delay: 2s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--accent3);
  top: 30%;
  left: 10%;
  animation-delay: 4s;
}

.blob-4 {
  width: 450px;
  height: 450px;
  background: var(--accent1);
  bottom: -100px;
  left: 20%;
  animation-delay: 6s;
}

.blob-5 {
  width: 350px;
  height: 350px;
  background: var(--accent2);
  top: 10%;
  right: 15%;
  animation-delay: 1s;
}

.blob-6 {
  width: 500px;
  height: 500px;
  background: var(--accent1);
  top: 60%;
  right: -100px;
  animation-delay: 3s;
}

.blob-7 {
  width: 400px;
  height: 400px;
  background: var(--accent3);
  top: 85%;
  left: -150px;
  animation-delay: 5s;
}

/* Adornos (Dots) */
.dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent2);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(1px);
}

body[data-theme='light'] .dot {
  opacity: 0.5;
}

@keyframes float {
  from {
    transform: translate(var(--tx), var(--ty)) scale(1);
  }

  to {
    transform: translate(calc(var(--tx) + 40px), calc(var(--ty) + 30px)) scale(1.08);
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 6% 0.7rem;
  backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--card-border);
}

.nav-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 60px;
  /* Aumentado de 40px a 60px */
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}

/* Invertir el logo blanco en el tema claro para que se vea negro/oscuro */
body[data-theme='light'] .logo img {
  filter: invert(1) brightness(0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  justify-self: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

.nav-cta {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-secondary {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.nav-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

body[data-theme='light'] .nav-secondary {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme='light'] .nav-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--accent2);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  padding: 0.4rem 1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  line-height: 1;
}

.menu-toggle span {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.theme-toggle {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: max-height 0.25s ease-out, opacity 0.25s ease-out,
    transform 0.25s ease-out;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--bg);
  border: 1px solid var(--card-border);
}

.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.mobile-nav a:hover {
  color: var(--text);
}

.mobile-area-clientes {
  font-weight: 700;
  color: var(--accent2) !important;
  border-top: 1px solid var(--card-border);
  padding-top: 0.8rem;
  margin-top: 0.4rem;
  display: block;
}

.mobile-nav-cta {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.nav-open .mobile-nav {
  max-height: 350px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 6% 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  /* Asegura que el gradiente se renderice bien en spans */
}

.hero-sub {
  max-width: 600px;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.45s ease both;
}

.btn-primary {
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FEATURES ── */
.section {
  position: relative;
  z-index: 1;
  padding: 3.5rem 6% 2rem;
  /* Altura reducida más */
}

.section-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.2rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── INSTALACIÓN ── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.install-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.2rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.install-item:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.1);
}

.install-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.install-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.install-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── STATS ── */

.stats {
  position: relative;
  z-index: 1;
  padding: 7rem 6% 5rem;
  /* Aumentado para que no se pegue al top al navegar */
  scroll-margin-top: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.08));
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--muted), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 7rem 6%;
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 4rem 3rem;
  backdrop-filter: blur(16px);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── PLANES ── */
.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.12);
}

.plan-popular {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
  transform: scale(1.03);
}

.plan-popular:hover {
  transform: scale(1.03) translateY(-6px);
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.plan-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.popular-badge {
  color: #a78bfa;
}

.plan-price {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-currency {
  font-size: 1.8rem;
  vertical-align: super;
  margin-right: 0.2rem;
}

.plan-period {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  /* Mantener el periodo legible y secundario */
  margin-left: 0.4rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
}

.plan-features li {
  color: var(--text);
}

.plan-features li.feature-off {
  opacity: 0.4;
}

.plan-btn {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: -0.4rem;
}

/* ── PROMO BANNER ── */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 2.5rem auto 0;
  padding: 2rem 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.1);
}

.promo-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.promo-content {
  flex: 1;
  min-width: 200px;
}

.promo-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.promo-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.promo-content strong {
  color: #a78bfa;
}

.promo-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.install-note {
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.install-note strong {
  color: #a78bfa;
}



/* ── CTA BUTTONS ── */
.cta-whatsapp {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.2);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  background: #075e54;
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.3);
}


/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 6%;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-desktop-only {
    gap: 0.5rem;
  }
}

@media (max-width: 900px) {
  .nav-top {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .nav-desktop-only {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

.nav-desktop-only {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-cta,
.nav-secondary {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
}