
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
  color: white;
  overflow-x: hidden;
}

/* ANIMACIONES GLOBALES */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.8);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* NAV */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  animation: slideInRight 0.6s ease;
}

nav h1 {
  color: #38bdf8;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav h1 i {
  animation: glow 2s infinite;
}

nav div {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* HERO */

.hero {
  text-align: center;
  padding: 120px 8% 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.05) 100%);
}

.hero h2 {
  font-size: 56px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
  font-weight: 700;
}

.hero p {
  font-size: 24px;
  color: #cbd5e1;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  padding: 16px 50px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: white;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #38bdf8;
  color: #38bdf8;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
}

/* FEATURES */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 100px 8%;
  background: rgba(56, 189, 248, 0.02);
}

.feature-card {
  background: rgba(2, 6, 23, 0.6);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.feature-card i {
  font-size: 48px;
  color: #38bdf8;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.feature-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* PRICING SECTION */

.pricing {
  padding: 100px 8%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
}

.section-title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.plan-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 15px;
  padding: 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
  transition: left 0.5s ease;
}

.plan-card:hover::before {
  left: 100%;
}

.plan-card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.2);
}

.plan-card.popular {
  border: 2px solid #38bdf8;
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.3);
}

.plan-card.popular:hover {
  transform: scale(1.08) translateY(-10px);
}

.plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.plan-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #f1f5f9;
}

.plan-price {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.plan-period {
  color: #cbd5e1;
  margin-bottom: 30px;
  font-size: 14px;
}

.plan-description {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 14px;
  min-height: 60px;
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
}

.plan-features li {
  padding: 12px 0;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.plan-features li i {
  color: #38bdf8;
  font-size: 16px;
}

.plan-features li.disabled {
  color: #64748b;
  text-decoration: line-through;
}

.plan-features li.disabled i {
  color: #64748b;
}

.paypal-container {
  min-height: 45px;
  margin-bottom: 15px;
}

.plan-cta {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plan-cta.primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
}

.plan-cta.secondary {
  background: transparent;
  border: 2px solid #38bdf8;
  color: #38bdf8;
}

.plan-cta:hover {
  transform: scale(1.02);
}

/* RESELLER SECTION */

.reseller {
  padding: 100px 8%;
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, transparent 100%);
}

.reseller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.reseller-card {
  background: rgba(2, 6, 23, 0.6);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.reseller-card:hover {
  transform: translateY(-10px);
  border-color: #38bdf8;
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
}

.reseller-card i {
  font-size: 48px;
  color: #38bdf8;
  margin-bottom: 20px;
}

/* DASHBOARD */

.dashboard {
  display: none;
}

.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  background: linear-gradient(180deg, #020617 0%, #1a2744 100%);
  padding: 30px 20px;
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  overflow-y: auto;
}

.sidebar h2 {
  color: #38bdf8;
  margin-bottom: 30px;
  font-size: 24px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  text-decoration: none;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.sidebar a:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  transform: translateX(5px);
}

.main {
  margin-left: 260px;
  padding: 40px;
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
  min-height: 100vh;
}

.main h1 {
  margin-bottom: 40px;
  font-size: 32px;
  animation: fadeInUp 0.6s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  background: rgba(2, 6, 23, 0.6);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.15);
}

.stat-card h3 {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 10px;
}

.stat-description {
  color: #64748b;
  font-size: 12px;
}

/* LINKS SECTION STYLES */
.links-section {
  padding: 80px 8%;
  text-align: center;
  background: rgba(30, 41, 59, 0.5);
}

.links-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.links-column {
  flex: 1;
  min-width: 200px;
}

.links-column h3 {
  color: #38bdf8;
  margin-bottom: 20px;
  font-size: 20px;
  animation: fadeInUp 0.6s ease;
}

.links-column ul {
  list-style: none;
  text-align: center;
}

.links-column ul li {
  margin-bottom: 12px;
}

.links-column ul li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.links-column ul li a:hover {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transform: translateX(5px);
}

/* FOOTER STYLES */
.footer {
  text-align: center;
  padding: 30px 8%;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  animation: slideInRight 0.6s ease;
}

.footer p {
  margin: 0;
}

.footer p:first-child {
  margin-bottom: 10px;
  color: #cbd5e1;
  font-size: 14px;
}

.footer p:last-child {
  color: #64748b;
  font-size: 12px;
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 20px;
  }

  nav div {
    flex-direction: column;
    gap: 15px;
  }

  .hero h2 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.popular {
    transform: scale(1);
  }

  .plan-card.popular:hover {
    transform: translateY(-10px);
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  }

  .main {
    margin-left: 0;
  }

  .section-title {
    font-size: 32px;
  }

  /* Footer */
.footer {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  padding: 40px 8% 30px;
  margin-top: 60px;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  margin-bottom: 40px;
}
.footer-header {
  text-align: center;
  margin-bottom: 30px;
}
.footer-header h4 {
  color: #38bdf8;
  margin-bottom: 10px;
  font-size: 24px;
}
.footer-header p {
  color: white;
  font-size: 14px;
}
.footer-cols-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 600px;
}
.footer-col {
  flex: 1;
  text-align: center;
}
.footer-col h4 {
  color: #38bdf8;
  margin-bottom: 20px;
  font-size: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
}
.footer-col ul li a:hover {
  color: #38bdf8;
  padding-left: 5px;
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  color: #64748b;
  font-size: 14px;
}
.footer-bottom a {
  color: #38bdf8;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 15px;
  }

  .footer-cols-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .links-section {
    padding: 60px 4%;
  }

  .links-container {
    gap: 40px;
  }

  .links-column {
    min-width: 150px;
  }

  .links-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .links-column ul li {
    margin-bottom: 10px;
  }

  .links-column ul li a {
    font-size: 13px;
  }

  .footer {
    padding: 20px 4%;
  }

  .footer p:first-child {
    font-size: 12px;
  }

  .footer p:last-child {
    font-size: 11px;
  }
}

