/* Fuente */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* PANTALLA DE CARGA */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999; /* Increased to stay above cart (z-index: 100000+) */
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-gif {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.loading-text {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.hidden {
  display: none;
}

/* FLOATING CART BUTTON */
.cart-floating-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #ff2a2a;
  border-radius: 10px;
  width: 64px;
  height: 64px;
  box-shadow: 0 4px 12px rgba(255, 42, 42, 0.3);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-floating-selector:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 42, 42, 0.4);
}

.cart-floating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.cart-floating-display svg {
  width: 24px;
  height: 24px;
}

.cart-floating-count {
  font-size: 22px;
  font-weight: 900;
  color: white;
  line-height: 1;
}

/* CURRENCY SELECTOR */
.currency-selector {
  position: fixed;
  top: 94px;
  right: 20px;
  z-index: 1000;

  /* Cuadro azul visible */
  background: #3b82f6;
  border-radius: 10px;
  width: 64px;
  /* cuadrado como el de la imagen */
  height: 64px;
  padding: 0;
  /* el tamaño lo dan width/height */
  box-shadow: 0 4px 12px rgba(59, 130, 246, .3);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  /* bordes redondeados limpios */
}

.currency-selector:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, .4);
}

.currency-display {
  display: flex;
  flex-direction: column;
  /* <- clave */
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* espacio entre símbolo y texto */
  width: 100%;
  height: 100%;
}

/* Tamaños como el ejemplo */
.currency-symbol {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.currency-text {
  font-size: 12px;
  letter-spacing: .5px;
  line-height: 1;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.3px;
  margin: 0;
  background-color: #000;
  color: white;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #000;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.nav-links {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 15px 15px;
  border-radius: 5px;
}

.nav-links a.active {
  background: #3b82f6;
}

.nav-links a:not(.active):hover {
  background: #3b82f6;
  color: white;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.discord-btn img {
  width: 52px;
  height: 52px;
}

.play-btn {
  background: #e9a11a;
  color: #7c2d12;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}

.play-btn span {
  background: #e9a11a;
  color: #9a4d14;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

/* BOTÓN TOGGLE (hamburguesa) */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
  font-weight: bold;
  align-items: center;
  gap: 8px;
}

.menu-toggle span {
  font-size: 18px;
  letter-spacing: 1px;
}

/* OVERLAY MENU - EXACTO COMO LA IMAGEN */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  padding: 30px;
  z-index: 1000;
  box-sizing: border-box;

  /* Animación de entrada */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay.hide-on-scroll {
  transform: translateY(-100%);
  opacity: 0;
}

.overlay-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.close-menu {
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-menu:hover {
  color: #ccc;
}

/* Links del overlay - DISPOSICIÓN VERTICAL */
.nav-overlay .nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nav-overlay .nav-links li {
  width: 100%;
}

.nav-overlay .nav-links a {
  display: block;
  width: 100%;
  padding: 20px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.nav-overlay .nav-links a.active {
  background: #3b82f6;
  color: white;
}

.nav-overlay .nav-links a:not(.active) {
  background: transparent;
  color: white;
}

.nav-overlay .nav-links a:not(.active):hover {
  background: #3b82f6;
  color: white;
}

/* Botones del overlay */
.nav-overlay .nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
}

.nav-overlay .discord-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 20px 25px;
  background: #5865F2;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
  box-sizing: border-box;
}

.nav-overlay .discord-btn:hover {
  background: #4752c4;
}

.discord-icon {
  font-size: 20px;
}

.nav-overlay .play-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 25px;
  background: #e9a11a;
  color: #7e3013;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
  box-sizing: border-box;
}

.nav-overlay .play-btn:hover {
  background: #e9a11a;
}

.nav-overlay .play-btn span {
  background: #e9a11a;
  color: #9a4d14;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: auto;
}

/* IMAGEN CENTRAL */
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ESTILOS DEL SLIDER (SWIPER) */
.hero-swiper {
  --swiper-theme-color: #ffffff;
  --swiper-navigation-size: 24px;
  position: relative;
  /* Necesario para el degradado absoluto */
}

/* Degradado puro negro en los 4 bordes como en la referencia de Minecraft */
.hero-swiper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* Superponemos 4 degradados: Arriba, Abajo, Izquierda, Derecha */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 15%),
    linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 25%),
    linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 20%),
    linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 20%);

  z-index: 10;
  /* Debe estar por encima de la imagen pero por debajo de los controles */
  pointer-events: none;
  /* Para no bloquear clics en las flechas y paginación */
}

/* Flechas de navegación (Diseño minimalista personalizado) */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: #fff;
  background: transparent;
  /* Quitamos el círculo y fondo */
  width: 40px;
  /* Reducimos el área interactiva */
  height: 40px;
  transition: all 0.3s ease;
  box-shadow: none;
  /* Quitamos la sombra de la caja */
  z-index: 20;
  /* Importante: por encima del degradado negro (que es z-index: 10) */
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: transparent;
  transform: scale(1.15);
  /* Efecto de agrandado sutil solo en la flecha */
  opacity: 0.8;
}

/* Achicamos y afinamos el grosor del icono de la flecha por defecto de Swiper para igualar la imagen */
.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 24px;
  /* Tamaño de la flecha blanca sola */
  font-weight: 900;
  /* Grosor de la flecha */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  /* Sombra suave para que resalte sobre fondos claros */
}

