/* Chips de notificación — círculos 60px alineados con .floating-btn */
:root {
    --portal-notif-chip-size: 60px;
}

.portal-notif-chip {
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    width: var(--portal-notif-chip-size);
    height: var(--portal-notif-chip-size);
    min-width: var(--portal-notif-chip-size);
    max-width: var(--portal-notif-chip-size);
    padding: 0;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(41, 68, 142, 0.35);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.inc-soporte-notif--visible .inc-soporte-notif__badge,
.portal-notif--visible .portal-notif__badge,
.soporte-resp-notif--visible .soporte-resp-notif__badge,
.soporte-asign-notif--visible .soporte-asign-notif__badge {
    display: inline-flex;
}

.portal-notif-chip__icon {
    position: relative;
    width: var(--portal-notif-chip-size);
    height: var(--portal-notif-chip-size);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-notif-chip__icon i {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    line-height: 1;
}

.portal-notif-chip__count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    max-width: 34px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.portal-notif-chip__count:not([data-count="0"]) {
    display: inline-flex;
}

.portal-notif-chip--danger {
    background: linear-gradient(142deg, #fa5252 0%, #e03131 100%);
    box-shadow: 0 4px 20px rgba(224, 49, 49, 0.4);
}

.portal-notif-chip--danger .portal-notif-chip__count {
    color: #c92a2a;
}

.portal-notif-chip--info {
    background: linear-gradient(142deg, #4dabf7 0%, #228be6 100%);
    box-shadow: 0 4px 20px rgba(34, 139, 230, 0.4);
}

.portal-notif-chip--info .portal-notif-chip__count {
    color: #1971c2;
}

.portal-notif-chip--success {
    background: linear-gradient(142deg, #38d9a9 0%, #12b886 100%);
    box-shadow: 0 4px 20px rgba(18, 184, 134, 0.4);
}

.portal-notif-chip--success .portal-notif-chip__count {
    color: #087f5b;
}

.portal-notif-chip--warning {
    background: linear-gradient(142deg, #ffa94d 0%, #e67700 100%);
    box-shadow: 0 4px 20px rgba(230, 119, 0, 0.4);
}

.portal-notif-chip--warning .portal-notif-chip__count {
    color: #d9480f;
}

@media (hover: hover) {
    .portal-notif-chip:hover,
    .portal-notif-chip:focus-visible {
        transform: translateY(-1px);
    }

    .portal-notif-chip--danger:hover,
    .portal-notif-chip--danger:focus-visible {
        box-shadow: 0 6px 24px rgba(224, 49, 49, 0.5);
    }

    .portal-notif-chip--info:hover,
    .portal-notif-chip--info:focus-visible,
    .portal-notif-chip--info.portal-notif__badge--abierto {
        box-shadow: 0 6px 24px rgba(34, 139, 230, 0.5);
    }

    .portal-notif-chip--success:hover,
    .portal-notif-chip--success:focus-visible {
        box-shadow: 0 6px 24px rgba(18, 184, 134, 0.5);
    }

    .portal-notif-chip--warning:hover,
    .portal-notif-chip--warning:focus-visible {
        box-shadow: 0 6px 24px rgba(230, 119, 0, 0.5);
    }
}

@media (max-width: 768px) {
    :root {
        --portal-notif-chip-size: 55px;
    }

    .portal-notif-chip__icon i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --portal-notif-chip-size: 50px;
    }

    .portal-notif-chip__icon i {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-notif-chip {
        transition: none !important;
    }
}
