/* ==========================================================================
   CONFIGURACIÓN BASE
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #111116; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px; 
    image-rendering: pixelated;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px; 
    pointer-events: none; 
    z-index: 9999;
}

.window-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   COMPONENTES RETRO & PANELES 3D
   ========================================================================== */

.panel-base {
    background-color: #22222E;
    border: 4px solid #000000;
    box-shadow: 
        inset 4px 4px 0px #3A3A4D,
        inset -4px -4px 0px #0D0D12;
}

.panel-neon {
    background-color: #0D0D12;
    border: 4px solid #000000;
    box-shadow: 
        inset 4px 4px 0px #22222E,
        inset -4px -4px 0px #000000;
}

.panel-naranja-neon {
    background-color: #FF6600;
    border: 4px solid #000000;
    box-shadow: 
        inset 4px 4px 0px #FF9933,
        inset -4px -4px 0px #993300;
}

/* ==========================================================================
   TIPOGRAFÍAS Y FUENTES
   ========================================================================== */

.titulo-neon, 
.titulo-blanco, 
.nostalgia-title, 
.titulo-juego-pixel, 
.subtitulo-pixel {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.titulo-neon { 
    font-size: 2.2rem; 
    color: #FF6600; 
    text-shadow: 4px 4px 0px #000000;
}

.titulo-blanco { 
    font-size: 1.5rem;
    color: #F1F1F1; 
    text-shadow: 3px 3px 0px #000000;
}

.nostalgia-title {
    font-size: 1rem;
    color: #000000; 
    text-shadow: 2px 2px 0px #FF9933;
}

.titulo-juego-pixel {
    font-size: 1.4rem; 
    color: #F1F1F1;
    line-height: 1.5;
}

.subtitulo-pixel {
    font-size: 1rem;
    color: #FF6600; 
    margin-bottom: 6px;
}

.texto-pixel-largo {
    font-family: 'Lucida Console', Monaco, monospace;
    font-size: 1.3rem;
    color: #F1F1F1;
    line-height: 1.5;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.boton-arcade {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1rem; 
    letter-spacing: 1px;
    color: #F1F1F1;
    background-color: #3A3A4D;
    border: 4px solid #000000; 
    padding: 12px 18px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 
        inset 4px 4px 0px #50506b,
        inset -4px -4px 0px #1a1a24;
    text-shadow: 2px 2px 0px #000000;
    transition: all 0.1s;
}

.boton-arcade:hover { 
    color: #000000; 
    background-color: #FF6600; 
    border-color: #000000;
    text-shadow: none;
}

.boton-arcade:active {
    box-shadow: 
        inset 4px 4px 0px #1a1a24,
        inset -4px -4px 0px #50506b;
}

.boton-flecha { 
    padding: 12px; 
    font-size: 1.4rem; 
}

.boton-ver-mas { 
    font-size: 0.8rem; 
    padding: 10px 18px; 
    margin-top: 0; 
}

/* ==========================================================================
   INPUTS Y FORMULARIOS
   ========================================================================== */

.input-pixel, 
.input-pixel-form {
    background-color: #0D0D12;
    border: 4px solid #000000;
    padding: 12px;
    font-family: 'Lucida Console', Monaco, monospace;
    color: #FF6600; 
    outline: none;
    box-shadow: inset 4px 4px 0px #000000;
    transition: all 0.3s ease;
}

.input-pixel { 
    font-size: 1.2rem; 
    width: 240px; 
}

.input-pixel-form { 
    font-size: 1.2rem; 
    width: 100%; 
}

.input-pixel:focus, 
.input-pixel-form:focus {
    background-color: #000000;
    border-color: #FF6600;
    box-shadow: 
        inset 2px 2px 5px rgba(255, 102, 0, 0.3), 
        0 0 10px rgba(255, 102, 0, 0.5);
}

/* ==========================================================================
   IMÁGENES Y SPRITES
   ========================================================================== */

.img-marco-pixel, 
.avatar-pixel {
    border: 4px solid #000000; 
    background-color: #0D0D12;
}

.img-marco-pixel { 
    object-fit: cover; 
    min-height: 40px; 
    min-width: 40px; 
}

.avatar-pixel { 
    width: 44px; 
    height: 44px; 
    flex-shrink: 0; 
    image-rendering: pixelated; 
}

.avatar-pixel-grande { 
    width: 64px; 
    height: 64px; 
    border: 4px solid #000000; 
    background-color: #0D0D12; 
    image-rendering: pixelated; 
    flex-shrink: 0; 
}

/* ==========================================================================
   CABECERA (HEADER)
   ========================================================================== */

header { 
    padding: 15px 20px 10px 20px; 
}

.header-top-bar {
    display: flex;
    align-items: center;
    gap: 30px; 
    width: 100%;
    margin-bottom: 15px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; 
}

.logo-img { 
    height: 70px; 
    width: auto; 
}

.sprites-area {
    display: flex;
    justify-content: space-evenly; 
    align-items: center;
    flex: 1; 
}

.sprite-flotante {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px #000000);
    transition: transform 0.2s ease;
}

.sprite-flotante:hover {
    transform: translateY(-5px);
}

/* NAVEGACIÓN */
.nav-retro { 
    padding: 12px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-links { 
    display: flex; 
    gap: 20px; 
    list-style: none; 
}

.nav-links a {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1rem; 
    color: #000000;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { 
    color: #ffffff; 
    text-shadow: 2px 2px 0px #000000; 
} 

/* ==========================================================================
   VISTA DE INICIO (INDEX)
   ========================================================================== */

.main-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.left-column { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    height: 100%; 
    min-height: 0; 
}

.right-column { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    overflow: hidden; 
}

/* PORTADA DEL MES */
.featured-month { 
    flex: 1; 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    padding: 15px; 
    min-height: 0; 
}

.featured-cover { 
    height: 100%; 
    max-height: 22vh; 
    width: auto; 
    object-fit: contain; 
    flex-shrink: 0; 
}

.featured-info { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    align-items: flex-start; 
}

/* CARRUSEL DE JUEGOS */
.carousel-section { 
    flex: 1.3; 
    display: flex; 
    flex-direction: column; 
    min-height: 0; 
}

.titulo-con-decoracion { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 1.3rem; 
    margin-bottom: 10px; 
    letter-spacing: 0; 
}

.pixel-bullet { 
    color: #FF6600; 
    text-shadow: 2px 2px 0px #000000; 
    font-size: 1.4rem; 
    flex-shrink: 0; 
}

.carousel-container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-grow: 1; 
    min-height: 0; 
}

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    width: 100%; 
    height: 100%; 
}

.game-card { 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    text-align: center; 
    background-color: #22222E;
    border: 4px solid #000000;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px); 
    border-color: #FF6600;
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.4); 
    cursor: pointer;
}

