/*
|--------------------------------------------------------------------------
| BARRA SUPERIOR
|--------------------------------------------------------------------------
*/

.menu-superior {
    background: linear-gradient(
        90deg,
        #78c1c4 0%,
        #bef8fa 18%,
        #daf0f1 65%,
        #bef8fa 82%,
        #78c1c4 100%
    );

    display: flex;
    align-items: center;

    min-height: 65px;

    padding: 5px 8px;

    margin: 0 0 0 0;

    position: relative;

    z-index: 1000;
}


.menu-principal {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-superior a,
.menu-superior button.panel {
    color: #ffffff;
    text-decoration: none;
    padding: 7px 10px;
    display: block;
    font-weight: 600;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    background: #78c1c4;
    border: solid 1px #6badaf;
}

.menu-superior a:hover {
    background: #515151;
}

.menu-principal > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-cerrar-sesion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/*
|--------------------------------------------------------------------------
| CÍRCULO ACTUAL - MENÚ CERRADO
|--------------------------------------------------------------------------
*/

.menu-circulo-principal {
    width: 64px;
    height: 64px;

    padding: 5px;

    border: 0;
    border-radius: 50%;

    background: #f1e72e;
    color: #fff;

    font-family: Arial, sans-serif;

    font-size: 11px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    cursor: pointer;

    box-sizing: border-box;
}


.menu-circulo-principal:hover {
    background: #fff34a;
}


/*
|--------------------------------------------------------------------------
| FONDO OSCURO
|--------------------------------------------------------------------------
*/

.menu-circular-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.82);

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.menu-circular-overlay.abierto {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/*
|--------------------------------------------------------------------------
| RUEDA
|--------------------------------------------------------------------------
*/

.menu-circular-rueda {
    position: relative;

    width: 620px;
    height: 620px;

    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
}


/*
|--------------------------------------------------------------------------
| TODOS LOS CÍRCULOS
|--------------------------------------------------------------------------
*/

.menu-circular-centro,
.menu-circular-opcion {
    position: absolute;

    border-radius: 50%;

    background: #e0de0b;
    color: #fff;

    font-family: Arial, sans-serif;
    font-weight: 700;

    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    text-decoration: none;

    border: 0;

    cursor: pointer;

    z-index: 5;

    transition:
        transform 0.15s ease,
        background 0.15s ease;
}


/*
|--------------------------------------------------------------------------
| CÍRCULO CENTRAL
|--------------------------------------------------------------------------
*/

.menu-circular-centro {
    width: 140px;
    height: 140px;

    left: 240px;
    top: 240px;

    padding: 10px;

    font-size: 20px;
}

.menu-circular-centro .servas{
    color: #222222 !important;
}
/*
|--------------------------------------------------------------------------
| CÍRCULOS PERIFÉRICOS
|--------------------------------------------------------------------------
*/

.menu-circular-opcion {
    width: 120px;
    height: 120px;

    padding: 8px;

    font-size: 16px;
    line-height: 1.05;
}


.menu-circular-centro:hover,
.menu-circular-opcion:hover {
    background: #e0de0b;
    transform: scale(1.1);
    
}

.menu-circular-opcion .servas{
    color: #222222 !important;
}

.menu-circular-opcion .servas-s {
    color: rgb(149, 149, 255) !important;
}

/*
|--------------------------------------------------------------------------
| POSICIONES EXACTAS DE LOS 6 CÍRCULOS
|--------------------------------------------------------------------------
|
| Centro de la rueda: 310px / 310px
| Círculos: 92px
| Radio centros: 235px
|
*/

/* 12 - SERVAS */
.menu-circular-opcion.posicion-1 {
    left: 250px;
    top: 15px;
}

/* 2 - INICIO */
.menu-circular-opcion.posicion-2 {
    left: 453.5px;
    top: 132.5px;
}

/* 4 - AGENDA */
.menu-circular-opcion.posicion-3 {
    left: 453.5px;
    top: 367.5px;
}

/* 6 - CALENDARIO */
.menu-circular-opcion.posicion-4 {
    left: 250px;
    top: 485px;
}

/* 8 - TAREAS */
.menu-circular-opcion.posicion-5 {
    left: 46.5px;
    top: 367.5px;
}

/* 10 - ORGANIGRAMA */
.menu-circular-opcion.posicion-6 {
    left: 46.5px;
    top: 132.5px;
}


/*
|--------------------------------------------------------------------------
| CÍRCULO PUNTEADO EXTERIOR
|--------------------------------------------------------------------------
*/

.menu-circular-rueda::before {
    content: "";

    position: absolute;

    left: 84px;
    top: 84px;

    width: 452px;
    height: 452px;

    border: 3px dotted #f1e72e;
    border-radius: 50%;

    box-sizing: border-box;

    opacity: 0.9;

    z-index: 1;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| LÍNEAS PUNTEADAS DESDE EL CENTRO
|--------------------------------------------------------------------------
*/

.linea-menu {
    position: absolute;

    left: 310px;
    top: 310px;

    width: 235px;

    border-top: 3px dotted #f1e72e;

    transform-origin: 0 50%;

    z-index: 2;

    pointer-events: none;
}


/* 12 */
.linea-12 {
    transform: rotate(-90deg);
}


/* 2 */
.linea-2 {
    transform: rotate(-30deg);
}


/* 4 */
.linea-4 {
    transform: rotate(30deg);
}


/* 6 */
.linea-6 {
    transform: rotate(90deg);
}


/* 8 */
.linea-8 {
    transform: rotate(150deg);
}


/* 10 */
.linea-10 {
    transform: rotate(210deg);
}


/*
|--------------------------------------------------------------------------
| CÍRCULO PERIFÉRICO DE LA PÁGINA ACTIVA
|--------------------------------------------------------------------------
|
| El círculo sigue existiendo en su posición fija,
| pero queda vacío porque el texto aparece en el centro.
|
*/

.opcion-activa-vacia {
    pointer-events: none;
    cursor: default;
}


/*
|--------------------------------------------------------------------------
| SERVAS
|--------------------------------------------------------------------------
*/

.servas-s {
    color: rgb(149, 149, 255);
}

/*
|--------------------------------------------------------------------------
| ZONA CENTRAL DEL MENÚ PRINCIPAL
|--------------------------------------------------------------------------
*/

.menu-zona-central {
    flex: 1;

    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;
}


/*
|--------------------------------------------------------------------------
| MENÚ SERVAS CENTRAL
|--------------------------------------------------------------------------
*/

.menu-servas-central {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 6px;

    width: 100%;

    max-width: 1050px;
}

/*
|--------------------------------------------------------------------------
| SUBMENU AGENDA
|--------------------------------------------------------------------------
*/

.submenu-agenda {
    display: flex;
    align-items: center;
    gap: 40px;
}

.menu-zona-central .submenu-agenda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 23px;
    padding: 0;

    background: #ffffff !important;
    border: none !important;
    border-radius: 8px;

    color: #999999 !important;

    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;

    box-shadow: 3px 5px 7px rgba(0, 0, 0, 0.25);
}

.menu-zona-central .submenu-agenda-btn.activo {
    width: 115px;
    height: 31px;

    background: #ffffff !important;

    font-size: 14px;
    font-weight: bold;
}

.menu-zona-central .submenu-agenda-btn.agenda-activo {
    color: #2f8a57 !important;
}

.menu-zona-central .submenu-agenda-btn.planificacion-activo {
    color: #b45a1b !important;
}


/*
|--------------------------------------------------------------------------
| GRUPOS
|--------------------------------------------------------------------------
*/

.grupo-menu-servas {
    position: relative;

    min-width: 145px;

    border-radius: 8px;

    padding: 3px;

    box-sizing: border-box;
}


.grupo-menu-servas-titulo {
    width: 100%;

    border: 0;

    border-radius: 10px;

    padding: 3px 8px;

    font-size: 13px;
    font-weight: 700;

    color: #ffffff;

    cursor: pointer;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| OPCIONES
|--------------------------------------------------------------------------
*/

.grupo-menu-servas-opciones {
    display: none;

    flex-direction: column;

    gap: 4px;

    padding-top: 4px;
}


.grupo-menu-servas.abierto
.grupo-menu-servas-opciones {
    display: flex;
}


.grupo-menu-servas-opciones a {
    display: block;

    background: #ffffff;

    border-radius: 10px;

    padding: 3px 8px;

    text-align: center;

    text-decoration: none;

    font-size: 12px;

    white-space: nowrap;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.18);
}


.grupo-menu-servas-opciones a.activo {
    font-weight: 700;

    outline: 2px solid rgba(255, 255, 255, 0.8);
}


/*
|--------------------------------------------------------------------------
| COLORES
|--------------------------------------------------------------------------
*/

.grupo-azul {
    background: rgba(71, 165, 229, 0.30);
}

.grupo-azul .grupo-menu-servas-titulo {
    background: #47a5e5;
}

.grupo-azul .grupo-menu-servas-opciones a {
    color: #2788c4;
}


.grupo-verde {
    background: rgba(72, 171, 92, 0.30);
}

.grupo-verde .grupo-menu-servas-titulo {
    background: #48ab5c;
}

.grupo-verde .grupo-menu-servas-opciones a {
    color: #328849;
}


.grupo-naranja {
    background: rgba(211, 124, 51, 0.30);
}

.grupo-naranja .grupo-menu-servas-titulo {
    background: #d37c33;
}

.grupo-naranja .grupo-menu-servas-opciones a {
    color: #b86424;
}


.grupo-dorado {
    background: rgba(180, 143, 72, 0.30);
}

.grupo-dorado .grupo-menu-servas-titulo {
    background: #b48f48;
}

.grupo-dorado .grupo-menu-servas-opciones a {
    color: #9e793b;
}


.grupo-rosa {
    background: rgba(207, 57, 150, 0.25);
}

.grupo-rosa .grupo-menu-servas-titulo {
    background: #cf3996;
}

.grupo-rosa .grupo-menu-servas-opciones a {
    color: #ba247f;
}

/*
|--------------------------------------------------------------------------
| MÓDULOS AVANZADOS
|--------------------------------------------------------------------------
*/

.grupo-modulos {
    background: rgba(242, 140, 75, 0.30);
}


/* TÍTULO */

.grupo-modulos .grupo-menu-servas-titulo {
    background: #f28c4b;
    color: #ffffff;
}


/* FAMILIA Y REVOLVING */

.grupo-modulos .grupo-menu-servas-opciones .opcion-modulo-servas {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 22px;

    margin: 0;
    padding: 3px 8px;

    box-sizing: border-box;

    border: 0;
    border-radius: 10px;

    background: #fff;
    color: #f28c4b;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    box-shadow: none;
    outline: none;
}


/* HOVER */

.grupo-modulos .grupo-menu-servas-opciones .opcion-modulo-servas:hover {
    background: #dc7839;
    color: #ffffff;
}


/* ACTIVO */

.grupo-modulos .grupo-menu-servas-opciones .opcion-modulo-servas.activo {
    font-weight: 700;

    outline: 2px solid rgba(255, 255, 255, 0.8);
}

/* Por defecto, las opciones del grupo están cerradas */
.grupo-menu-servas .grupo-menu-servas-opciones {
    display: none;
}

/* El grupo que contiene el activo se muestra */
.grupo-menu-servas.abierto .grupo-menu-servas-opciones {
    display: block;
}

/* Cualquier grupo abierto manualmente también se muestra */
.grupo-menu-servas.abierto-manual .grupo-menu-servas-opciones {
    display: block;
}

/* En el grupo activo, por defecto solo se ve la opción activa */
.grupo-menu-servas.abierto:not(.abierto-manual)
.grupo-menu-servas-opciones > * {
    display: none;
}

.grupo-menu-servas.abierto:not(.abierto-manual)
.grupo-menu-servas-opciones > .activo {
    display: block;
}

/* Si lo abres manualmente, se ven todas sus opciones */
.grupo-menu-servas.abierto-manual
.grupo-menu-servas-opciones > * {
    display: block;
}

/* Panel lateral */
.panel-oculto {
    display: none !important;
}