/* =========================
   RESET GENERAL
========================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY GENERAL
========================= */

html{
    scroll-behavior: smooth;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: #050914;
    color: white;
    overflow-x: hidden;
    animation: aparecerPagina .6s ease;
}

@keyframes aparecerPagina{

    from{
        opacity: 0;
        transform: translateY(12px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================
   FORMULARIOS
========================= */

form{
    margin: 30px auto;
    width: 300px;
}

input,select,textarea{
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #374151;
    background: #1f2937;
    color: white;
    transition: .3s ease;
}

input:focus,select:focus,textarea:focus{
    outline: none;
    border-color: #22ff69;
    box-shadow: 0 0 16px rgba(34,255,105,.18);
}

/* =========================
   BOTONES
========================= */

button{
    padding: 12px;
    width: 100%;
    background: #22ff69;
    color: #04130a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s ease;
    font-weight: bold;
}

button:hover{
    background: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(34,255,105,.25);
}

/* =========================
   VALIDACIONES
========================= */

.input-correcto{
    border: 2px solid #22ff69 !important;
    background-color: #1f2937 !important;
    color: white !important;
}

.input-error{
    border: 2px solid #ef4444 !important;
    background-color: #1f2937 !important;
    color: white !important;
}

.mensaje-validacion{
    display: block;
    font-size: 13px;
    margin-top: -5px;
    margin-bottom: 10px;
    text-align: left;
}

.mensaje-error{
    color: #ef4444;
}

.mensaje-correcto{
    color: #22ff69;
}

.input-error:focus{
    box-shadow: 0 0 10px rgba(239, 68, 68, .5);
}

.input-correcto:focus{
    box-shadow: 0 0 10px rgba(34, 255, 105, .5);
}

/* =========================
   NAVBAR GAMER
========================= */

.navbar-gamer{
    width: 100%;
    padding: 18px 7%;
    background: rgba(5, 10, 20, .92);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(34,255,105,.35);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.logo-gamer{
    color: #22ff69;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    transition: .3s;
}

.logo-gamer:hover{
    transform: scale(1.04);
}

.logo-gamer span{
    color: white;
}

.logo-gamer small{
    display: block;
    color: #22ff69;
    font-size: 16px;
    margin-left: 35px;
}

/* =========================
   MENÚ
========================= */

.menu-gamer{
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu-gamer a{
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.menu-gamer a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #22ff69;
    transition: .3s;
}

.menu-gamer a:hover::after,.menu-gamer .activo::after{
    width: 100%;
}

.menu-gamer a:hover,.menu-gamer .activo{
    color: #22ff69;
}

/* =========================
   BOTÓN SALIR
========================= */

.btn-salir-gamer{
    border: 1px solid #ef4444;
    padding: 12px 24px;
    border-radius: 10px;
    color: #ef4444 !important;
}

.btn-salir-gamer:hover{
    background: #ef4444;
    color: white !important;
}

/* =========================
   TABLAS
========================= */

table{
    width: 95%;
    margin: 25px auto;
    border-collapse: collapse;
    background: #111827;
    border-radius: 14px;
    overflow: hidden;
}

table th,table td{
    border: 1px solid #374151;
    padding: 14px;
    text-align: center;
    transition: .25s ease;
}

table tr:hover{
    background: rgba(34,255,105,.05);
}

table th{
    background: #1f2937;
    color: #22ff69;
}

/* =========================
   DASHBOARD ADMIN
========================= */

.dashboard-admin{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 25px 0;
    padding: 0 5%;
}

.card-dashboard{
    background: linear-gradient(145deg, #111827, #1f2937);
    color: white;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(34,255,105,.18);
    box-shadow: 0 0 20px rgba(0,0,0,.35);
    transition: .3s ease;
}

.card-dashboard:hover{
    transform: translateY(-5px);
    border-color: #22ff69;
    box-shadow:0 0 30px rgba(34,255,105,.16), 0 0 60px rgba(34,255,105,.06);
}

.card-dashboard h3{
    margin-bottom: 12px;
    font-size: 17px;
}

.card-dashboard p{
    font-size: 32px;
    font-weight: bold;
    color: #22ff69;
}

/* =========================
   IMÁGENES
========================= */

img{
    transition: .3s ease;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width: 7px;
}

::-webkit-scrollbar-track{
    background: #050914;
}

::-webkit-scrollbar-thumb{
    background: #22ff69;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover{
    background: #16a34a;
}

/* ALERTAS */
.alerta-exito{
    max-width: 900px;
    margin: 25px auto 0;
    padding: 15px 20px;
    border-radius: 14px;
    background: rgba(34,255,105,.14);
    border: 1px solid rgba(34,255,105,.4);
    color: #22ff69;
    text-align: center;
    font-weight: bold;
}

.alerta-exito{
    transition: .4s ease;
}

.alerta-warning{
    max-width: 900px;
    margin: 25px auto 0;
    padding: 15px 20px;
    border-radius: 14px;
    background: rgba(250,204,21,.14);
    border: 1px solid rgba(250,204,21,.4);
    color: #facc15;
    text-align: center;
    font-weight: bold;
    transition: .4s ease;
}

.alerta-error{
    max-width: 900px;
    margin: 25px auto 0;
    padding: 15px 20px;
    border-radius: 14px;
    background: rgba(239,68,68,.14);
    border: 1px solid rgba(239,68,68,.4);
    color: #ef4444;
    text-align: center;
    font-weight: bold;
    transition: .4s ease;
}

.alerta-login{
    transition: .4s ease;
}

/* =========================
   SELECCIÓN TEXTO
========================= */

::selection{
    background: #22ff69;
    color: #031108;
}

/* =========================
   CONTADOR CARRITO
========================= */

.carrito-navbar{
    display: flex;
    align-items: center;
    gap: 8px;
}

.contador-carrito{
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: #22ff69;
    color: #031108;
    font-size: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(34,255,105,.35);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px){

    .navbar-gamer{
        flex-direction: column;
        gap: 18px;
    }

    .menu-gamer{
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    form{
        width: 90%;
    }

    table{
        font-size: 13px;
    }

    .dashboard-admin{
        grid-template-columns: 1fr;
    }

}