@property --notification-mia-angle {
        syntax: '<angle>';
        inherits: false;
        initial-value: 0deg;
    }

    .notification-mia {
        position: fixed;

        left: 18px;
        right: 18px;
        bottom: 22px;

        width: auto;
        max-width: 390px;

        margin: 0 auto;

        border-radius: 22px;

        z-index: 10000;

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(18px)
            scale(.985);

        transition:
            opacity 220ms ease,
            transform 320ms cubic-bezier(.16, 1, .3, 1),
            visibility 220ms ease;

        isolation: isolate;
    }

    .notification-mia.is-visible {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0)
            scale(1);
    }


    /* =========================
    BORDE ANIMADO
    ========================= */

    .notification-mia__border {
        position: absolute;

        inset: 0;

        border-radius: inherit;

        z-index: -2;

        background:
            conic-gradient(
                from var(--notification-mia-angle),

                rgba(16, 191, 179, .14) 0deg,
                rgba(16, 191, 179, .14) 300deg,

                rgba(16, 191, 179, .40) 320deg,

                #10bfb3 337deg,
                #76e9e1 346deg,
                #10bfb3 353deg,

                rgba(16, 191, 179, .14) 360deg
            );

        animation:
            notification-mia-border-spin
            4.8s
            linear
            infinite;
    }

    @keyframes notification-mia-border-spin {
        to {
            --notification-mia-angle: 360deg;
        }
    }


    /* =========================
    SUPERFICIE
    ========================= */

    .notification-mia__surface {
        position: relative;

        margin: 1.5px;

        overflow: hidden;

        border-radius: 20.5px;

        background:
            linear-gradient(
                150deg,
                rgba(255, 255, 255, .985),
                rgba(252, 253, 253, .965)
            );

        border:
            1px solid rgba(255, 255, 255, .88);

        box-shadow:
            0 22px 65px rgba(10, 20, 24, .13),
            0 8px 22px rgba(10, 20, 24, .07),
            0 1px 2px rgba(0, 0, 0, .04);

        backdrop-filter:
            saturate(150%)
            blur(20px);

        -webkit-backdrop-filter:
            saturate(150%)
            blur(20px);
    }


    /* =========================
    HEADER
    ========================= */

    .notification-mia__header {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 15px 14px 7px 18px;
    }

    .notification-mia__identity {
        display: flex;
        align-items: center;

        gap: 8px;
    }

    .notification-mia__indicator {
        position: relative;

        width: 7px;
        height: 7px;

        border-radius: 50%;

        background: #10bfb3;

        box-shadow:
            0 0 0 4px rgba(16, 191, 179, .09);
    }

    .notification-mia__indicator::after {
        content: "";

        position: absolute;

        inset: -4px;

        border-radius: inherit;

        border:
            1px solid rgba(16, 191, 179, .24);

        animation:
            notification-mia-indicator-pulse
            2.8s ease-out infinite;
    }

    @keyframes notification-mia-indicator-pulse {
        0% {
            opacity: 0;
            transform: scale(.7);
        }

        30% {
            opacity: .8;
        }

        70%,
        100% {
            opacity: 0;
            transform: scale(1.45);
        }
    }

    .notification-mia__name {
        color: #09090b;

        font-size: 11px;
        font-weight: 750;

        letter-spacing: .095em;
    }

    .notification-mia__label {
        display: inline-flex;
        align-items: center;

        height: 19px;

        padding: 0 7px;

        border:
            1px solid rgba(16, 191, 179, .17);

        border-radius: 999px;

        background:
            rgba(16, 191, 179, .07);

        color:
            rgba(8, 142, 133, .83);

        font-size: 8.5px;
        font-weight: 700;

        letter-spacing: .09em;
    }


    /* =========================
    BOTÓN CERRAR
    ========================= */

    .notification-mia__close {
        display: grid;
        place-items: center;

        width: 30px;
        height: 30px;

        padding: 0;

        border: 0;
        border-radius: 50%;

        background: transparent;

        color:
            rgba(15, 18, 20, .42);

        font-size: 20px;
        line-height: 1;

        cursor: pointer;

        transition:
            color 160ms ease,
            background-color 160ms ease,
            transform 160ms ease;
    }

    .notification-mia__close:hover {
        color:
            rgba(15, 18, 20, .76);

        background:
            rgba(10, 15, 18, .05);
    }

    .notification-mia__close:active {
        transform: scale(.88);
    }


    /* =========================
    CONTENIDO
    ========================= */

    .notification-mia__content {
        padding:
            5px
            19px
            18px;
    }

    .notification-mia__title {
        margin: 0 0 6px;

        color: #0b0b0d;

        font-size: 15px;
        line-height: 1.28;
        font-weight: 650;

        letter-spacing: -.018em;
    }

    .notification-mia__title:empty {
        display: none;
    }

    .notification-mia__message {
        color: #81848d;

        font-size: 13.5px;
        line-height: 1.52;

        letter-spacing: -.005em;
    }

    .notification-mia__action {
        display: inline-flex;
        align-items: center;

        gap: 7px;

        min-height: 34px;

        margin-top: 13px;
        padding: 0 12px;

        border:
            1px solid rgba(16, 191, 179, .21);

        border-radius: 10px;

        background:
            rgba(16, 191, 179, .055);

        color: #079f96;

        font-size: 12px;
        font-weight: 650;

        text-decoration: none;

        transition:
            background-color 160ms ease,
            border-color 160ms ease,
            color 160ms ease,
            transform 160ms ease;
    }

    .notification-mia__action:hover {
        color: #078e87;

        border-color:
            rgba(16, 191, 179, .36);

        background:
            rgba(16, 191, 179, .085);
    }

    .notification-mia__action:active {
        transform: scale(.97);
    }

    .notification-mia__action[hidden] {
        display: none;
    }


    /* =========================
    DESKTOP
    ========================= */

    @media (min-width: 768px) {
        .notification-mia {
            left: auto;
            right: 30px;
            bottom: 28px;

            width: 375px;

            margin: 0;
        }
    }


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

    @media (max-width: 480px) {
        .notification-mia {
            left: 12px;
            right: 12px;

            bottom:
                calc(
                    12px
                    + env(safe-area-inset-bottom)
                );

            max-width: none;
        }
    }


    /* =========================================================
    OVERRIDE DEL REDUCED MOTION GLOBAL
    Solo para este módulo
    ========================================================= */

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

        .notification-mia,
        .notification-mia *,
        .notification-mia *::before,
        .notification-mia *::after {
            transition-duration: 160ms !important;
        }

        .notification-mia__border {
            animation:
                notification-mia-border-spin
                4.8s
                linear
                infinite !important;
        }

        .notification-mia__indicator::after {
            animation:
                notification-mia-indicator-pulse
                2.8s
                ease-out
                infinite !important;
        }
    }