/* ADVANCED VISUAL EFFECTS */

@keyframes metallicShine {
  0% {
    background-position: -1000px center;
  }
  100% {
    background-position: 1000px center;
  }
}

@keyframes colorShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(10deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

@keyframes techPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), 
                0 0 40px rgba(167, 139, 250, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.8), 
                0 0 60px rgba(167, 139, 250, 0.4);
  }
}

@keyframes hologramFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.95;
  }
}

/* Enhanced body background with multiple gradients */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
    linear-gradient(-45deg, rgba(167, 139, 250, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
  pointer-events: none;
  z-index: -1;
}

/* Hero section enhancement */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h2 {
  animation: fadeInUp 0.8s ease, colorShift 4s ease-in-out infinite;
}

/* Button enhancements with metallic effect */
.btn {
  position: relative;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn {
  z-index: 1;
  position: relative;
}

.btn:hover {
  animation: techPulse 1.5s ease-in-out;
  background: linear-gradient(135deg, #60a5fa, #2dd4bf);
}

/* Feature cards with tech effect */
.feature-card {
  position: relative;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.8) 0%, rgba(30, 41, 59, 0.4) 100%);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
  animation: hologramFlicker 0.15s infinite;
}

.feature-card i {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

/* Plan cards with enhanced effects */
.plan-card {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.7) 0%, rgba(30, 41, 59, 0.3) 100%);
  position: relative;
}

.plan-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.plan-card:hover::after {
  opacity: 1;
}

.plan-price {
  animation: colorShift 5s ease-in-out infinite;
}

/* Footer enhancement */
.footer {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  position: relative;
  border-top: 2px solid rgba(56, 189, 248, 0.3);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a78bfa, transparent);
}

.footer-col h4 {
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  transition: width 0.3s ease;
}

.footer-col:hover h4::after {
  width: 100%;
}

/* ======================== CYBER PARTICLES EFFECT ======================== */
.cyber-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: floatParticle ease-in-out infinite;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56,189,248,0.8) 0%, rgba(56,189,248,0) 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) translateX(20px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        opacity: 0.4;
    }
}

.particle:nth-child(1) { top: 10%; left: 10%; width: 20px; height: 20px; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { top: 20%; right: 15%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(3) { bottom: 30%; left: 20%; width: 25px; height: 25px; animation-delay: 4s; animation-duration: 12s; }
.particle:nth-child(4) { top: 50%; right: 10%; width: 12px; height: 12px; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(5) { bottom: 20%; right: 20%; width: 18px; height: 18px; animation-delay: 3s; animation-duration: 11s; }
.particle:nth-child(6) { top: 30%; left: 5%; width: 22px; height: 22px; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { bottom: 40%; left: 70%; width: 16px; height: 16px; animation-delay: 0.5s; animation-duration: 8.5s; }
.particle:nth-child(8) { top: 60%; left: 50%; width: 14px; height: 14px; animation-delay: 2.5s; animation-duration: 10.5s; }

/* Asegurar que el contenido esté encima de las partículas */
.plan-card,
.btn,
.feature-card,
.hero,
.pricing,
nav,
footer {
    position: relative;
    z-index: 1;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  .feature-card i {
    font-size: 40px;
  }
}
