:root {
  --primary: #040d21;
  --primary-brand: #0a46da;
  --accent: #ff521b;
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;

  --shadow-sm: 0 4px 20px -2px rgba(4, 13, 33, 0.04);
  --shadow-md: 0 20px 40px -12px rgba(4, 13, 33, 0.08);
  --shadow-lg: 0 30px 60px -15px rgba(10, 70, 218, 0.15);

  --transition-base: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
} /* ===== UTILIDADES ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.text-primary-brand {
  color: var(--primary-brand);
}
.text-accent {
  color: var(--accent);
}
.bg-primary-brand {
  background-color: var(--primary-brand);
}
.bg-accent {
  background-color: var(--accent);
}
.border-primary-brand {
  border-color: var(--primary-brand);
}
.border-accent {
  border-color: var(--accent);
}
.shadow-custom {
  box-shadow: var(--shadow-md);
}
.rounded-2xl {
  border-radius: 1.5rem;
}
.py-6 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-7 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-8 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.mb-6 {
  margin-bottom: 3rem;
}
.mb-7 {
  margin-bottom: 4rem;
}
.mb-8 {
  margin-bottom: 5rem;
}
.mt-6 {
  margin-top: 3rem;
}
.mt-7 {
  margin-top: 4rem;
}
.mt-8 {
  margin-top: 5rem;
}
.w-full {
  width: 100%;
}

/* ===== LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: #040d21;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.text-muted-custom {
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== ANIMACIONES SCROLL ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(4, 13, 33, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(10, 70, 218, 0.4);
  padding: 0.75rem 0;
  transition: var(--transition-base);
}
.navbar-brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-logo-wrapper {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-logo-wrapper img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(10, 70, 218, 0.3));
}
.navbar-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.navbar .nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: #cbd5e1 !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 8px;
  transition: var(--transition-base);
}
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05);
  outline: 2px solid rgba(10, 70, 218, 0.6);
  outline-offset: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 238, 255, 0.16) 0%,
      transparent 45%
    ),
    linear-gradient(135deg, #020814 0%, #061a36 60%, #0b2555 100%);
  background-blend-mode: screen;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  padding: 100px 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.25rem;
  color: #94a3b8;
  font-weight: 500;
  max-width: 650px;
  margin-bottom: 2.5rem;
}

/* Botones */
.btn-premium {
  background: var(--accent);
  color: white !important;
  padding: 18px 38px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(255, 82, 27, 0.35);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}
.btn-premium:hover {
  background: #e03e0b;
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(255, 82, 27, 0.5);
}
.btn-premium:active {
  transform: translateY(-1px) scale(0.98);
}

.badge-ift {
  background: rgba(10, 70, 218, 0.15);
  border: 1px solid rgba(10, 70, 218, 0.5);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #93c5fd;
  padding: 8px 20px;
  letter-spacing: 0.03em;
}

/* Métricas */
.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}
.metric-item h4 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 0;
  font-weight: 800;
}
.metric-item p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0;
  font-weight: 600;
}

/* ===== PROMO CARD ===== */
.promo-card {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(10, 70, 218, 0.5);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(10, 70, 218, 0.2);
  position: relative;
  overflow: hidden;
  text-align: left;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.promo-badge-hot {
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(255, 82, 27, 0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 82, 27, 0.3);
  }
  50% {
    box-shadow: 0 4px 24px rgba(255, 82, 27, 0.6);
  }
}
.promo-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}
.promo-price-box {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.promo-countdown {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: 8px;
  width: fit-content;
}
.promo-countdown .countdown-number {
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  color: #ffffff;
  min-width: 32px;
  text-align: center;
  display: inline-block;
}

/* ===== FEATURES ===== */
.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  font-size: 2.2rem;
  color: var(--primary-brand);
  background: #eff6ff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon {
  transform: translateY(-5px) scale(1.1);
  background: var(--primary-brand);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(10, 70, 218, 0.3);
}

/* ===== CAROUSEL PLANES ===== */
.planes-carousel-container {
  position: relative;
  padding: 0 45px;
}

