/* ========================================================
   ===== GLOBAL STYLES =====
   ======================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  cursor: url("img/minecraft-cursor.png"), auto;
}

/* FUENTE GLOBAL */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div, button {
  font-family: 'Press Start 2P', cursive;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: url("img/Fondo.png") no-repeat center center fixed;
  background-size: cover;
  color: #f5f5f5;
  line-height: 1.6;
  position: relative; /* necesario para el pseudo-elemento */
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 0, 62, 0.01); /* tu overlay */
  z-index: 0; /* detrás del contenido */
  pointer-events: none; /* permite que los clics pasen a los elementos de arriba */
}



:root {
  --purple: #9b59b6;
  --dark-purple: #2c003e;
  --light-purple: #d8b4ff;
  --pink: #ff6ec7;
  --gold: #ffd700;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================================
   ===== HEADER =====
   ======================================================== */
.main-header {
  background-color: var(--dark-purple);
  padding: 25px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header h1 {
  color: var(--gold);
  font-size: 1.8rem;
}

.main-header h1 a {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  font-size: 0.8rem;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--light-purple);
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: var(--pink);
  text-shadow: 0 0 5px var(--pink);
}

.main-header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(44, 0, 62, 0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 1000;
}

/* ========================================================
   ===== HERO SECTION =====
   ======================================================== */
.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: url("img/fondoprysmania.png") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Difuminado solo abajo */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}


.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px); /* difumina la imagen de fondo */
  z-index: 0; /* atrás de tu contenido */
}

.hero * {
  position: relative;
  z-index: 1; /* contenido encima del blur */
}


#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 999;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 10px;
}

.hero-content h2 {
  font-weight: 900;
  font-size: 1.4rem;
  color: #ffffff;
  text-shadow: 6px 6px 0 #000, 0 0 10px #8c00ff, 0 0 20px #b446f0;
  animation: glow 0.7s infinite alternate, float 3s ease-in-out infinite alternate;
}

/* Fix: IP siempre visible */
.hero-ip {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

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

@keyframes glow {
  0% { text-shadow: 2px 2px 0 #000, 0 0 10px #8c00ff, 0 0 20px #b446f0; }
  100% { text-shadow: 2px 2px 0 #000, 0 0 15px #ff6ec7, 0 0 25px #ffd700; }
}

.hero-buttons {
  display: flex;
  gap: 25px;
}

.hero-content .btn {
  display: inline-block;
  width: 180px;
  padding: 15px 0;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  border: 2px solid var(--gold);
  background-color: var(--gold);
  color: #2c003e;
  box-shadow: 3px 3px 0 var(--pink);
  transition: all 0.3s ease;
  text-decoration: none;
  outline: none;
}

.hero-content .btn:hover {
  transform: scale(1.05) rotate(-1deg);
  background-color: var(--light-purple);
  box-shadow: 5px 5px 0 var(--pink);
}

/* ========================================================
   ===== FEATURES SECTION =====
   ======================================================== */

.features h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}

.cards, .cards2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ========================================================
   ===== CARD MODALIDADES =====
   ======================================================== */

.card {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 300px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  cursor: pointer;
  z-index: 1;
  font-size: 0.8rem; /* tamaño base */
}

.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 0, 62, 0.6);
  z-index: -1;
}

.card h3 {
  font-size: 1rem; /* título manual */
  margin: 5px 0;
  color: #daadff;
}

.card p {
  font-size: 0.8rem; /* párrafo manual */
  line-height: 1;
  margin: 5px 0;
  color: #f2e3ff;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(6px) brightness(0.6);
}

.card.lobby::before { background-image: url("img/lobby.png"); }
.card.survival::before { background-image: url("img/survival.png"); }
.card.skyblock::before { background-image: url("img/skyblock.png"); }

/* ========================================================
   ===== CARD STAFF =====
   ======================================================== */
.staff-section {
  text-align: center;
  margin-top: 100px;
  position: relative;
}

.staff-section h2 {
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000, 0 0 10px var(--pink);
  margin-bottom: 40px;
  animation: glowTitle 2s infinite alternate;
}

