/* =========================
   FUENTES
========================= */
@font-face {
    font-family: "Flood Std";
    src: url("fuentes/Flood Std Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* =========================
   RESET Y BODY
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: black;
    color: #fff;
    font-family: "Flood Std", sans-serif;
    text-align: center;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   BARRA INVISIBLE Y BOTONES
========================= */
.barra-invisible {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    flex-wrap: wrap;
}

.barra-invisible .izquierda,
.barra-invisible .derecha {
    display: flex;
    gap: 10px;
    align-items: center;
}

.barra-invisible button {
    background-color: #111;
    color: #eaeaea;
    border: 1px solid #333;
    padding: 6px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.barra-invisible button:hover,
button:focus,
button:focus-visible {
    outline: none !important;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    background-color: #00ff00;
    color: #000;
}

.barra-invisible button:hover {
    transform: translateY(-3px);
    border-color: #888;
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

.barra-invisible button:active { transform: translateY(0); }

#vip:hover { background-color: gold; }

/* =========================
   BUSCADOR
========================= */
#buscador {
    background-color: #111;
    color: white;
    border: 2px solid #00ff00;
    border-radius: 6px;
    padding: 6px 12px;
}

#buscador:focus {
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    outline: none;
}

/* =========================
   MENU Y SUBMENU
========================= */
.menu { position: relative; display: flex; }

.menu button { padding: 6px 20px; }

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.menu:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.submenu a {
    display: block;
    padding: 8px;
    color: #ccc;
    text-decoration: none;
    text-align: center;
}

.submenu a:hover { background: #222; color: #fff; }

/* =========================
   LAYOUT GENERAL
========================= */
.layout { display: flex; flex-wrap: wrap; flex: 1; }

.ads-left, .ads-right {
    width: 200px;
    background: #111;
    min-height: 100vh;
}

.contenido {
    flex: 1;
    padding: 20px;
    text-align: center;
}

/* =========================
   ANUNCIOS LATERALES RESPONSIVE
========================= */
/* Portátiles y tablets grandes (menos de 1024px) */
@media (max-width: 1024px) {
    .layout {
        flex-direction: column; /* apila todo verticalmente */
        align-items: center;
    }

    .ads-left, .ads-right {
        width: 90%;          /* ocupan casi todo el ancho */
        min-height: auto;    /* altura automática */
        margin: 10px 0;      /* separación */
    }

    .contenido {
        width: 90%;          /* contenido centrado */
        padding: 10px;
    }
}

/* Móviles pequeños (menos de 480px) */
@media (max-width: 480px) {
    .ads-left, .ads-right {
        width: 100%;         /* anuncios ocupan todo el ancho */
        min-height: auto;
        margin: 5px 0;
    }

    .contenido {
        width: 100%;
        padding: 5px;
    }
}

/* =========================
   IMAGEN CENTRAL
========================= */
#imagen {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

#imagen.loaded {
    opacity: 1;
    transform: scale(1);
}

.imagen-central {
    display: block;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
    will-change: transform;
}

.imagen-central:hover {
    transform: scale(1.05);
    box-shadow: none;
}

@media (max-width: 1024px) { .imagen-central { max-width: 450px; } }
@media (max-width: 768px)  { .imagen-central { max-width: 350px; } }
@media (max-width: 480px)  { .imagen-central { max-width: 250px; } }

/* =========================
   TARJETAS DE JUEGOS
========================= */
.game-card {
    display: inline-block;
    width: 220px;
    margin: 15px;
    background: #111;
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    display: block;
}

.game-card p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #00ff00, 0 0 25px #00ff00, 0 0 50px #00ff00;
}

.game-card:active {
    box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
}

/* =========================
   CONTENEDORES DE JUEGO
========================= */
.game-container {
    text-align: center;
    margin-top: 120px;
}

.game-box {
    background: #0a0a0a;
    border: 2px solid #00ff00;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 0 20px #00ff00;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-box img {
    width: 250px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px #00ff00;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-box img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ff00;
}

.game-box p { color: #ccc; margin: 20px 0; }

.game-link { text-decoration: none; color: inherit; }
.game-link p { text-decoration: none; color: inherit; }

.info { text-align: left; margin-top: 20px; }
.info ul { padding-left: 20px; }
.info li { margin: 8px 0; }

.btn-descarga {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: #00ff00;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-descarga:hover {
    background: #00cc00;
    box-shadow: 0 0 15px #00ff00;
}

/* =========================
   PAGINACIÓN
========================= */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    width: 100%;
}

.paginacion a {
    color: white;
    padding: 10px 15px;
    margin: 5px;
    text-decoration: none;
    border: 1px solid #333;
    background-color: #111;
    border-radius: 5px;
    transition: 0.3s;
}

.paginacion a:hover,
.paginacion a.activo {
    background-color: #00ffff;
    color: black;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: #fff;
    padding: 30px 0;
    border-top: 1px solid #222;
    margin-top: auto; /* fuerza que se vaya al fondo */
}

.footer-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-left { max-width: 300px; }
.footer-column { min-width: 150px; }

.footer-left h2 { margin-bottom: 10px; text-align: left;  }

.footer-left p { margin: 15px 0; }

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.socials a {
    width: 40px;
    height: 40px;
}

.socials a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.socials img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.footer-column h3 { margin-bottom: 50px; color: #00CC66; }
.footer-column a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin: 6px 0;
}

.footer-column a:hover { color: #00CC66; }

.newsletter { display: flex; margin-top: 10px; gap: 5px; }
.newsletter input {
    flex: 1;
    padding: 8px;
    background: #111;
    border: 1px solid #333;
    color: white;
}
.newsletter button { background: #00CC66; border: none; padding: 8px 12px; cursor: pointer; }

.footer-bottom { text-align: center; margin-top: 30px; font-size: 14px; color: #aaa; }

.lazy-img { opacity: 0; transition: opacity 0.3s ease; }
.lazy-img.loaded { opacity: 1; }

.game-card { min-height: 320px; }

.footer-left { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-left p { max-width: 400px; margin: 10px 0 20px; }

.plataforma { color:#00ffcc; font-weight:bold; }

.newsletter {
  margin-top: 10px;
  width: 100%;
  max-width: 500px;
}

.footer-column:last-child {
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centra todo horizontalmente */
  text-align: center;  /* 🔥 centra el texto */
}



.form-message {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #aaa;
  min-height: 16px;
}

