@font-face {
  font-family: 'Princeps';
  src: url("../fonts/OptimusPrinceps.ttf") format("truetype");
}

/* --- ESTRUCTURA BASE --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url('fondo.png') center fixed;
  background-size: 100%;
  background-repeat: no-repeat;
  background-color: #0f0a05;
  image-rendering: pixelated;
  color: #fff;
  font-family: 'Princeps', serif;
  overflow-x: hidden;
}

/* --- PANEL CENTRAL --- */
.content-box {
  background: rgba(255, 255, 230, 0.75);
  color: #000;
  padding: 10px 15px;
  border-radius: 5px;
  width: 65%;
  max-width: 600px;
  text-align: center;
  border: 2px solid #a02c2c;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  margin: 40px auto 0 auto;
}

/* --- TÍTULO PRINCIPAL --- */
.content-box h1 {
  font-family: 'Princeps', serif;
  background: linear-gradient(180deg, #c42d2d 0%, #8b0f0f 80%);
  border: 2px solid #e7d6a3;
  border-radius: 6px;
  padding: 12px;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 32px;
  color: #fff8dc;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.3),
              inset 0 -2px 4px rgba(0, 0, 0, 0.6),
              0 0 8px rgba(0, 0, 0, 0.5);
  text-shadow: 2px 2px 6px #000;
  position: relative;
  overflow: hidden;
}
/* --- GALLERY CARD (esquina superior izquierda) --- */
.gallery-card {
  position: fixed;
  top: 20px;
  left: 25px;
  z-index: 99;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #e7d6a3;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  overflow: hidden;
  width: 170px;
  height: 110px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: pulseGlow 3s infinite;
}
/* --- TERMS PAGE STYLE --- */
.content-box.terms {
  text-align: left; /* 🔹 texto alineado a la izquierda */
  line-height: 1.8;
  padding: 20px 30px;
}

.content-box.terms p {
  margin-bottom: 15px;
  text-align: justify; /* 🔹 justifica el texto si quieres estilo documento */
  color: #111;
}
.gallery-card:hover {
  transform: scale(1.1);
}
/* --- BOTÓN DE VOLVER --- */
.back-home {
  background: linear-gradient(to bottom, #4a4aff, #1b1ba3);
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Princeps', serif;
  width: 200px;
  margin: 30px auto 10px auto;
  text-align: center;
}

.back-home:hover {
  transform: scale(1.05);
}
.download-buttons,
.below-buttons.inside-box {
  margin-top: 50px; /* 🔹 Aumenta el valor para bajarlos más */
}
.back-home h2 {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px #000;
}

.gallery-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}
.gallery-card {
  width: 240px;
  height: 150px;
}
.gallery-card img {
  height: 115px;
}
.gallery-title {
  background: linear-gradient(180deg, #2c2c2c, #1a1a1a);
  color: #ffd700;
  font-size: 14px;
  padding: 5px 0;
  font-family: 'Princeps', serif;
  border-top: 1px solid #e7d6a3;
  text-shadow: 1px 1px 2px #000;
}

.content-box h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -80%; }
  60% { left: 130%; }
  100% { left: 130%; }
}

/* --- TEXTO CENTRAL --- */
.content-box p {
  font-size: 17px;
  line-height: 1.6;
  color: #111;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.5);
  margin: 6px 0;
}

/* --- BOTONES GENÉRICOS --- */
.below-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 10px auto 40px auto;
}

.card {
  width: 150px;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Princeps', serif;
}

.card:hover {
  transform: scale(1.05);
}

.card h2 {
  margin: 0;
  padding: 10px 0;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px #000;
}

.discord {
  background: linear-gradient(to bottom, #3333ff, #1b1ba3);
}
.windows {
  background: linear-gradient(to bottom, #4a4aff, #1b1ba3);
}
.android {
  background: linear-gradient(to bottom, #4aff4a, #1d7a1d);
}

/* --- FOOTER --- */
footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  text-align: center;
  padding: 8px 5px;
  color: #ccc;
  font-size: 13px;
  font-family: 'Princeps', serif;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 50;
}

footer a {
  color: #f5d97e;
  text-decoration: none;
  transition: 0.2s;
}

footer a:hover {
  text-decoration: underline;
  color: #fff8dc;
}

/* --- STATUS CARD --- */
.status-card {
  background: linear-gradient(180deg, #2c2c2c, #1a1a1a);
  color: #fff8dc;
  border: 2px solid #e7d6a3;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 18px;
  font-family: 'Princeps', serif;
  text-shadow: 2px 2px 3px #000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  display: inline-block;
  position: fixed;
  z-index: 100;
  top: 20px;
  right: 25px;
  animation: pulseGlow 3s infinite;
}

#online-count {
  color: #ffd700;
  font-weight: bold;
}

/* --- DOWNLOAD BOX --- */
.download-box {
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  border: 2px solid #e7d6a3;
  border-radius: 5px;
  padding: 12px 15px;
  margin: -10px auto 10px auto; /* 🔹 subido */
  width: fit-content;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.25);
  animation: pulseGlow 3s infinite;
}

.download-box h3 {
  margin: 0;
  color: #ffd700;
  font-size: 22px;
  text-shadow: 2px 2px 4px #000;
  letter-spacing: 2px;
}

.download-box p {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 14px;
  text-shadow: 1px 1px 3px #000;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* --- DISCORD BUTTON (flotante bajo el contador) --- */
.discord-floating {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 99;
  background: linear-gradient(to bottom, #4a4aff, #1b1ba3);
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Princeps', serif;
  width: 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.discord-floating:hover {
  transform: scale(1.05);
}

.discord-floating h2 {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px #000;
}

.discord-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  filter: drop-shadow(1px 1px 2px #000);
  image-rendering: pixelated;
}

/* --- EFECTO BRILLO --- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 150, 0.8); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .content-box { width: 85%; padding: 20px; }
  .content-box h1 { font-size: 28px; }
  .content-box p { font-size: 15px; }
  .card { width: 130px; }
}

@media (max-width: 768px) {
  .content-box { width: 90%; padding: 15px; }
  .content-box h1 { font-size: 24px; }
  .content-box p { font-size: 14px; }
  .below-buttons { gap: 15px; }
  footer { font-size: 11px; }
}

@media (max-width: 480px) {
  .content-box { width: 95%; padding: 12px; }
  .content-box h1 { font-size: 20px; letter-spacing: 1px; }
  .content-box p { font-size: 13px; line-height: 1.4; }
  .download-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .card { width: 140px; }
  footer { font-size: 10px; padding: 6px 2px; }
}

@media (max-height: 750px) {
  .content-box { margin: 30px auto; }
  .below-buttons { margin-bottom: 20px; }
}
