/* ===================================================
   VARIABLES
=================================================== */
:root{
    --bg-black:#0b0b0b;
    --bg-card:#121212;

    --green:#00ff9c;
    --green-dark:#00a86b;

    --blue-dark:#031462;

    --yellow:#ffff00;
}

/* ===================================================
   GENERAL
=================================================== */
body{
    background-color: var(--bg-black);
    color: #ffffff;
    overflow-x: hidden;
}

/* ===================================================
   COLORES UTILITARIOS
=================================================== */
.bg-black-pro{
    background-color: var(--bg-black);
}

.bg-dark-green{
    background-color: rgba(15, 61, 46, 0.95);
}

.text-light-green{
    color: var(--green);
}

/* ===================================================
   NAVBAR
=================================================== */
.navbar-pro{
    background: var(--yellow);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    padding: 10px 0;
    z-index: 1100;
}

/* LOGO */
.navbar-logo{
    height: 42px;
    width: auto;
}

/* TITULO */
.titulo-navbar{
    font-weight: 700;
    color: var(--blue-dark);
    white-space: nowrap;
    font-size: clamp(20px, 2.2vw, 16px);
}

/* BOTON HAMBURGUESA */
.navbar-toggler{
    border-color: var(--blue-dark);
}

.navbar-toggler-icon{
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23031462' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* LINKS MENU */
.nav-pro{
    color: var(--blue-dark) !important;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: .25s ease;
}

.nav-pro:hover{
    background: var(--blue-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* NAVMENU */
.navmenu .nav-link,
.navmenu .dropdown-toggle,
.navmenu .icon-pro{
    color: #ffffff !important;
}

.navmenu .nav-link:hover,
.navmenu .dropdown-toggle:hover{
    color: #ffc107 !important;
}

/* ICONOS GENERALES */
.icon-pro{
    font-size: 20px;
    cursor: pointer;
    color: var(--blue-dark);
    transition: .2s ease;
}

.icon-pro:hover{
    color: #000000;
    transform: scale(1.1);
}

/* ===================================================
   ICONO PERFIL
=================================================== */
.perfil-icono{
    font-size: 24px;
    color: #ffffff;
    transition: .2s ease;
}

.perfil-icono:hover{
    color: #ffc107;
    transform: scale(1.08);
}

/* ===================================================
   DROPDOWN GENERAL
=================================================== */
.dropdown-menu,
.dropdown-pro{
    background: #000000;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ITEMS */
.dropdown-menu .dropdown-item,
.dropdown-pro .dropdown-item{
    color: #f5f5f5;
    border-radius: 10px;
    padding: 10px 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    transition: all .2s ease;
}

/* HOVER */
.dropdown-menu .dropdown-item:hover,
.dropdown-pro .dropdown-item:hover{
    background: rgba(255,255,255,0.08);
    color: #ffc107;
    transform: translateX(3px);
}

/* ICONOS */
.dropdown-menu .dropdown-item i,
.dropdown-pro .dropdown-item i{
    width: 18px;
    text-align: center;
}

/* DIVIDER */
.dropdown-divider{
    border-color: rgba(255,255,255,0.12);
}

/* PERFIL */
.perfil-dropdown{
    min-width: 230px;
}

/* MENU A LA IZQUIERDA */
.dropdown-menu-end{
    right: 0;
    left: auto;
}

/* ===================================================
   DROPDOWNS NOTIFICACIONES Y MENSAJES
=================================================== */
.notifications-dropdown,
.messages-dropdown{
    width: 360px;
    border-radius: 15px;
    overflow: hidden;
}

/* ===================================================
   SCROLL INTERNO
=================================================== */
.notifications-body,
.messages-body{
    max-height: 420px;
    overflow-y: auto;
}

/* SCROLL ELEGANTE */
.notifications-body::-webkit-scrollbar,
.messages-body::-webkit-scrollbar{
    width: 6px;
}

.notifications-body::-webkit-scrollbar-thumb,
.messages-body::-webkit-scrollbar-thumb{
    background: #c1c1c1;
    border-radius: 20px;
}

/* ===================================================
   ITEMS NOTIFICACIONES Y MENSAJES
=================================================== */
.notification-item,
.message-item{
    transition: all .2s ease;
}

.notification-item:hover,
.message-item:hover{
    background: rgba(255,255,255,0.04);
}

/* ===================================================
   ICONOS NOTIFICACIONES
=================================================== */
.notification-icon{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef3ff;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.notification-icon i{
    font-size: 20px;
}

/* ===================================================
   AVATAR MENSAJES
=================================================== */
.message-avatar{
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ===================================================
   BADGES
=================================================== */
.badge-number{
    position: absolute;
    top: 0;
    right: -5px;

    font-size: 11px;
    padding: 4px 6px;
}

/* ===================================================
   HEADER
=================================================== */
main{
    margin-top: 40px;
}

#header{
    background-image: url('/img/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===================================================
   HERO
=================================================== */
.logo-hero{
    max-width: 120px;
    height: auto;
}

/* ===================================================
   LOGIN
=================================================== */
.login-box{
    background: var(--bg-card);
    border: 1px solid var(--green-dark);
    border-radius: 12px;
    padding: 20px;
}

/* ===================================================
   CONTADOR
=================================================== */
#countdown div{
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--green-dark);
}

/* ===================================================
   PREMIOS
=================================================== */
.premio-card{
    background: linear-gradient(145deg, #1a1a1a, #0f2e2a);
    border: 2px solid var(--green-dark);

    border-radius: 16px;
    padding: 20px;

    text-align: center;

    transition: .3s;

    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.premio-card:hover{
    transform: translateY(-5px);
}

.premio-destacado{
    border: 3px solid gold;
    box-shadow: 0 0 20px rgba(255,215,0,0.4);
}

/* BADGE */
.badge-top{
    position: absolute;
    top: -12px;
    left: 50%;

    transform: translateX(-50%);

    background: gold;
    color: #000000;

    padding: 5px 15px;

    border-radius: 20px;

    font-weight: bold;
}

/* ===================================================
   IMAGENES PREMIOS
=================================================== */
.img-container{
    width: 100%;
    height: 180px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.img-premio{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premio-destacado .img-container{
    height: 220px;
}

/* ===================================================
   DIVIDER
=================================================== */
.divider-amarillo{
    border-top: 2px solid #ffff00;
    opacity: 1;
    margin: .5rem 0;
}

/* ===================================================
   TABLAS
=================================================== */
.table-dark{
    background-color: var(--bg-card);
}

/* ===================================================
   FOOTER
=================================================== */
.footer{
    padding: 10px 0 !important;
}

.footer .container{
    padding: 0 !important;
}

.footer .copyright,
.footer .credits{
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.footer .credits{
    margin-top: 2px !important;
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width:991px){

    #menu{
        background: var(--yellow);
        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
    }

    .navbar-nav{
        gap: 10px;
        align-items: center;
    }

    .nav-pro{
        text-align: center;
        background: rgba(3,20,98,0.1);
    }

    .navbar-logo{
        height: 35px;
    }

    .titulo-navbar{
        max-width: 140px;
    }
}

@media (max-width:768px){

    .logo-hero{
        max-width: 80px;
    }

    .titulo-navbar{
        font-size: 20px;
        max-width: 180px;
    }
}

@media (max-width:576px){

    .notifications-dropdown,
    .messages-dropdown{
        width: 320px;
    }
}

/* ===================================================
   HEADER MOBILE FIX - ASTRA
=================================================== */

@media (max-width: 991px){

    /* CONTENEDOR MENU */
    .navmenu{
        position: relative;
    }

    /* MENU MOBILE */
    .navmenu ul{
        background: #000000 !important;
        border-radius: 14px;
        padding: 15px;
        margin-top: 12px;

        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }

    /* ITEMS */
    .navmenu ul li{
        width: 100%;
    }

    /* LINKS */
    .navmenu ul .nav-link,
    .navmenu ul .dropdown-toggle{
        color: #ffffff !important;

        width: 100%;
        display: flex;
        align-items: center;

        padding: 12px 15px;
        border-radius: 10px;

        font-weight: 600;
    }

    /* HOVER */
    .navmenu ul .nav-link:hover,
    .navmenu ul .dropdown-toggle:hover{
        background: rgba(255,255,255,0.08);
        color: #ffc107 !important;
    }

    /* DROPDOWN MOBILE */
    .navmenu .dropdown-menu{
        position: static !important;

        width: 100%;

        margin-top: 8px;
        margin-bottom: 10px;

        background: #111111 !important;

        border: 1px solid rgba(255,255,255,0.08);

        box-shadow: none;
    }

    /* ITEMS DROPDOWN */
    .navmenu .dropdown-menu .dropdown-item{
        color: #ffffff !important;
        padding: 12px 15px;
    }

    /* HOVER DROPDOWN */
    .navmenu .dropdown-menu .dropdown-item:hover{
        background: rgba(255,255,255,0.08);
        color: #ffc107 !important;
    }

    /* ICONO HAMBURGUESA */
    .mobile-nav-toggle{
        color: #ffffff !important;
        font-size: 30px;
    }

    /* PERFIL */
    .perfil-dropdown{
        min-width: 100%;
    }

    /* NOTIFICACIONES Y MENSAJES */
    .notifications-dropdown,
    .messages-dropdown{
        width: 100% !important;
        min-width: 100%;
    }

    /* HEADER */
    #header{
        padding: 10px 0;
    }

    /* LOGO */
    .logo img{
        max-height: 42px;
    }
