
/* =====================================================
   WIDGETS / ACCESOS RÁPIDOS
===================================================== */

.dashboard-widgets {
    position: relative;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 28px;
}


/* =====================================================
   NAVEGACIÓN
===================================================== */

.dashboard-widgets__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 14px;

    width: 100%;
}


/* =====================================================
   BOTONES
===================================================== */

.widget-button {
    position: relative;

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

    gap: 12px;

    min-width: 225px;
    min-height: 64px;

    padding: 8px 26px;

    border: 2px solid #ffdc61;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #ffe874 0%,
            #ffc934 42%,
            #d99606 100%
        );

    color: #241b09;

    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.55),
        inset 0 -4px 8px rgba(145, 77, 0, 0.25),
        0 5px 12px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        filter 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.widget-button::after {
    content: "";

    position: absolute;
    inset: 3px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;

    pointer-events: none;
}

.widget-button img {
    display: block;

    width: 52px;
    height: 46px;

    object-fit: contain;

    filter:
        drop-shadow(0 2px 2px rgba(83, 43, 0, 0.25));

    transition: transform 0.25s ease;
}

.widget-button span {
    position: relative;
    z-index: 1;

    white-space: nowrap;
}


/* =====================================================
   HOVER
===================================================== */

.widget-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.06);

    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.65),
        inset 0 -4px 8px rgba(145, 77, 0, 0.22),
        0 10px 20px rgba(0, 0, 0, 0.32);
}

.widget-button:hover img {
    transform: scale(1.07);
}


/* =====================================================
   ACTIVO
===================================================== */

.widget-button.is-active {
    border-color: #fff0a3;

    background:
        linear-gradient(
            180deg,
            #fff293 0%,
            #ffd43c 43%,
            #e59e0c 100%
        );

    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.75),
        inset 0 -4px 8px rgba(145, 77, 0, 0.2),
        0 0 0 3px rgba(255, 208, 0, 0.13),
        0 8px 18px rgba(0, 0, 0, 0.32);

    transform: translateY(-2px);
}


/* =====================================================
   CONTENIDOS
===================================================== */

.dashboard-widgets__content {
    position: relative;
    width: 100%;
}

.widget-panel {
    width: 100%;

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.widget-panel.is-active {
    opacity: 1;
    transform: translateY(0);
}

.widget-panel[hidden] {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199px) {

    .dashboard-widgets__nav {
        gap: 12px;
    }

    .widget-button {
        min-width: 190px;
        min-height: 60px;

        padding-inline: 20px;

        font-size: 1.05rem;
    }

    .widget-button img {
        width: 46px;
        height: 42px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .dashboard-widgets {
        margin-top: 18px;
        margin-bottom: 30px;
    }

    .dashboard-widgets__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .widget-button {
        width: 100%;
        min-width: 0;
        min-height: 62px;

        gap: 8px;

        padding: 8px 12px;

        border-radius: 9px;

        font-size: clamp(0.9rem, 3.7vw, 1.08rem);
    }

    .widget-button img {
        width: 43px;
        height: 39px;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 430px) {

    .dashboard-widgets__nav {
        gap: 9px;
    }

    .widget-button {
        min-height: 58px;

        padding-inline: 8px;

        font-size: 0.85rem;
    }

    .widget-button img {
        width: 36px;
        height: 34px;
    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

.widget-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .widget-button,
    .widget-button img,
    .widget-panel {
        transition: none;
    }

}