.plan-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem 2.2rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured {
  border: 2px solid #7c3aed;
}
.plan-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa, #7c3aed);
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.card-header-plan {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.bg-plan-hogar {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #b9e6fe;
}
.bg-plan-popular {
  background-color: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}
.bg-plan-gamer {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}
.bg-plan-negocio {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}
.bg-plan-dedicado {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.speed-tag {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 10px;
  display: inline-block;
}

/* Flechas carrusel */
.carousel-btn-custom {
  width: 54px;
  height: 54px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  color: var(--primary);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(4, 13, 33, 0.12);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-base);
}
.carousel-btn-custom:hover {
  background: var(--primary-brand);
  color: white;
  border-color: var(--primary-brand);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn-prev {
  left: -10px;
}
.carousel-btn-next {
  right: -10px;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-brand);
}

/* ===== COBERTURA ===== */
.coverage-container {
  background: linear-gradient(135deg, #040d21 0%, #091e42 100%);
  border-radius: 24px;
  padding: 4.5rem 3rem;
  position: relative;
}
.badge-geo {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-base);
  cursor: default;
}
.badge-geo:hover {
  background: rgba(10, 70, 218, 0.25);
  border-color: rgba(10, 70, 218, 0.6);
  transform: translateY(-2px);
}

/* ===== NUEVOS ESTILOS LEGAL / TRANSPARENCIA RE-ESTRUCTURADO (6 OPCIONES) ===== */
.legal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  border: 1px solid #e2e8f0;
  transition: var(--transition-smooth);
  display: flex;
  flex-content: space-between;
  flex-direction: column;
}
.legal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(10, 70, 218, 0.3);
}
.legal-icon {
  font-size: 1.75rem;
  color: var(--primary-brand);
  background: #eff6ff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: var(--transition-base);
}
.legal-card:hover .legal-icon {
  background: var(--primary-brand);
  color: white;
}
.legal-link-btn {
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-brand);
  text-decoration: none;
  margin-top: auto;
  padding-top: 1rem;
  transition: var(--transition-base);
}
.legal-link-btn:hover {
  color: var(--accent);
}

/* ===== CONTACTO ===== */
.contact-box {
  background: var(--surface);
  border-radius: 24px;
  padding: 4rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md);
}
.form-control-lg {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  transition: var(--transition-base);
}
.form-control-lg:focus {
  background: #ffffff;
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 4px rgba(10, 70, 218, 0.1);
}
.form-control-lg.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.invalid-feedback {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== FOOTER PREMIUM ACCESIBLE ===== */
footer {
  background: #020714;
  color: #e2e8f0;
  padding-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer h5 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
footer p.text-muted {
  color: #94a3b8 !important;
}
footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  display: inline-block;
}
footer a:hover {
  color: #38bdf8 !important;
  transform: translateX(4px);
}
footer hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: var(--transition-smooth);
  animation: pulseWA 3s ease-in-out infinite;
}
@keyframes pulseWA {
  0%,
  100% {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  }
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  animation: none;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.5);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: var(--primary-brand);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(10, 70, 218, 0.3);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: #0839b5;
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .planes-carousel-container {
    padding: 0 20px;
  }
  .carousel-btn-custom {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .carousel-btn-prev {
    left: -12px;
  }
  .carousel-btn-next {
    right: -12px;
  }
  .contact-box {
    padding: 2.5rem 1.5rem;
  }
  .hero {
    min-height: auto;
    padding: 80px 0 60px;
  }
  .promo-card {
    margin-top: 2rem;
  }
}
@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .price {
    font-size: 2.4rem;
  }
  .coverage-container {
    padding: 3rem 1.5rem;
  }
  .scroll-top-btn {
    bottom: 90px;
    right: 20px;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
  .planes-carousel-container {
    padding: 0 10px;
  }
  .carousel-btn-custom {
    display: flex;
  }
  .carousel-btn-prev {
    left: -8px;
  }
  .carousel-btn-next {
    right: -8px;
  }
}
