/* 🎨 VARIABLES GLOBALES */
:root {
  --bg: #000000;
  --text: #f0f0f0;
  --yellow: #33b1ff;
  --yellow-dark: #0400e5;
  --blue: #00aaff;
  --blue-dark: #0088cc;
  --green: #00cc88;
  --danger: #910000;
  --font-main: 'Kanit', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --radius: 10px;
  --transition: 0.3s ease;
}

/* 🔧 BASE */
body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  position: relative;
  z-index: 2;
}

/* 🎯 NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0000008e;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.navbar nav {
  display: flex;
  gap: 20px;
}
.navbar a,
.user {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.navbar a {
  position: relative;
  transition: color 0.3s ease;
}
.navbar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.navbar a:hover::after {
  transform: scaleX(1);
}
/* 🖼 HERO */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 5px;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-script);
  font-size: 5vw;
  color: var(--yellow);
  text-shadow: 0 0 12px #33b1ffaa, 0 0 25px #33b1ff44;
  z-index: 3;
  position: relative;
  top: 40px; /* 🔹 mueve community hacia abajo */
  margin-bottom: 10px;
}


.hero-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12vw;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px #ffffff;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
}

/* Ajuste visual */
.hero-subtext {
  font-size: 1.2rem;
  color: #ddd;
  z-index: 2;
  text-align: center;
  margin-top: 70px; /* 🔹 separa el texto del SPOT */
  line-height: 1.6;
  position: relative;
}


.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: typeLetter 0.5s forwards;
}

/* 🌌 FONDO */
#particles-js,
.overlay-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.overlay-dark {
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}
/* 📦 SECCIONES */
.section {
  padding: 10px 5px;
  position: relative;
  z-index: 2;
}

/* 📎 FOOTER */
.footer {
  text-align: center;
  padding: 30px;
  background: var(--bg);
  margin-top: 60px;
  position: relative;
  z-index: 3;
}

/* 🙋‍♂️ BIENVENIDA */
.bienvenida {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--bg);
  color: #fff;
  font-size: 18px;
  font-family: var(--font-main);
  border-bottom: 2px solid var(--yellow);
  animation: fadeIn 0.6s ease-in-out;
  position: relative;
  z-index: 5;
  margin-top: 10px;
}
.bienvenida-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}

/* 📚 NORMATIVA */
.normativa-section {
  background: transparent;
  padding: 60px 20px;
  color: var(--text);
  position: relative;
}
.normativa-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.outline-title {
  font-size: 6vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--yellow);
  opacity: 0.1;
}
.normativa-subtext {
  max-width: 800px;
  margin: 20px auto 40;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #ccc;
}

.normativa-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.normativa-menu {
  flex: 1 1 200px;
  max-width: 250px;
  background: #1a1a1a76;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 0 15px #00000088;
  position: sticky;
  top: 120px;
  height: fit-content;
}
.normativa-menu ul {
  list-style: none;
  padding: 0;
}
.normativa-menu a {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  background: #2222225b;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all var(--transition);
}
.normativa-menu a:hover {
  background: var(--yellow);
  color: #000;
}
.normativa-paginas {
  flex: 2 1 600px;
}
.normativa-paginas article {
  margin-bottom: 60px;
  background: #1616165a;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 0 10px #00000055;
}
.normativa-paginas h2 {
  color: var(--yellow);
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.normativa-paginas p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}
/* 📑 MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  padding-top: 60px;
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: #111;
  margin: auto;
  padding: 30px;
  border: 1px solid var(--yellow);
  width: 90%;
  max-width: 800px;
  border-radius: var(--radius);
  color: #fff;
  position: relative;
}
.cerrar-modal {
  position: absolute;
  top: -2px;
  right: 20px;
  color: var(--danger);
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color var(--transition), transform 0.2s ease;
}
.cerrar-modal:hover {
  color: #fff;
  transform: scale(1.2);
}

.busqueda-normativa {
  display: flex;
  justify-content: flex-start; /* 👈 Alinea a la izquierda */
  margin: 0 0 25px 0;
  padding-left: 10px;
}

.input-wrapper {
  position: relative;
  width: 260px; /* 👈 Más pequeña */
}

.buscador-input {
  width: 100%;
  padding: 10px 14px 10px 38px; /* Espacio para la lupa */
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 15px;
  background: #1c1c1c;
  color: #fff;
  font-family: var(--font-main);
  box-shadow: 0 0 5px #00000066;
}

.icono-lupa {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--yellow);
  pointer-events: none;
  opacity: 0.8;
}


.busqueda-normativa kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0.6;
}

.ver-detalle-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background var(--transition);
}
.ver-detalle-btn:hover {
  background: var(--yellow-dark);
}