/* Círculos de paginación (dots) */
.hero-swiper .swiper-pagination {
  z-index: 20;
  /* Importante: por encima del degradado negro */
}

/* Círculos de paginación (dots) */
.hero-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 25px;
  border-radius: 5px;
}

/* NOTICIAS */
.news {
  text-align: center;
  padding: 40px 20px;
}

.news h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.news p {
  color: #ccc;
  margin-bottom: 30px;
}

.news-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto 40px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  min-height: 200px;
}

.news-card img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  margin: 15px;
}

.news-info {
  text-align: left;
  padding: 20px;
}

.news-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.news-info span {
  display: block;
  margin: 5px 0 10px 0;
  color: #fac93d;
  font-weight: 500;
}

.event {
  display: block;
  color: #00aaff;
  margin: 5px 0 15px;
}

.view-btn {
  background: #f39c12;
  color: #7f3013;
  font-weight: bold;
  border: none;
  padding: 14px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.view-btn:hover {
  background: #d98b0c;
}

/* SOCIAL */
.social {
  padding: 60px 20px;
  text-align: center;
  background: #000;
}

.social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.social-container img {
  width: 250px;
  max-width: 100%;
}

.social-text {
  max-width: 450px;
  text-align: left;
}

.social-text h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: white;
}

.social-text p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.discord-cta {
  background: #5865F2;
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.discord-cta:hover {
  background: #4752c4;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: #000;
}

.footer-box {
  background: #f39c12;
  border-radius: 10px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.footer-top {
  background: #e69500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
}

.footer-play {
  background: #d68910;
  color: #7e3013;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
}

.footer-play span {
  background: #d68910;
  color: #9a4d14;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 5px;
}

.footer-icons img {
  width: 24px;
  margin-left: 12px;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s;
}

.footer-icons img:hover {
  opacity: 1;
}

.footer-bottom {
  background: #f4b400;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
}

.footer-bottom img {
  width: 60px;
  height: auto;
}

.footer-bottom p {
  margin: 0;
  color: black;
  font-size: 15px;
}

.footer-bottom span {
  color: #6e2c00;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  /* Hacer el slider mucho más grande (alto) solo en celulares */
  .hero-swiper {
    min-height: 50vh;
    /* Ocupa al menos la mitad de la pantalla del celular */
  }

  .hero img {
    height: 50vh;
    /* Obliga a la imagen a ser alta */
    object-fit: cover;
    /* Asegura que la imagen llene el espacio sin deformarse */
    object-position: center;
    /* Mantiene el centro de la imagen visible */
  }

  .cart-floating-selector {
    top: auto;
    bottom: 0;
    right: 50%;
    width: 50%;
    height: 60px;
    border-radius: 0;
    box-shadow: 0 -4px 12px rgba(255, 42, 42, 0.3);
  }
  .currency-selector {
    top: auto;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 60px;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 -4px 12px rgba(59, 130, 246, 0.3);
  }

  .cart-floating-selector:hover {
    transform: none;
    box-shadow: 0 -4px 12px rgba(255, 42, 42, 0.3);
  }

  .currency-selector:hover {
    transform: none;
    box-shadow: 0 -4px 12px rgba(59, 130, 246, 0.3);
  }

  /* Padding to prevent footer overlap on mobile */
  body {
    padding-bottom: 60px;
  }

  .currency-display {
    gap: 6px;
  }

  .currency-symbol {
    font-size: 14px;
  }

  .currency-text {
    font-size: 11px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .navbar .nav-links,
  .navbar .nav-buttons {
    display: none;
  }

  .news {
    padding: 60px 20px;
  }

  .news-card {
    flex-direction: column;
    text-align: center;
    margin: 40px auto 40px;
    max-width: 95%;
  }

  .news-card img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 20px auto;
    display: block;
    border-radius: 15px;
  }

  .news-info {
    text-align: center;
    padding: 25px 20px;
  }

  .social-container {
    flex-direction: column;
    text-align: center;
  }

  .social-text {
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* FLOATING BUTTON */
.floating-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background-color: #3b82f6;
  /* Blue */
  color: white;
  padding: 30px 10px;
  border-radius: 8px 0 0 8px;
  /* Rounded corners on left */
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: default;
  transition: background-color 0.3s ease;
}

.floating-btn:hover {
  background-color: #2563eb;
}

@media (max-width: 768px) {
  .floating-btn {
    padding: 20px 8px;
    font-size: 14px;
  }
}

/* REFERENCIAS SIDEBAR */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.references-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 400px;
  /* Ancho para PC */
  background: #1a1a1a;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  border-left: 1px solid #333;
}

.references-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  background: #111;
}

.sidebar-header h2 {
  margin: 0;
  color: white;
  font-size: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.close-sidebar {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.close-sidebar:hover {
  color: white;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  /* Scroll propio para el sidebar */
  padding: 20px;
}

.sidebar-notice {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 4px;
}

.sidebar-notice p {
  margin: 0;
  color: #ccc;
  font-size: 14px;
}

/* Estilos para las imágenes de chat */
.chat-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: block;
}

.chat-placeholder {
  width: 100%;
  height: 200px;
  /* Altura simulada para el placeholder */
  background: #2a2a2a;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px dashed #444;
  color: #666;
  font-weight: bold;
}

/* Custom Scrollbar para el sidebar */
.sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: #111;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* RESPONSIVE PARA SIDEBAR */
@media (max-width: 768px) {
  .references-sidebar {
    width: 85%;
    /* Ancho para móvil como en la imagen */
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
}