.card-img { 
    width: 100%; 
    height: 12vh; 
    margin-bottom: 5px; 
    object-fit: cover; 
}

.titulo-juego-chico { 
    font-size: 0.85rem; 
    color: #F1F1F1; 
    line-height: 1.5; 
    margin-top: 5px;
}

.stars { 
    color: #FFCC00; 
    font-size: 1.2rem; 
    text-shadow: 1px 1px 0px #000000; 
}

/* ==========================================================================
   COMUNIDAD & RINCON DE LA NOSTALGIA
   ========================================================================== */

.community-header { 
    padding: 15px 15px 8px 15px; 
    flex-shrink: 0; 
}

.community-header h2 { 
    font-size: 1.4rem; 
    margin-bottom: 4px; 
}

.nostalgia-corner { 
    margin: 10px 12px 12px 12px; 
    padding: 14px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    overflow: hidden; 
}

.comentarios-verticales { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    width: 100%; 
}

.comment-box { 
    padding: 10px; 
    width: 100%; 
    display: flex; 
    gap: 10px; 
}

.comment-text strong { 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 0.9rem; 
    font-weight: bold; 
    display: block; 
    margin-bottom: 5px; 
    color: #FF6600; 
}

.main-rincon { 
    display: grid; 
    grid-template-columns: 1fr 340px; 
    gap: 20px; 
    padding: 20px; 
    flex: 1; 
    min-height: 0; 
    overflow: hidden; 
}