@keyframes glowTitle {
  from { text-shadow: 2px 2px 0 #000, 0 0 10px var(--pink); }
  to { text-shadow: 2px 2px 0 #000, 0 0 15px var(--gold); }
}

/* Contenedor de staff en una sola fila sin scroll */
.cards2 {
  display: flex;
  justify-content: center; /* centra todo el grupo */
  align-items: flex-start;
  flex-wrap: nowrap; /* todos en una sola fila */
  gap: 40px;
  padding-bottom: 20px;
  overflow: visible; /* 🔥 sin scroll horizontal */
}

/* Tarjeta individual */
.staff-card {
  position: relative;
  width: 260px;
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  flex-shrink: 0; /* evita que se achiquen */
}

.staff-card:hover {
  transform: translateY(-10px) scale(1.05);
  filter: brightness(1.15);
}

/* Imagen base */
.card2 {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border: 3px solid var(--dark-purple);
  transition: all 0.3s ease;
}

.card2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  filter: brightness(0.9);
  z-index: 0;
  transition: all 0.3s ease;
}

.staff-card:hover .card2::before {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Nombre */
.staff-card h3 {
  margin-top: 10px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  font-size: 0.9rem;
}

/* Rol */
.staff-card .role {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
}

/* Colores de roles */
.staff-card.owner .role {
  color: #ff3838;
  text-shadow: 0 0 8px #ff3838, 1px 1px 0 #000;
}

.staff-card.submod .role {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff3838, 1px 1px 0 #000;
}


.staff-card.moderator .role {
  color: #7b42ff;
  text-shadow: 0 0 8px #a46cff, 1px 1px 0 #000;
}

.staff-card.helper .role {
  color: #ffe600;
  text-shadow: 0 0 8px #ffe600, 1px 1px 0 #000;
}

/* Animación de aparición */
.staff-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.staff-card:nth-child(1) { animation-delay: 0.2s; }
.staff-card:nth-child(2) { animation-delay: 0.4s; }
.staff-card:nth-child(3) { animation-delay: 0.6s; }
.staff-card:nth-child(4) { animation-delay: 0.8s; }
.staff-card:nth-child(5) { animation-delay: 1s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Imágenes específicas ===== */
.card2.itsarchi_::before { background-image: url("img/ItsArchi_.png"); }
.card2.kiratohv76::before { background-image: url("img/KiratohV76.png"); }
.card2.BUNK00::before { background-image: url("img/BUNK00.png"); }
.card2.humita4385::before { background-image: url("img/Humita4385.png"); }
.card2.FerN0s::before { background-image: url("img/fer.png"); }


/* ========================================================
   ===== CARD HOVER EFFECTS =====
   ======================================================== */
.card:hover {
  transform: translateY(-5px) scale(1.03) rotate(-1deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card2:hover {
  box-shadow: 0 0px 0px rgba(0,0,0,0);
}

/* ========================================================
   ===== CARD TEXT STYLES =====
   ======================================================== */
.card .emoji { font-size: 2.5rem; margin-bottom: 10px; }
.card h3 { margin: 5px 0; }
.card p, .card ul li { font-size: 0.9rem; margin: 3px 0; }

.help-text {
  text-align: center;
  font-size: 0.9rem;
  color: #c8b0ff;
  text-shadow: 0 0 8px #a46cff, 1px 1px 0 #000;
  margin-top: 60px;
  margin-bottom: 90px; /* espacio extra al footer */
  line-height: 1.5;
}



/* ========================================================
   ===== FOOTER =====
   ======================================================== */
footer {
  background-color: var(--dark-purple); /* mismo color que el nav */
  color: #daadff; /* puedes ajustarlo si quieres que contraste */
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

footer::before {
  content: none; /* eliminamos el overlay de la imagen y blur */
}


/* ========================================================
   ===== VISIBILITY ANIMATIONS =====
   ======================================================== */
.card, .hero h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* ========================================================
   ===== MEDIA QUERIES =====
   ======================================================== */
@media (max-width: 980px) {
  .cards { flex-wrap: wrap; justify-content: center; }
  .hero-content .btn { width: 45%; }
  .hero-buttons { flex-direction: column; gap: 10px; }
}
