@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- Reset Estricto de Navegador (Evita viñetas y textos amontonados) --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* --- Variables de Paleta Dark SaaS --- */
:root {
  --bg: #030712;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(34, 211, 238, 0.4);
  
  --cyan: #06b6d4;
  --cyan-bright: #22d3ee;
  --lila: #c084fc;
  --lila-bright: #e879f9;

  --grad-primary: linear-gradient(135deg, var(--cyan) 0%, var(--lila) 100%);
  --grad-text: linear-gradient(135deg, #38bdf8 0%, #22d3ee 40%, #e879f9 70%, #c084fc 100%);

  --text: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(6, 182, 212, 0.12), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(192, 132, 252, 0.06), transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation Bar Limpia para Móvil --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-icon {
  color: var(--cyan-bright);
}

.brand span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Botones Pill Modernos --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-wide {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--cyan-bright);
  margin-bottom: 20px;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-bright);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
}

/* --- Server Status Card --- */
.server-card {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(16px);
}

.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.badge-online {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan-bright);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.server-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-item b {
  display: block;
  font-size: 1.35rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--cyan-bright);
}

.stat-item small {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* --- Tabs Deslizables en Móvil (Scroll Horizontal) --- */
.tabs-wrapper {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
}

.tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.tabs-bar {
  display: flex;
  gap: 8px;
  width: max-content;
  margin: 0 auto;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(6, 182, 212, 0.1);
  color: #ffffff;
  border-color: var(--cyan-bright);
}

/* --- Cards de Productos / Planes --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  background: var(--bg-card-hover);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 9999px;
  color: var(--text-muted);
}

.card-badge.highlight {
  background: var(--grad-primary);
  color: #ffffff;
  font-weight: 700;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.card-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.card-features {
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-features li {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li::before {
  content: "✦";
  color: var(--cyan-bright);
  font-size: 0.75rem;
}

/* --- Configurador (Sliders) --- */
.builder-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.slider-group {
  margin-bottom: 22px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.slider-header span {
  color: var(--lila-bright);
  font-weight: 700;
}

input[type=range] {
  width: 100%;
  height: 6px;
  background: #0f172a;
  border-radius: 3px;
  accent-color: var(--cyan-bright);
  cursor: pointer;
}

.checkout-col {
  background: rgba(0, 0, 0, 0.4);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.total-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 8px 0 16px;
}

.total-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Ajustes Responsive para Celulares --- */
@media (max-width: 640px) {
  .nav-links {
    display: none; /* Oculta links secundarios en celular para evitar desbordes */
  }

  .navbar {
    padding: 12px 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-wide-mobile {
    width: 100%;
  }

  .server-stats-grid {
    grid-template-columns: 1fr;
  }

  .builder-box {
    grid-template-columns: 1fr;
  }
}
