/* CheckinFans - Acceso flotante de Fiestas y eventos en Inicio */
.cf-fe-home-floating {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 1045;
    width: fit-content;
    max-width: calc(100vw - 28px);
    font-family: "DM Sans", Arial, sans-serif;
}

.cf-fe-home-floating > summary {
    list-style: none;
}

.cf-fe-home-floating > summary::-webkit-details-marker {
    display: none;
}

.cf-fe-home-floating-trigger {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .72rem .5rem .55rem;
    border: 1px solid rgba(0, 27, 46, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .97);
    color: #001b2e;
    box-shadow: 0 13px 34px rgba(0, 27, 46, .16);
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cf-fe-home-floating-trigger:hover,
.cf-fe-home-floating-trigger:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 0, .35);
    box-shadow: 0 16px 38px rgba(0, 27, 46, .2);
    outline: none;
}

.cf-fe-home-floating-trigger-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff7a00;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(255, 122, 0, .24);
}

.cf-fe-home-floating-trigger-copy {
    min-width: 0;
    display: grid;
    line-height: 1.12;
}

.cf-fe-home-floating-trigger-copy strong {
    color: #001b2e;
    font-size: .88rem;
    font-weight: 800;
    white-space: nowrap;
}

.cf-fe-home-floating-trigger-copy small {
    margin-top: .16rem;
    color: #66768a;
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
}

.cf-fe-home-floating-count {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 .35rem;
    border-radius: 999px;
    background: rgba(255, 122, 0, .11);
    color: #e66e00;
    font-size: .72rem;
    font-weight: 800;
}

.cf-fe-home-floating-chevron {
    color: #7a8797;
    font-size: .72rem;
    transition: transform .18s ease;
}

.cf-fe-home-floating[open] .cf-fe-home-floating-chevron {
    transform: rotate(180deg);
}

.cf-fe-home-floating-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(390px, calc(100vw - 28px));
    max-height: min(68vh, 620px);
    overflow: auto;
    border: 1px solid rgba(0, 27, 46, .11);
    border-radius: 20px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 24px 58px rgba(0, 27, 46, .22);
    overscroll-behavior: contain;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cf-fe-home-floating-head {
    padding: .9rem 1rem .75rem;
    border-bottom: 1px solid rgba(0, 27, 46, .075);
}

.cf-fe-home-floating-head span,
.cf-fe-home-floating-head strong {
    display: block;
}

.cf-fe-home-floating-head span {
    color: #e66e00;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cf-fe-home-floating-head strong {
    margin-top: .22rem;
    color: #001b2e;
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.25;
}

.cf-fe-home-floating-list {
    display: grid;
}

.cf-fe-home-floating-event {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: .85rem;
    padding: .9rem 1rem;
}

.cf-fe-home-floating-event + .cf-fe-home-floating-event {
    border-top: 1px solid rgba(0, 27, 46, .075);
}

.cf-fe-home-floating-event.is-no-image {
    grid-template-columns: 1fr;
}

.cf-fe-home-floating-media {
    min-height: 118px;
    overflow: hidden;
    display: block;
    border-radius: 14px;
    background: #001b2e;
}

.cf-fe-home-floating-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cf-fe-home-floating-body {
    min-width: 0;
}

.cf-fe-home-floating-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .38rem .55rem;
    margin-bottom: .42rem;
}

.cf-fe-home-floating-state {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: .23rem .48rem;
    border: 1px solid rgba(255, 122, 0, .22);
    border-radius: 999px;
    background: rgba(255, 122, 0, .08);
    color: #e66e00;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.cf-fe-home-floating-date {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    color: #6d7b8d;
    font-size: .68rem;
    font-weight: 700;
}

.cf-fe-home-floating-body h2 {
    margin: 0;
    color: #001b2e;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.018em;
}

.cf-fe-home-floating-location {
    display: flex;
    align-items: flex-start;
    gap: .3rem;
    margin: .38rem 0 0;
    color: #6d7b8d;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.35;
}

.cf-fe-home-floating-location i {
    margin-top: .08rem;
    color: #ff7a00;
}

.cf-fe-home-floating-description {
    overflow: hidden;
    max-height: calc(1.42em * 3);
    margin: .5rem 0 .65rem;
    color: #435468;
    font-size: .76rem;
    line-height: 1.42;
}

.cf-fe-home-floating-cta {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-height: 34px;
    padding: .4rem .7rem;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .cf-fe-home-floating {
        right: 12px;
        bottom: 76px;
        max-width: calc(100vw - 24px);
    }

    .cf-fe-home-floating-trigger {
        min-height: 50px;
        gap: .52rem;
        padding: .43rem .62rem .43rem .45rem;
    }

    .cf-fe-home-floating-trigger-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .cf-fe-home-floating-trigger-copy small {
        display: none;
    }

    .cf-fe-home-floating-panel {
        width: min(360px, calc(100vw - 24px));
        max-height: 64vh;
        border-radius: 18px;
    }

    .cf-fe-home-floating-event {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: .72rem;
        padding: .78rem .82rem;
    }

    .cf-fe-home-floating-media {
        min-height: 100px;
    }

    .cf-fe-home-floating-description {
        max-height: calc(1.42em * 2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cf-fe-home-floating-trigger,
    .cf-fe-home-floating-chevron {
        transition: none;
    }
}

[data-bs-theme="dark"] .cf-fe-home-floating-trigger,
[data-bs-theme="dark"] .cf-fe-home-floating-panel {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(4, 26, 42, .98);
}

[data-bs-theme="dark"] .cf-fe-home-floating-trigger-copy strong,
[data-bs-theme="dark"] .cf-fe-home-floating-head strong,
[data-bs-theme="dark"] .cf-fe-home-floating-body h2 {
    color: #f5f7fa;
}

[data-bs-theme="dark"] .cf-fe-home-floating-trigger-copy small,
[data-bs-theme="dark"] .cf-fe-home-floating-date,
[data-bs-theme="dark"] .cf-fe-home-floating-location,
[data-bs-theme="dark"] .cf-fe-home-floating-description,
[data-bs-theme="dark"] .cf-fe-home-floating-chevron {
    color: #b8c2cf;
}

[data-bs-theme="dark"] .cf-fe-home-floating-head,
[data-bs-theme="dark"] .cf-fe-home-floating-event + .cf-fe-home-floating-event {
    border-color: rgba(255, 255, 255, .09);
}