/* 🎞 ANIMACIONES */
@keyframes typeLetter {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  100% { opacity: 0.08; transform: translate(-50%, -50%); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateX(-50%); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* 🚀 Bienvenida estilo notificación */
.welcome-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 2px solid var(--yellow);
  padding: 16px 25px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 20px #000000aa;
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.welcome-toast img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}

.welcome-toast div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.welcome-toast strong {
  font-size: 16px;
  color: var(--yellow);
}

/* 🔧 Contenido del modal legible */
.modal-content h2,
.modal-content p,
.modal-content ul,
.modal-content li,
.modal-content strong {
  color: #f0f0f0 !important;
}
.modal-content p {
  margin-bottom: 16px;
  color: #e0e0e0;
  font-size: 15.5px;
  line-height: 1.6;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: #fff;
  font-size: 22px;
}
.modal-content strong {
  color: #fff;
}

/* 🛑 Alerta (último párrafo con ⚠️) */
.modal-content p[style*="color: #e74c3c"] {
  color: #ff5555 !important;
  background: #1c1c1c;
  padding: 10px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 16px;
}

/* 🎨 Scroll estético para modal */
.modal-content {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 12px;
  box-sizing: border-box;
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}
/* 🔧 Mostrar menú hamburguesa solo en móviles */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 28px;
    color: var(--yellow);
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    right: 20px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px #000;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
    color: #fff;
    font-weight: bold;
    text-align: right;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.copy-ip {
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.copied-msg {
  position: absolute;
  bottom: -22px;
  left: 60px;
  color: #00b7ff;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.copied-msg.show {
  opacity: 1;
}
.server-page {
  width: 90%;
  margin: 100px auto 60px auto;
  color: #fff;
  text-align: center;
}

.status-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid #00b7ff;
  padding: 20px;
  border-radius: 12px;
  margin: 15px auto 40px;
  width: 320px;
  backdrop-filter: blur(6px);
}

.updates-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  max-width: 600px;
  margin-inline: auto;
}

.updates-list li {
  margin-bottom: 8px;
  border-left: 3px solid #00b7ff;
  padding-left: 10px;
}

.news-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 600px;
  backdrop-filter: blur(6px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #00b7ff33;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #00b7ff66;
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

.overlay-dark {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  top: 0;
  left: 0;
  z-index: 1;
}

.server-page, .navbar, footer {
  position: relative;
  z-index: 2;
}
/* === CHANGELOG VISUAL SPOT COMMUNITY === */
.server-updates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.update-card {
  background: rgba(15, 15, 15, 0.95);
  border-radius: 14px;
  padding: 35px 50px;
  box-shadow: 0 0 25px rgba(0, 183, 255, 0.15);
  width: 90%;
  max-width: 1100px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 183, 255, 0.25);
}

.update-card h2 {
  font-size: 1.6rem;
  color: #00b7ff;
  margin-bottom: 15px;
}

.update-card h2::before {
  content: " ";
}

.update-card p strong {
  font-size: 1.1rem;
  color: #fff;
}

.update-card small {
  color: #aaa;
}

.update-category {
  margin: 25px 0;
  text-align: center;
}

.update-category h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 10px;
}

.update-category h3::before {
  content: " ";
}

.update-category ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 750px;
}

.update-category ul li {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5em;
  position: relative;
}

.update-category ul li::before {
  content: "✅";
  position: absolute;
  left: -28px;
  top: 6px;
  color: #00ff9d;
  font-size: 1rem;
}

/* === NOTICIAS === */
.news-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(15, 15, 15, 0.9);
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(0, 183, 255, 0.15);
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
}

.news-text {
  flex: 1 1 60%;
  text-align: left;
  color: #ddd;
}

.news-images {
  flex: 1 1 35%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.news-images img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-images img:hover {
  transform: scale(1.05);
}

/* === GALERÍA === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}

.gallery-grid img {
  border-radius: 10px;
  width: 100%;
  height: 250px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 183, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 183, 255, 0.3);
}
/* 🔧 Elevar la sección de Gift Card por encima del fondo */
.giftcard-section {
  position: relative;
  z-index: 3 !important;
}
/* 🛠️ Arreglo visual para Gift Card */
.cuadro-bienvenida {
  position: relative;
  z-index: 5 !important;
}
#particles-js {
  z-index: 0 !important;
}

.overlay-dark {
  z-index: 1 !important;
}
/* 🎁 Eliminar fondo de la sección de Gift Card */
.cuadro-bienvenida.giftcard {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.footer {
  text-align: center;
  padding: 20px 10px;
  color: #ccc;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

.footer p {
  margin: 4px 0;
  line-height: 1.4;
}

.footer strong {
  color: #00aaff;
}