.feed-rincon { 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    height: 100%; 
    min-height: 0; 
    justify-content: space-between;
}

.form-rincon { 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    height: 100%; 
    min-height: 0; 
}

.cabecera-rincon { 
    text-align: center; 
    margin-bottom: 15px; 
    flex-shrink: 0; 
    border-bottom: 4px solid #000000;
    padding-bottom: 10px;
}

.comentarios-lista { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    min-height: 0; 
    overflow: hidden; 
}

.post-retro { 
    display: flex; 
    gap: 15px; 
    padding: 15px; 
    flex: 1; 
    min-height: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    cursor: pointer;
}

.post-contenido { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    flex: 1; 
    min-height: 0;
}

.post-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px dashed #000000;
    padding-bottom: 5px; 
    flex-shrink: 0;
}

.post-user { 
    font-family: 'Courier New', Courier, monospace; 
    font-weight: bold; 
    color: #FF6600; 
    font-size: 1.2rem; 
}

.post-game { 
    font-family: 'Courier New', Courier, monospace; 
    font-weight: bold; 
    color: #F1F1F1; 
    font-size: 1rem; 
    background-color: #3A3A4D;
    padding: 4px 10px;
    border: 2px solid #000000;
}

.clamp-texto {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   CATÁLOGO DE JUEGOS & GALERÍA
   ========================================================================== */

.main-catalogo { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 20px; 
    padding: 20px; 
    flex: 1; 
    min-height: 0; 
    overflow: hidden; 
}

.sidebar-filtros { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    min-height: 0; 
}

.filtro-grupo { 
    margin-bottom: 15px; 
    width: 100%; 
    flex-shrink: 0; 
}

.boton-acordeon { 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background-color: #3A3A4D; 
    color: #F1F1F1; 
    font-size: 0.9rem; 
    padding: 12px; 
    margin-top: 0; 
    text-shadow: none; 
    font-weight: bold; 
    font-family: 'Courier New', monospace; 
    border: 4px solid #000000; 
    box-shadow: inset 4px 4px 0px #50506b; 
    cursor: pointer; 
}

.filtro-contenido { 
    margin-top: 5px; 
    padding: 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.checkbox-pixel { 
    width: 20px; 
    height: 20px; 
    margin-right: 8px; 
    accent-color: #FF6600; 
    cursor: pointer; 
}

.area-galeria { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 0; 
    padding: 20px; 
    gap: 10px; 
    overflow: hidden; 
}

.cabecera-catalogo { 
    text-align: center; 
    width: 100%; 
    flex-shrink: 0; 
}

.cards-grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    grid-template-rows: repeat(2, 1fr); 
    gap: 15px; 
    width: 100%; 
    flex: 1; 
    min-height: 0; 
}

.cards-grid-4 .game-card { 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 0; 
}

/* PAGINACIÓN */
.paginacion-retro { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    flex-shrink: 0; 
    margin-top: 5px; 
}

.btn-pagina-activa { 
    background-color: #FF6600; 
    color: #000000; 
    padding: 10px 14px; 
    text-shadow: none; 
    font-weight: bold; 
    font-family: 'Courier New', monospace; 
    border: 4px solid #000000; 
}

.numero-inactivo { 
    cursor: pointer; 
    padding: 5px 10px; 
    font-size: 1.1rem; 
    color: #F1F1F1; 
    font-weight: bold; 
    font-family: 'Courier New', monospace;
}

.numero-inactivo:hover { 
    color: #FF6600; 
}

/* ==========================================================================
   DESPLEGABLES
   ========================================================================== */

.caja-desplegable {
    margin-bottom: 20px;
    padding: 10px;
    cursor: pointer;
}

.titulo-desplegable {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #FFCC00;
    font-size: 1.1rem;
    list-style: none;
    outline: none;
    text-align: center;
}

.titulo-desplegable:hover {
    color: #FF6600;
}

.contenido-desplegable {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #50506b;
    text-align: left;
}

/* ==========================================================================
   SECCIÓN PRESERVACIÓN & ARTÍCULOS
   ========================================================================== */

.main-preservacion-nueva {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.seccion-articulos, 
.seccion-entrevistas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    min-height: 0;
}

.banner-titulo {
    padding: 12px;
    flex-shrink: 0;
}

.articulos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    padding: 15px;
    flex: 1;
    min-height: 0;
}

