/* =========================================
   ESTILOS ESPECÍFICOS - ZOMBIE CITY
   ========================================= */

/* Contenedor Hero Principal */
header.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 50px 0;
}

/* Video de fondo mejorado */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

/* El Personaje Zombi */
.zombie-float {
    max-width: 100%;
    height: auto;
    animation: floating 3s ease-in-out infinite;
    /* Eliminamos los márgenes negativos que causaban el corte */
}

/* Ajuste del Logo del Juego */
.game-logo {
    max-width: 350px;
    width: 100%;
    margin-bottom: 20px;
    display: block;
}

/* FIX: Icono de Google Play */
.btn-google-play img {
    width: 200px;
    height: auto;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.btn-google-play:hover img {
    transform: scale(1.05);
}

/* Animación */
@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* =========================================
   RESPONSIVE - MEDIA QUERIES
   ========================================= */

/* Pantallas Grandes (1920x1080) */
@media (min-width: 1400px) {
    .zombie-float {
        transform: scale(1.2); /* Lo hacemos un poco más grande sin romper el layout */
    }
}

/* Tablets y Laptops pequeñas */
@media (max-width: 991px) {
    header.hero {
        text-align: center;
    }
    
    .game-logo {
        margin: 0 auto 20px auto;
    }

    .project-description {
        margin: 0 auto;
        text-align: center !important;
    }

    .parrafo3 {
        text-align: center !important;
    }
}

/* Celulares */
@media (max-width: 576px) {
    header.hero {
        padding-top: 80px;
    }

    .zombie-float {
        max-width: 80%;
        margin-bottom: 20px;
    }

    .game-logo {
        max-width: 240px;
    }

    .btn-google-play img {
        width: 180px;
    }
}


/* Usamos el ID del body como selector principal */
#zombie-city-page {
    background-color: #000;
    overflow-x: hidden;
}

#zombie-city-page .hero {
    position: relative;
    /* Quitamos display:flex que causa el amontonamiento en móvil */
    display: block; 
    min-height: 100vh;
    width: 100%;
    /* Añadimos padding para que el contenido respire y no se corte */
    padding: 120px 0 80px 0; 
}

/* Video de fondo que se adapta siempre */
#zombie-city-page .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
    opacity: 0.5;
}

#zombie-city-page .hero-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8));
    z-index: -1;
}

/* Imagen del Zombi con animación */
#zombie-city-page .zombie-float {
    max-width: 100%;
    height: auto;
    animation: floatingZ 3s ease-in-out infinite;
}

/* Logo y Texto */
#zombie-city-page .game-logo {
    max-width: 320px;
    width: 90%;
    margin-bottom: 20px;
}

#zombie-city-page .game-subtitle {
    color: #ff9900;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#zombie-city-page .description-text {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

#zombie-city-page .btn-google-play img {
    width: 200px;
    transition: transform 0.3s;
}

#zombie-city-page .btn-google-play:hover img {
    transform: scale(1.05);
}

/* Animación */
@keyframes floatingZ {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- MEDIA QUERY PARA MÓVIL --- */
@media (max-width: 991px) {
    #zombie-city-page .hero {
        padding-top: 100px; /* Espacio para la navbar */
        height: auto; /* IMPORTANTE: Permite que la sección crezca con el texto */
    }

    #zombie-city-page .zombie-float {
        max-width: 200px; /* Tamaño más pequeño para que no empuje tanto el texto */
        margin-bottom: 20px;
    }

    #zombie-city-page .game-logo {
        max-width: 220px;
        margin: 0 auto 15px auto;
    }

    #zombie-city-page .description-text {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    #zombie-city-page .btn-google-play img {
        width: 180px; /* Ajuste de tamaño para el badge */
        display: block;
        margin: 0 auto;
    }
}

/* --- AJUSTE PARA PC (1920x1080) --- */
@media (min-width: 992px) {
    #zombie-city-page .hero {
        display: flex;
        align-items: center;
    }
}