
/* =========================================================
   BANNER GESTION DE REBOTES - MOODLE
   Version robusta y compatible con themes
   ---------------------------------------------------------
   Objetivo:
   - Banner fijo superior
   - Alta prioridad visual
   - No ser ocultado por temas de Moodle
========================================================= */


/* =========================================================
   CONTENEDOR PRINCIPAL DEL BANNER
========================================================= */

#gestionrebotes-banner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    z-index: 999999 !important;

    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    transform: translateY(0) !important;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0) 100%
    ),
    linear-gradient(90deg, #0c2340, #1e3a8a) !important;

    color: #ffffff !important;

    padding: 10px 25px !important;

    align-items: center !important;
    justify-content: space-between !important;

    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;

    border-bottom: 4px solid #f5b400 !important;

    box-shadow: 0 4px 15px rgba(0,0,0,0.35) !important;

    min-height: 65px !important;
}


/* =========================================================
   SECCION IZQUIERDA (ICONO + TEXTO)
========================================================= */

#gestionrebotes-banner .gr-left {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}


/* Icono del banner */
#gestionrebotes-banner .gr-icon {
    font-size: 28px !important;
    display: flex !important;
    align-items: center !important;
    animation: gr-pulse 2.5s infinite;
}


/* Contenedor de textos */
#gestionrebotes-banner .gr-text {
    display: flex !important;
    flex-direction: column !important;
}


/* Titulo principal */
#gestionrebotes-banner .gr-title {
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}


/* Descripcion secundaria */
#gestionrebotes-banner .gr-desc {
    font-size: 13.5px !important;
    opacity: 0.9 !important;
}


/* =========================================================
   SECCION DE ACCIONES (BOTONES)
========================================================= */

#gestionrebotes-banner .gr-actions {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}


/* Boton principal */
#gestionrebotes-banner .gr-btn {
    background: #ffffff !important;
    color: #0c2340 !important;

    padding: 8px 20px !important;

    border-radius: 50px !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;

    transition: all 0.3s ease !important;
}


/* Hover boton principal */
#gestionrebotes-banner .gr-btn:hover {
    background: #f5b400 !important;
    color: #0c2340 !important;

    transform: translateY(-1px) !important;

    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
}


/* Boton cerrar */
#gestionrebotes-banner .gr-close {
    cursor: pointer !important;

    font-size: 22px !important;
    line-height: 1 !important;

    width: 34px !important;
    height: 34px !important;

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

    border-radius: 50% !important;

    background: rgba(255,255,255,0.1) !important;

    transition: all 0.3s ease !important;
}


/* Hover boton cerrar */
#gestionrebotes-banner .gr-close:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: rotate(90deg) !important;
}


/* =========================================================
   ANIMACIONES
========================================================= */

/* Pulso del icono */
@keyframes gr-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


/* =========================================================
   COMPENSACION HEADER MOODLE
========================================================= */

body:has(#gestionrebotes-banner) {
    padding-top: 80px !important;
}
