/* =========================================================
   TBS CONTADOR INVITACIONES - PREMIUM BABYSHOWER
========================================================= */

.tbs-contador-invitaciones {
    position: relative;
    overflow: hidden;
    margin: 0 auto 26px;
    padding: 24px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 221, 238, .92), transparent 34%),
        radial-gradient(circle at 94% 10%, rgba(206, 232, 255, .86), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #fff8fc 100%);
    border: 1px solid rgba(246, 205, 224, .78);
    box-shadow:
        0 22px 55px rgba(190, 112, 152, .15),
        inset 0 1px 0 rgba(255,255,255,.95);
    isolation: isolate;
}

.tbs-contador-invitaciones * {
    box-sizing: border-box;
}

.tbs-contador-bg-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.tbs-contador-bg-orb.tbs-orb-1 {
    width: 160px;
    height: 160px;
    top: -70px;
    right: -50px;
    background: rgba(167, 216, 255, .34);
}

.tbs-contador-bg-orb.tbs-orb-2 {
    width: 120px;
    height: 120px;
    bottom: -55px;
    left: -40px;
    background: rgba(249, 168, 212, .32);
}

.tbs-contador-invitaciones::before {
    content: "";
    position: absolute;
    inset: -60%;
    z-index: 1;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            rgba(255,255,255,0) 36%,
            rgba(255,255,255,.50) 49%,
            rgba(255,255,255,.18) 58%,
            transparent 72%
        );
    transform: translateX(-60%) rotate(12deg);
    animation: tbsContadorShine 6.5s ease-in-out infinite;
    pointer-events: none;
}

.tbs-contador-head,
.tbs-contador-grid {
    position: relative;
    z-index: 2;
}

.tbs-contador-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.tbs-contador-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #c45d93;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tbs-contador-kicker::before {
    content: "✨";
    font-size: 14px;
    letter-spacing: 0;
}

.tbs-contador-title-wrap h3 {
    margin: 0;
    color: #9d4f7c;
    font-size: clamp(20px, 3vw, 29px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.02em;
}

.tbs-contador-title-wrap p {
    margin: 7px 0 0;
    color: #9b7587;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.tbs-contador-badge {
    flex: 0 0 auto;
    min-width: 86px;
    height: 86px;
    padding: 10px;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 32%),
        linear-gradient(135deg, #f9a8d4 0%, #c8a7ff 55%, #93c5fd 100%);
    box-shadow: 0 14px 30px rgba(190, 112, 152, .22);
}

.tbs-contador-badge span {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}

.tbs-contador-badge small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    opacity: .96;
}

.tbs-contador-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tbs-contador-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 18px 15px;
    border-radius: 24px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(255,255,255,.88);
    box-shadow:
        0 14px 32px rgba(190, 112, 152, .11),
        inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

.tbs-contador-card:hover {
    transform: translateY(-3px);
    filter: saturate(1.04);
    box-shadow:
        0 18px 38px rgba(190, 112, 152, .15),
        inset 0 1px 0 rgba(255,255,255,.94);
}

.tbs-contador-card::after {
    content: "";
    position: absolute;
    inset: auto 14px 11px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f9a8d4, #c8a7ff, #93c5fd);
    opacity: .76;
}

.tbs-contador-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 9px 20px rgba(190, 112, 152, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.tbs-contador-info strong {
    display: block;
    color: #8f4a76;
    font-size: clamp(30px, 5vw, 42px);
    line-height: .95;
    font-weight: 950;
    letter-spacing: -.03em;
}

.tbs-contador-info span {
    display: block;
    margin-top: 7px;
    color: #8a6377;
    font-size: 13px;
    font-weight: 900;
}

.tbs-contador-invitaciones.is-loading {
    opacity: .72;
    transform: scale(.996);
    transition: all .2s ease;
}

.tbs-contador-empty {
    margin: 0 auto 22px;
    padding: 16px;
    border-radius: 18px;
    color: #9d4f7c;
    background: #fff7fb;
    border: 1px dashed #e7b8cf;
    font-weight: 800;
    text-align: center;
}

@keyframes tbsContadorShine {
    0%, 42% {
        transform: translateX(-70%) rotate(12deg);
        opacity: 0;
    }

    52% {
        opacity: .8;
    }

    70% {
        transform: translateX(70%) rotate(12deg);
        opacity: .28;
    }

    100% {
        transform: translateX(70%) rotate(12deg);
        opacity: 0;
    }
}

@media (max-width: 760px) {
    .tbs-contador-invitaciones {
        padding: 19px;
        border-radius: 24px;
    }

    .tbs-contador-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tbs-contador-badge {
        width: 100%;
        height: auto;
        min-height: 56px;
        border-radius: 20px;
        flex-direction: row;
        gap: 8px;
    }

    .tbs-contador-grid {
        grid-template-columns: 1fr;
    }

    .tbs-contador-card {
        min-height: 96px;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 13px;
        align-items: center;
        justify-content: initial;
        text-align: left;
    }

    .tbs-contador-info strong {
        font-size: 34px;
    }
}