.articulo-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    min-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img-art {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 15px;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.titulo-centro {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.texto-articulo {
    flex: 1;
    min-height: 0;
    overflow: hidden; 
    text-align: center;
    margin-bottom: 15px;
}

.btn-centro {
    align-self: center;
    margin-top: auto;
}

/* ENTREVISTAS */
.entrevistas-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    flex: 1;
    min-height: 0;
    justify-content: space-between; 
}

.entrevista-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    min-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entrevista-info {
    display: flex;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

.entrevista-perfil {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
    flex-shrink: 0;
}

.entrevista-texto {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.clamp-texto-ent {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-derecha {
    align-self: flex-end; 
    margin-top: 10px;
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* ==========================================================================
   SOBRE NOSOTROS & CONTACTO
   ========================================================================== */

.main-nosotros-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    padding: 20px; 
    flex: 1; 
    min-height: 0; 
    overflow: hidden; 
}

.quienes-somos {
    display: flex;
    flex-direction: column;
    padding: 25px;
    height: 100%;
    min-height: 0;
}

.imagen-equipo-container {
    width: 100%;
    max-height: 35%; 
    display: flex;
    justify-content: center;
    margin: 15px 0;
    flex-shrink: 0;
}

.img-equipo {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    border: none; 
    background: none;
}

.texto-mision {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    flex: 1;
    min-height: 0;
    justify-content: center; 
    padding: 0 15px;
}

.contacto-columna {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
    min-height: 0;
}

.caja-formulario {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 20px;
}

.formulario-red {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.boton-centrado {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    flex-shrink: 0;
}

/* ==========================================================================
   TRANSICIONES, HOVER & ANIMACIONES
   ========================================================================== */

.articulo-card:hover, 
.entrevista-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 15px rgba(255, 102, 0, 0.4);
    cursor: pointer;
}

.articulo-card:hover .card-img-art, 
.entrevista-card:hover .avatar-pixel-grande {
    filter: brightness(1.15);
}

.post-retro.panel-neon:hover {
    transform: translateY(-5px) !important; 
    box-shadow: 0px 0px 25px rgba(255, 102, 0, 0.8) !important; 
    z-index: 10;
    cursor: pointer;
}

.post-retro:hover .avatar-pixel-grande {
    filter: brightness(1.3); 
}

.post-retro:hover {
    border-color: var(--neon-naranja);
    background-color: #2a2a3a;
    transform: scale(1.02) translateX(5px); 
    box-shadow: 
        inset 4px 4px 0px var(--panel-luz),
        -4px 4px 12px rgba(255, 102, 0, 0.4);
}

.post-retro:hover .avatar-pixel-grande {
    border-color: var(--neon-amarillo); 
    transform: rotate(-5deg);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.articulo-card:hover, 
.articulo-card:active,
.entrevista-card:hover, 
.entrevista-card:active {
    transform: translateY(-5px);
    box-shadow: 0px 8px 15px rgba(255, 102, 0, 0.5); 
}

.articulo-card:hover .card-img-art, 
.articulo-card:active .card-img-art,
.entrevista-card:hover .avatar-pixel-grande, 
.entrevista-card:active .avatar-pixel-grande {
    filter: brightness(1.15);
}

.post-retro:hover, 
.post-retro:active {
    background-color: #2a2a3a !important; 
    transform: scale(1.02) !important;
    box-shadow: 0px 0px 20px rgba(255, 102, 0, 0.7) !important; 
    z-index: 10;
}

.post-retro:hover .avatar-pixel-grande, 
.post-retro:active .avatar-pixel-grande {
    filter: brightness(1.3);
    transform: rotate(-5deg);
}

.game-card:hover, 
.game-card:active {
    transform: translateY(-5px);
    border-color: #FF6600 !important;
    box-shadow: 0 8px 16px rgba(255, 102, 0, 0.4) !important;
}

.articulo-card, 
.entrevista-card, 
.post-retro, 
.game-card, 
.avatar-pixel-grande, 
.card-img-art {
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out, filter 0.2s ease-in-out !important;
    -webkit-tap-highlight-color: transparent;
}

@keyframes aparecerModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   SISTEMA DE AUTENTICACIÓN & MODALES
   ========================================================================== */

.auth-area {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.btn-chico {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.boton-secundario {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.boton-secundario:hover {
    background-color: #ffffff;
    color: #000000;
}

.modal-oculto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    width: 90%;
    max-width: 400px;
    position: relative;
    padding: 30px;
    box-shadow: 0px 0px 20px rgba(255, 102, 0, 0.5);
}

.cerrar-modal {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    color: #ffffff !important;
    font-size: 1.1rem !important; 
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: inline-block !important;
    white-space: nowrap !important;
    padding: 6px 12px !important;        
    width: auto !important;               
    min-width: 55px !important;           
    line-height: 1 !important;           
    text-align: center !important;
}

.cerrar-modal:hover {
    color: #FF3333 !important;
}

.modal-contenido .input-pixel-form {
    margin-bottom: 15px !important;
    display: block;
    width: 100%;
}

#paso-verificacion .input-pixel-form {
    margin-top: 10px;
    margin-bottom: 5px !important;
}

.error-tooltip {
    position: absolute;
    background-color: #ffffff;
    color: #000000;
    padding: 8px 12px;
    border: 2px solid #000000;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
    margin-top: 10px;
}

.error-tooltip::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 10px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #000000;
}

.oculto {
    display: none !important;
}

/* ==========================================================================
   INTERACCIONES & COMENTARIOS INTERNOS
   ========================================================================== */

.interaccion-likes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #000000;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.lista-comentarios-internos {
    max-height: 180px;
    overflow-y: auto;
    background-color: #0D0D12;
    border: 4px solid #000000;
    box-shadow: inset 4px 4px 0px #000000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-comentario {
    border-bottom: 2px dashed #3A3A4D;
    padding-bottom: 4px;
}

.mini-comentario:last-child {
    border-bottom: none;
}

.modal-contenido-anecdota {
    width: 95%;              
    max-width: 650px;        
    position: relative;
    padding: 30px;           
    box-shadow: 0px 0px 25px rgba(255, 102, 0, 0.75);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: aparecerModal 0.2s ease-out;
}

.lista-comentarios-internos {
    max-height: 220px;       
    overflow-y: auto;
    background-color: #0D0D12;
    border: 4px solid #000000;
    box-shadow: inset 4px 4px 0px #000000;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interaccion-likes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 5px;
}

.mini-comentario {
    border-bottom: 2px dashed #3A3A4D;
    padding-bottom: 6px;
}

.mini-comentario:last-child {
    border-bottom: none;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.footer-retro { 
    padding: 12px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-shrink: 0; 
    z-index: 10; 
    position: relative; 
}

.footer-links { 
    display: flex; 
    gap: 20px; 
}

.footer-links a { 
    color: #F1F1F1; 
    font-size: 1.1rem; 
    text-decoration: none; 
}

.footer-links a:hover { 
    color: #FF6600; 
}

.social-area { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.texto-chico { 
    font-size: 1rem; 
    font-weight: bold; 
    font-family: 'Courier New', monospace; 
}

.redes-iconos { 
    display: flex; 
    gap: 10px; 
}

.icono-pixel-redes { 
    width: 34px; 
    height: 34px; 
    image-rendering: pixelated; 
    background-color: #22222E; 
    border: 4px solid #000000; 
}

/* ==========================================================================
   MEDIA QUERIES (TABLETS Y SMARTPHONES)
   ========================================================================== */

@media screen and (min-width: 601px) and (max-width: 1024px) {
    .main-content, 
    .main-catalogo, 
    .main-rincon, 
    .main-preservacion-nueva, 
    .main-nosotros-grid {
        grid-template-columns: 1fr !important;
    }
    
    .nav-links a {
        font-size: 12px; 
        padding: 5px 8px; 
    }

    .contenedor-contenido {
        display: flex;
        flex-direction: column; 
        width: 90%; 
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body, 
    .window-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto; 
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .main-content, 
    .main-catalogo, 
    .main-rincon, 
    .main-preservacion-nueva, 
    .main-nosotros-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: hidden; 
        gap: 20px;
        padding: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-catalogo {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
        padding: 10px !important;
    }

    .carousel-container > .boton-flecha {
        display: none !important;
    }

    .nostalgia-corner {
        margin: 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px !important;
    }

    .comentarios-verticales, 
    .comment-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .left-column, 
    .right-column, 
    .sidebar-filtros, 
    .area-galeria,
    .feed-rincon, 
    .form-rincon, 
    .seccion-articulos, 
    .seccion-entrevistas,
    .quienes-somos, 
    .contacto-columna, 
    .panel-base, 
    .panel-neon, 
    .panel-naranja-neon {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: auto;
        box-sizing: border-box;
        padding: 15px;
    }

    .area-galeria {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        padding: 15px !important;
    }

    .texto-pixel-largo, 
    .texto-mision p {
        font-size: 1.1rem;
        word-wrap: break-word;
        white-space: normal;
    }

    .sidebar-filtros, 
    .caja-formulario, 
    .formulario-red {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .input-pixel, 
    .input-pixel-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .articulos-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100%;
        padding: 0;
    }

    .articulo-card {
        width: 100% !important;
        box-sizing: border-box;
    }

    .header-top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
    }
    
    .sprites-area { 
        display: none; 
    }
    
    .nav-retro {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0;
    }

    .featured-month {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        height: auto !important;
        padding: 20px !important;
    }

    .featured-cover {
        width: 100% !important;
        max-width: 240px !important;
        height: auto !important;
        max-height: none !important;
        margin-bottom: 15px !important;
    }

    .featured-info {
        width: 100% !important;
        align-items: center !important;
    }

    .featured-info p {
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .carousel-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        display: flex !important;
        padding: 10px 5px !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .cards-grid {
        display: flex !important;
        flex-direction: row !important;
        grid-template-columns: none !important;
        gap: 15px !important;
        width: max-content !important;
    }

    .carousel-container .game-card {
        width: 160px !important; 
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    .carousel-container .card-img {
        height: 110px !important;
        object-fit: cover !important;
    }

    .cards-grid-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important; 
        gap: 20px !important; 
        width: 100% !important;
        height: auto !important;
    }

    .cards-grid-4 .game-card {
        width: 100% !important;
        height: auto !important;
        min-height: 220px !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    .cards-grid-4 .card-img {
        width: 100% !important;
        height: 110px !important; 
        object-fit: cover !important;
        margin-bottom: 8px !important;
    }

    .cards-grid-4 .titulo-juego-chico {
        font-size: 0.9rem !important;
        margin: 4px 0 !important;
        line-height: 1.2 !important;
    }

    .footer-retro {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
        margin: 20px 0 0 0;
        box-sizing: border-box;
    }
}