/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a1a0f;
  --panel: #0d1e12;
  --card: #0f2116;
  --border: #1a3025;
  --text: #f0f8f2;
  --muted: #a0b5a8;
  --brand: #00ff88;
  --brand-2: #00cc6a;
  --danger: #ff4757;
  --accent: #1a3025;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(135deg, var(--bg) 0%, #08150c 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

.container {
  width: min(1400px, 95%);
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 26, 15, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.nav.scrolled {
  background: rgba(10, 26, 15, .98);
  box-shadow: 0 4px 32px rgba(0, 0, 0, .3);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--brand);
}

.brand .main-logo {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.4));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: .2s;
  color: var(--muted);
}

.menu a:hover {
  color: var(--text);
  background: var(--accent);
}

/* BOTÓN DISCORD EN NAV */
#discordBtn,
#discordBtnMobile {
  background: #5865F2;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#discordBtn::before,
#discordBtnMobile::before {
  content: "\f392"; /* Font Awesome Brands: Discord */
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}
#discordBtn:hover,
#discordBtnMobile:hover {
  background: #4752c4;
  box-shadow: 0 0 15px rgba(88,101,242,.6);
  transform: translateY(-2px);
}
/* Evitar subrayado animado en el botón */
#discordBtn::after,
#discordBtnMobile::after { content: none !important; display: none !important; }

/* BOTONES GENERALES */
.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  transition: .2s;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, .3);
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}

.nav.is-open .hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* MENU MÓVIL */
.menu-mobile {
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  background: rgba(10, 26, 15, .98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 999;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
}

.menu-mobile a {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
}

.nav.is-open .menu-mobile {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* HERO */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--brand);
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}
.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  font-weight: 300;
}

/* SLIDER */
.slider {
  position: relative;
  object-fit: contain;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

  /* 🔽 Ajustes de tamaño */
  aspect-ratio: 16/7;   /* un poco más panorámico que 16/9 */
  min-height: 380px;    /* más altura */
  max-height: 650px;    /* en pantallas grandes */
  max-width: 95%;       /* casi todo el ancho de la pantalla */
  margin: 0 auto;       /* centrado */
}


@media (max-width: 767px) {
  .slider {
    aspect-ratio: 16/9;
    min-height: 240px;
    max-height: 320px;
    max-width: 100%;
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}
.slide.active {
  opacity: 1;
}
/* 🔽 La imagen entra completa y con “zoom negativo” */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: center;   /* 🔹 ahora llena la box */
  background: #0b1710;
  transform: none;
  filter: brightness(.9) contrast(1.05);
}

.slider-ui {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: .3s;
}
.dot.active {
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}
.pill {
  background: rgba(0, 0, 0, .8);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--brand);
}

/* SECCIONES */
.section {
  padding: 120px 0;
}
.section--compact {
  padding: 80px 0;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  margin: 0 0 60px;
  color: var(--brand);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), transparent, var(--brand));
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: .3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 255, 136, .1);
  border-color: rgba(0, 255, 136, .3);
}
.pad {
  padding: 40px;
}

/* INFO */
.info {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.stat:last-child { border-bottom: none; }
.stat strong { color: var(--brand); }

/* SERVIDORES */
.servidores-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.servidor-card {
  padding: 40px;
  position: relative;
}
.servidor-status {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}
.servidor-status.offline {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}
.servidor-titulo {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff !important;
}
.servidor-desc {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 20px;
}
.servidor-ip strong {
  color: var(--brand);
  font-family: monospace;
  font-weight: 600;
}
.servidor-actions {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

/* BOTONES SERVIDOR */
.btn-copiar {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}
.btn-copiar:hover {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
.btn-conectar {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--bg);
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-conectar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, .3);
}

/* TIENDA */
.tienda-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.tienda-thumb {
  aspect-ratio: 16/10;
  background: var(--panel);
  overflow: hidden;
}
.tienda-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9) contrast(1.05);
  transition: .4s;
}
.tienda-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.1);
}
.tienda-body {
  padding: 30px 30px 20px;
}
/* CAMBIO A ARIAL */
.tienda-title {
  font-family: Arial, sans-serif;
  font-size: 20px;
  color: var(--brand);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.tienda-desc {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--muted);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.vip-chip { border-color: var(--brand); color: var(--brand); }
.btn-discord {
  background: #5865F2;
  color: #fff;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 600;
  text-align: center;
  transition: .2s;
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88, 101, 242, .4);
}

/* CONTACTO */
.section-subtitle {
  color: var(--muted);
  font-size: 18px;
  margin-top: -30px;
  margin-bottom: 60px;
  text-align: center;
}
.contact-content {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
.outline-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--bg);
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 600;
  cursor: pointer;
}

/* FOOTER */
footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
footer p span {
  color: var(--brand);
  font-weight: 600;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .info { grid-template-columns: 2fr 1fr; }
  .servidores-grid { grid-template-columns: repeat(2, 1fr); }
  .tienda-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .menu { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 36px; }
}

/* Logo grande a la derecha de "Información del Servidor" */
.server-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 300px;
}
.server-logo-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(0, 255, 136, 0.25));
  opacity: 0.95;
}
@media (max-width: 767px) {
  .server-logo { padding: 24px; }
  .server-logo-img { max-width: 360px; }
}

/* Botones mitad-mitad en TIENDA */
.tienda-actions {
  display: flex;
  width: 100%;
}
.tienda-actions a {
  flex: 1;
  text-align: center;
  border-radius: 0;
}
.tienda-actions a:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.tienda-actions a:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* ====== NAVBAR: animación de item activo ====== */
.menu a,
.menu-mobile a {
  position: relative;
  overflow: hidden;
}
.menu a::after,
.menu-mobile a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(0,255,136,0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
  opacity: .9;
}
.menu a.active,
.menu-mobile a.active {
  color: var(--text);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  box-shadow:
    inset 0 0 0 1px rgba(0, 255, 136, 0.15),
    0 0 0 3px rgba(0, 255, 136, 0.08);
  border-radius: 12px;
}
.menu a.active::after,
.menu-mobile a.active::after {
  transform: scaleX(1);
}
