/* Reseteo básico y configuración de la pantalla */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000;
    color: white;
    overflow: hidden; /* Evita el scroll clásico, lo haremos tipo consola */
}

/* El fondo dinámico que ocupa toda la pantalla */
.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.4s ease-in-out; /* Transición suave del fondo */
    opacity: 0.5; /* Oscurecemos un poco para que el texto resalte */
    z-index: 1;
}

/* El contenedor principal de la interfaz */
.ps5-interface {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Manda todo hacia abajo */
    padding: 50px;
    box-sizing: border-box;
}

/* Panel de información (Título y descripción) */
.info-container {
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* Sombra para que se lea en cualquier fondo */
}

.info-container h1 {
    font-size: 3rem;
    margin: 0 0 10px 0;
}

.info-container p {
    font-size: 1.2rem;
    margin: 0;
    max-width: 600px;
}

/* Carrusel de las Cards */
.cards-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Diseño individual de cada Card */
.card {
    width: 120px;
    height: 120px;
    background-color: #333;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

/* El efecto al pasar el ratón (Hover) o seleccionarlo */
.card:hover, .card.active {
    transform: scale(1.15) translateY(-10px); /* Crece y sube un poco */
    border-color: white; /* Borde blanco estilo PS5 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* Controles de paginación */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.pagination-controls button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.2s;
}

.pagination-controls button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Diseño Responsivo (Móviles y Tablets) */
@media (max-width: 768px) {
    .ps5-interface { padding: 20px; }
    .info-container h1 { font-size: 2rem; }
    .card { width: 90px; height: 90px; }
    .cards-container { overflow-x: auto; padding-bottom: 20px; } /* Permite deslizar con el dedo */
}