/* style.css */

/* Fondo con gradiente animado */
body {
    margin: 0;
    font-family: sans-serif;
    min-height: 100vh;
    background: linear-gradient(45deg, #020024, #090979, #00d4ff, #090979);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navegación Glassmorphism */
.menu-flotante {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, .15);  
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 45px;
    z-index: 100;
    padding: 5px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.menu-flotante a {
    text-decoration: none;
    color: rgb(158, 233, 233);
    padding: 10px 20px;
    transition: all 0.4s ease-in-out;
}

.menu-flotante a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 45px;
}

/* Contenedor principal */
.alir {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 120px 20px;
    align-items: center;
    min-height: 100vh;
}

/* Filas para los esquemas tácticos */
.fila {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* Card del Jugador */
.manual {
    width: 150px;
    height: 180px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.manual:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 255, 0.1);
}

.manual img {
    width: 90%;
    max-height: 91%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
    transition: height 0.3s ease;
}

.info-jugador {
    display: none;
    font-size: 0.8rem;
    color: aqua;
    margin-top: 5px;
}

.manual:focus {
    height: 220px;
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5);
    outline: 1px solid aqua;
}

.manual:focus .info-jugador { display: block; }
.manual:focus img { 
    width: 90%;
    height: 150px;
     }

/* --- ESTILOS DEL BUSCADOR --- */
.input-glass {
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: 1px solid rgba(255, 255, 255, 0.2);
    border: 0;
    border-radius: 45px;
    padding: 10px 15px;
    color: white;
    outline: none;
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s ease;
}

.input-glass:focus {
    background: transparent;
    border-color: aqua;
    box-shadow: 0 0 15px#00ffff;
    width: 300px;
}

.input-glass::placeholder { color: rgba(255, 255, 255, 0.5); }

.pe {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.5;
    text-align: center;
}
.pee{
    display: flex;
    justify-content: center;
}

/* Botones y buscador */
.contenedor-buscador {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.caja-busqueda {
    display: flex;
    gap: 15px;
    background-color: rgba(255, 255, 255, .15);  
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 45px;
    outline: 1px solid rgba(255, 255, 255, 0.1);
}

.boton-busqueda {
    border: 0;
    border-radius: 45px;
    padding: 3px 15px;
    background-color: transparent;
    color: white;
    border-left: 2px solid aqua;
    border-right: 2px solid aqua;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.boton-busqueda:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px #00ffff;
    transform: scale(1.1);
}

.h1 { 
    color: white; 
    text-align: center; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center; 
    margin-top: 90px;
}

/* --- ESTILOS MEJORADOS PARA PÁGINA PAÍSES --- */

.hero-header {
    text-align: center;
    margin-bottom: 20px;
}

.linea-decorativa {
    width: 60px;
    height: 4px;
    background: aqua;
    margin: 10px auto;
    border-radius: 10px;
}

.seccion-textos {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 800px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 30px;
    color: white;
    transition: 0.3s;
}

.glass-card:hover {
    transform: scale(1.05); /* Ajustado a 1.05 para que no sea tan brusco como 1.1 */
}

.glass-card h2 {
    color: aqua;
    margin-top: 0;
}

.lista-paises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    max-width: 900px;
}

/* EFECTO IDÉNTICO AL MENÚ FLOTANTE CON BRILLO */
.pais-tag {
    display: inline-block;
    text-decoration: none;
    color: rgb(158, 233, 233);
    padding: 10px 25px;
    background-color: rgba(255, 255, 255, .15);  
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 45px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    font-weight: 500;
}

.pais-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0px 0px 8px 1px rgb(158, 233, 233); /* Brillo aumentado */
}

/* Responsive */
@media (max-width: 768px) {
    .alir { gap: 25px; padding-top: 100px; }
    .manual { width: 110px; height: 140px; padding: 8px; border-radius: 20px; }
    .manual img { height: 65px; }
    .manual:focus { height: 200px; }
    .fila { gap: 15px; }
    .boton-busqueda { padding: 5px 12px; font-size: 0.75rem; }
    .input-glass { width: 180px; }
    .menu-flotante { width: 90%; font-size: 0.8rem; }
    .caja-busqueda { padding: 10px 15px; gap: 8px; }
}
