/* /public/css/estilos.css */
/* Estilo futbolero – Quiniela Mundial 2026 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.15), transparent 60%),
        linear-gradient(to bottom, #0f7a3a, #0b5e2a);
    color: #ffffff;
}

/* Líneas tipo cancha */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.08) 0px,
            rgba(255,255,255,0.08) 2px,
            transparent 2px,
            transparent 80px
        );
    pointer-events: none;
}

.contenedor {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* TARJETA */
.card {
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 50px 45px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,.7);

    opacity: 0;
    transform: scale(0.9);
    animation: aparecer 0.8s ease forwards;
}

/* PELOTA */
.pelota {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: rebote 1.1s ease-in-out infinite;
}

/* TEXTO */
.card h1 {
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1rem;
    margin-bottom: 35px;
    letter-spacing: 1px;
    opacity: .9;
}

/* FORM */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 1.05rem;
    outline: none;
    transition: all .25s ease;
}

input::placeholder {
    color: rgba(255,255,255,0.7);
}

input:focus {
    background: rgba(255,255,255,0.25);
    border-color: #ffe066;
    box-shadow: 0 0 12px rgba(255,224,102,0.6);
}

/* BOTÓN */
button {
    width: 100%;
    background: radial-gradient(circle at top, #ffe066, #f5b700);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s ease;
}

button:hover {
    transform: scale(1.05);
}

/* ANIMACIONES */
@keyframes rebote {
    0% { transform: translateY(0); }
    50% { transform: translateY(-26px); }
    100% { transform: translateY(0); }
}

@keyframes aparecer {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ===================== */
/* 📱 MÓVIL             */
/* ===================== */
@media (max-width: 480px) {

    .card {
        padding: 40px 26px;
        border-radius: 16px;
    }

    .pelota {
        font-size: 4rem;
    }

    .card h1 {
        font-size: 1.8rem;
    }

    .subtitulo {
        font-size: 0.95rem;
    }

    input,
    button {
        font-size: 1.05rem;
    }
}

/* ===================== */
/* 📱 TABLET            */
/* ===================== */
@media (min-width: 481px) and (max-width: 1024px) {

    .card {
        max-width: 520px;
        padding: 55px 50px;
    }

    .pelota {
        font-size: 5rem;
    }

    .card h1 {
        font-size: 2.3rem;
    }
}


/* NAV */
.nav-bar {
    width: 100%;
    padding: 15px 25px;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.25);
}

.nav-bar h1 {
    font-size: 1.6rem;
}

.nav-right span {
    margin-right: 15px;
    font-weight: 600;
}

/* Botón cerrar sesión en nav */
.btn-cerrar {
    background: #b11226;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all .25s ease;
}

.btn-cerrar:hover {
    transform: scale(1.05);
}

/* OPCCIONES EN PANEL */
.opciones {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 25px;
}

.opciones button {
    width: 100%;
    background: radial-gradient(circle at top, #ffe066, #f5b700);
    color: #000;
    font-weight: 800;
    padding: 14px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all .25s ease;
}

.opciones button:hover {
    transform: scale(1.05);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .nav-bar h1 {
        font-size: 1.2rem;
    }
    .pelota {
        font-size: 4rem;
    }
    .opciones button {
        font-size: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {
    .nav-bar h1 {
        font-size: 1.4rem;
    }
    .pelota {
        font-size: 5rem;
    }
    .opciones button {
        font-size: 1.1rem;
    }
}
/* ===================== */
/* PANEL PRINCIPAL       */
/* ===================== */

.header {
    background: rgba(0,0,0,0.7);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ffe066;
}

.header h1 {
    font-size: 1.6rem;
    color: #ffe066;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav a:hover {
    background: #ffe066;
    color: #000;
}

.logout {
    background: #b11226;
    color: #fff !important;
}

.cards-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.card.pequeño {
    background: rgba(0,0,0,0.55);
    padding: 15px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.card.pequeño h3 {
    margin-bottom: 8px;
}

.cerrar-card {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffe066;
}

.info-sesion {
    margin-top: 20px;
    padding: 15px;
}

/* Animaciones */
.animar-entrada {
    animation: animarEntrada 0.6s ease forwards;
}

.animar-salida {
    animation: animarSalida 0.4s ease forwards;
}

@keyframes animarEntrada {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animarSalida {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}
