:root {
  color-scheme: dark;
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 55%),
    #050508;
  color: #f8fafc;
  overflow-x: hidden;
}

.parallax-scene {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.stars-layer,
.grid-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.parallax-layer {
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
  transition: transform 0.4s ease-out;
}

.depth-1 {
  transform: translate3d(
    calc(var(--parallax-x) * 0.25),
    calc(var(--parallax-y) * 0.25),
    0
  );
}

.depth-2 {
  transform: translate3d(
    calc(var(--parallax-x) * 0.5),
    calc(var(--parallax-y) * 0.5),
    0
  );
}

.depth-3 {
  transform: translate3d(
    calc(var(--parallax-x) * 0.9),
    calc(var(--parallax-y) * 0.9),
    0
  );
}

.parallax-tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.35s ease;
}

.stars-layer {
  background-image: radial-gradient(#1f2937 1px, transparent 0),
    radial-gradient(#111827 1px, transparent 0);
  background-size: 24px 24px, 48px 48px;
  opacity: 0.35;
  animation: star-drift 12s linear infinite;
}

.grid-layer {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.3;
  animation: grid-pulse 6s ease-in-out infinite;
}

.public-navbar {
  position: relative;
  z-index: 2;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.8), rgba(14, 116, 144, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 12px;
  position: relative;
}

.brand-mark-sub {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 0.5rem;
  opacity: 0.7;
}

.public-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-cards {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(15, 15, 24, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 45px rgba(8, 8, 15, 0.6);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 1s;
}

.delay-2 {
  animation-delay: 2s;
}

.glow-text {
  color: #a5b4fc;
  text-shadow: 0 0 18px rgba(129, 140, 248, 0.6);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.65;
  animation: orb-float 10s ease-in-out infinite;
}

.orb-purple {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.7), transparent 70%);
  top: 10%;
  left: 5%;
}

.orb-cyan {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.6), transparent 70%);
  bottom: 15%;
  right: 15%;
  animation-delay: 2s;
}

.orb-pink {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.5), transparent 70%);
  top: 30%;
  right: 35%;
  animation-delay: 4s;
}

.public-main {
  position: relative;
  z-index: 1;
}

.public-card {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(12, 12, 20, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 24px 45px rgba(6, 6, 12, 0.6);
}

.public-server-grid {
  display: grid;
  gap: 1rem;
}

.category-section {
  margin-bottom: 2rem;
}

.category-section:last-child {
  margin-bottom: 0;
}

.server-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.public-server-card {
  position: relative;
  border-radius: 16px;
  background: rgba(8, 8, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

.public-server-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.server-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(20, 20, 35, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.server-card-content {
  padding: 1rem;
}

.server-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.server-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-icon {
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: #e0e7ff;
}

/* Estado colores */
.tag.is-success {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.tag.is-warning {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.feature-banner {
  padding: 1.75rem;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(99, 102, 241, 0.2), transparent 70%),
    rgba(15, 15, 22, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.banner-actions {
  display: flex;
  align-items: center;
}

.highlight-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chip {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.3);
  font-size: 1rem;
}

.ad-slot {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(10, 10, 18, 0.9);
  border: 1px dashed rgba(129, 140, 248, 0.5);
  text-align: center;
}

.empty-state {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(10, 10, 16, 0.85);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  text-align: center;
}

.public-footer {
  background: transparent;
  padding-bottom: 3rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes star-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px);
  }
}

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(12px);
  }
}

@media (max-width: 768px) {
  .parallax-layer,
  .parallax-tilt {
    transform: none;
  }

  .feature-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-hero {
    text-align: left;
  }
}
