/* Reset global de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo de pantalla adaptable con textura de madera */
body {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../assets/img/hercom-games-fondo.webp') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;

    /* REESCALADO CRUJIENTE PARA EL FONDO: Evita que el pixel art se vea borroso */
    image-rendering: -moz-crisp-edges; /* Firefox antiguo */
    image-rendering: -o-crisp-edges;   /* Opera antiguo */
    image-rendering: -webkit-optimize-contrast; /* Safari / Chrome */
    image-rendering: crisp-edges;
    image-rendering: pixelated;        /* Estándar moderno */
}

/* Contenedor central de la landing page */
.container {
    text-align: center;
    padding: 24px;
    width: 100%;
}

/* Diseño adaptable y animación del logo transparente */
.logo {
    /* Ajusta el tamaño en pantallas grandes para que luzca imponente */
    max-width: 500px; 
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    
    /* REESCALADO CRUJIENTE PARA EL LOGO: Píxeles perfectos y definidos */
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;

    /* Animación fluida de entrada al cargar la página */
    animation: fadeInScale 1.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

/* Ocultación técnica recomendada por Google (Legible para SEO, invisible para usuarios) */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Definición de la animación de carga */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
