.site-header {
    --mobile-search-space: 0px;
    position: relative;
    z-index: 30;
    isolation: isolate;
    margin-bottom: 1.5rem;
}

.site-header .navbar {
    padding: 1rem 0;
    background: var(--pillalas-primary) !important;
    border-bottom: 0 !important;
    box-shadow: 0 8px 24px rgba(83, 35, 79, .18);
}

.site-header .navbar-brand img {
    max-width: 235px;
    height: auto;
}

.site-header .navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-header .dropdown-menu {
    margin-top: .75rem;
    padding: .65rem;
    border: 1px solid rgba(83, 35, 79, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--pillalas-shadow-lg);
    min-width: 230px;
}

.site-header .dropdown-header,
.buscador-header-title,
.mobile-submenu-title {
    color: var(--pillalas-text-soft);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.site-header .dropdown-header {
    padding: .35rem .85rem .5rem;
}

.site-header .dropdown-item,
.buscador-header-item,
.mobile-submenu-link {
    color: var(--pillalas-dark);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.site-header .dropdown-item {
    padding: .7rem .85rem;
    border-radius: 12px;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus,
.buscador-header-item:hover,
.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
    background: var(--pillalas-soft);
    color: var(--pillalas-primary);
}

.site-header .dropdown-item.active,
.site-header .dropdown-item:active,
.mobile-submenu-link-language.active,
.mobile-submenu-link-language:active {
    background: var(--pillalas-primary);
    color: #fff;
}

.lang-code {
    color: var(--pillalas-text-soft);
    font-size: .75rem;
    font-weight: 700;
    opacity: .8;
}

.site-header .dropdown-item.active .lang-code,
.mobile-submenu-link-language.active .lang-code,
.mobile-submenu-link-language:active .lang-code {
    color: #fff;
    opacity: 1;
}

.header-search {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.header-search .form-control {
    padding-left: 3rem;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(83, 35, 79, .12);
}

.header-search .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .28);
}

.header-search-icon {
    position: absolute;
    top: 50%;
    left: 1.15rem;
    z-index: 2;
    color: #8d7288;
    font-size: 1.15rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.buscador-header-panel {
    position: absolute;
    top: calc(100% + .75rem);
    left: 50%;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100vw - 2rem));
    padding: .8rem;
    border: 1px solid var(--pillalas-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(83, 35, 79, .22);
    transform: translateX(-50%);
}

.buscador-header-panel-content {
    flex: 1 1 auto;
}

.buscador-header-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border-top: 1px solid var(--pillalas-border);
    border-left: 1px solid var(--pillalas-border);
    transform: translateX(-50%) rotate(45deg);
}

.buscador-header-title {
    margin-bottom: .4rem;
}

.buscador-header-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem;
    border-radius: 14px;
}

.buscador-header-item img {
    flex: 0 0 auto;
    width: 38px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.buscador-header-cine img,
.buscador-header-cine-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.buscador-header-item strong {
    display: block;
    font-size: .9rem;
    line-height: 1.15;
}

.buscador-header-item small {
    display: block;
    margin-top: .15rem;
    color: #8d7288;
    font-size: .78rem;
    font-weight: 600;
}

.buscador-header-empty,
.buscador-header-loading {
    padding: .8rem;
    color: #8d7288;
    font-weight: 700;
}

.buscador-header-loading {
    text-align: center;
}

.buscador-header-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: .65rem;
    min-height: calc(38px + .65rem);
    border-top: 1px solid rgba(83, 35, 79, .08);
}

.buscador-header-pagination span {
    min-width: 48px;
    color: var(--pillalas-text-soft);
    font-size: .82rem;
    font-weight: 900;
    text-align: center;
}

.buscador-header-page-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--pillalas-soft);
    color: var(--pillalas-primary);
}

.buscador-header-page-btn:hover:not(:disabled) {
    background: var(--pillalas-primary);
    color: #fff;
}

.buscador-header-page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.header-pill {
    height: 50px;
    display: flex;
    align-items: center;
    padding: .4rem .85rem;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    background: transparent;
    color: #fff;
}

.header-pill--compact {
    padding-inline: .7rem;
}

.header-pill:hover {
    background: #fff;
    border-color: #fff;
    color: var(--pillalas-primary);
}

.header-pill:hover * {
    color: var(--pillalas-primary);
}

.header-pill:focus,
.header-pill:active,
.header-pill.show {
    background: var(--pillalas-primary-dark);
    border-color: #fff;
    color: #fff;
    box-shadow: none !important;
    outline: none;
}

.header-pill:focus *,
.header-pill:active *,
.header-pill.show * {
    color: #fff;
}

.header-pill__inner {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.header-pill__inner > i {
    font-size: 1.4rem;
    line-height: 1;
}

.header-pill__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.header-pill__label {
    font-size: .65rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .5px;
    opacity: 1;
    text-transform: uppercase;
}

.header-pill__value {
    font-size: .95rem;
    line-height: 1.1;
    font-weight: 700;
}

.mobile-search-btn,
.mobile-menu-btn,
.mobile-offcanvas-close,
.btn-mobile-city {
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, .12);
}

.mobile-search-btn,
.mobile-menu-btn,
.mobile-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.mobile-search-btn::before,
.mobile-menu-btn::before,
.mobile-offcanvas-close::before,
.btn-mobile-city::before {
    content: "";
    position: absolute;
    inset: -4px;
}

.mobile-search-btn,
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
}

.mobile-search-btn i,
.mobile-menu-btn i {
    display: block;
    line-height: 1;
    transition: transform .15s ease, opacity .15s ease;
}

.mobile-search-btn i {
    font-size: 1.04rem;
}

.mobile-menu-btn i {
    font-size: 1.54rem;
}

.mobile-search-btn:hover,
.mobile-search-btn:focus,
.mobile-search-btn:active,
.mobile-menu-btn:hover,
.mobile-menu-btn:focus,
.mobile-menu-btn:active,
.mobile-menu-btn.show {
    background: transparent;
    color: #fff;
    box-shadow: none;
    outline: none;
    opacity: .85;
}

.mobile-search-btn[aria-expanded="true"] {
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
    opacity: 1;
}

.mobile-search-btn[aria-expanded="true"] i {
    transform: scale(.96);
}

.btn-mobile-city-short {
    display: none;
}

.mobile-offcanvas-menu {
    width: min(86vw, 360px);
    border: 0;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 18px 0 50px rgba(83, 35, 79, .22);
}

.mobile-offcanvas-menu.offcanvas {
    transition: transform .26s cubic-bezier(.22, .8, .22, 1), box-shadow .26s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.mobile-offcanvas-menu.offcanvas-start {
    border-right: 0 !important;
    transform: translate3d(calc(-100% - 10px), 0, 0);
}

.mobile-offcanvas-menu.offcanvas-start.show,
.mobile-offcanvas-menu.offcanvas-start.showing {
    transform: translate3d(0, 0, 0);
}

.mobile-offcanvas-menu.offcanvas-start.hiding {
    transform: translate3d(calc(-100% - 6px), 0, 0);
}

.mobile-offcanvas-menu .offcanvas-header {
    justify-content: flex-end;
    padding: 1.1rem 1.25rem;
    border: 0;
    border-radius: 0 24px 0 0;
    background: linear-gradient(135deg, var(--pillalas-primary), var(--pillalas-primary-dark));
}

.mobile-offcanvas-close {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    background: transparent;
    color: #fff;
}

.mobile-offcanvas-close:hover {
    background: #fff;
    border-color: #fff;
    color: var(--pillalas-primary);
}

.mobile-offcanvas-menu .offcanvas-body {
    padding: 1.25rem;
    border-top-right-radius: 24px;
}

.offcanvas-backdrop {
    transition: opacity .2s ease-out;
}

.mobile-menu-list {
    display: grid;
    gap: .75rem;
}

.mobile-menu-item {
    color: var(--pillalas-dark);
    text-decoration: none;
    background: #fff;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.mobile-menu-item {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border: 1px solid var(--pillalas-border);
    border-radius: 18px;
    box-shadow: var(--pillalas-shadow-sm);
    font-weight: 800;
}

.mobile-menu-item span {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
}

.mobile-menu-item i {
    color: var(--pillalas-primary);
    font-size: 1.25rem;
}

.mobile-menu-item strong {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--pillalas-text-muted);
    font-size: .85rem;
    text-transform: uppercase;
}

.mobile-menu-item strong i {
    color: var(--pillalas-text-muted);
    font-size: .9rem;
}

.mobile-menu-item-end {
    min-width: 20px;
    justify-content: center;
}

.mobile-menu-chevron {
    transition: transform .2s ease, color .2s ease;
    will-change: transform;
}

.mobile-menu-item[aria-expanded="true"] .mobile-menu-chevron {
    color: var(--pillalas-primary);
    transform: rotate(180deg);
}

.mobile-menu-item:hover {
    background: var(--pillalas-soft);
}

.offcanvas-backdrop.show {
    background-color: rgba(43, 15, 42, .55);
}

.mobile-submenu {
    margin-top: -.35rem;
    margin-bottom: .35rem;
}

.mobile-submenu-panel {
    padding: .65rem;
    border: 1px solid rgba(83, 35, 79, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--pillalas-shadow-lg);
}

.mobile-submenu-title {
    padding: .35rem .85rem .5rem;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .85rem;
    border-radius: 12px;
}

.mobile-submenu-link + .mobile-submenu-link {
    margin-top: .25rem;
}

.mobile-submenu-link-language .lang-code {
    margin-left: auto;
}

.mobile-submenu-arrow {
    color: var(--pillalas-text-soft);
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .site-header {
        z-index: 31;
    }

    .site-header .navbar .container {
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: .3rem;
    }

    .site-header .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0;
    }

    .site-header .navbar-brand img {
        max-width: 180px;
    }

    .site-header .navbar-collapse {
        display: none !important;
    }

    .mobile-search-btn {
        min-width: 36px;
        width: 36px;
    }

    .mobile-menu-btn {
        min-width: 30px;
        width: 30px;
        justify-content: flex-end;
        padding-right: .1rem;
    }

    .btn-mobile-city {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .3rem;
        height: 40px;
        padding: 0 .45rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-size: 1.1rem;
        text-transform: uppercase;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-mobile-city:hover,
    .btn-mobile-city:focus,
    .btn-mobile-city:active {
        background: transparent;
        border-color: transparent;
        color: #fff;
        box-shadow: none;
    }

    .btn-mobile-city i {
        flex: 0 0 auto;
        font-size: .92rem;
    }

    .header-search {
        margin: 0;
    }

    .site-header {
        margin-bottom: calc(1.5rem + var(--mobile-search-space));
        transition: margin-bottom .16s cubic-bezier(.22, .8, .22, 1);
    }

    .mobile-header-search {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        padding: .55rem 0 .65rem;
        background: var(--pillalas-primary);
        border-bottom: 0;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backface-visibility: hidden;
        transform: translate3d(0, -12px, 0);
        transition: transform .16s cubic-bezier(.22, .8, .22, 1), opacity .16s cubic-bezier(.22, .8, .22, 1);
    }

    .mobile-header-search.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .mobile-header-search .header-search {
        max-width: none;
    }

    .mobile-header-search .form-control {
        height: 48px;
        font-size: .95rem;
        border-color: rgba(255, 255, 255, .9);
        background: #fff;
        box-shadow: none;
    }

    .mobile-header-search .form-control:focus {
        border-color: #fff;
        box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .22);
    }

    .mobile-offcanvas-menu {
        border-radius: 0 20px 20px 0;
        box-shadow: 10px 0 26px rgba(83, 35, 79, .16);
        contain: layout paint;
    }

    .mobile-offcanvas-menu .offcanvas-header {
        border-radius: 0;
    }

    .mobile-offcanvas-menu .offcanvas-body {
        padding: 1rem;
        border-top-right-radius: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-item {
        min-height: 60px;
        border-radius: 16px;
        box-shadow: none;
    }

    .mobile-menu-group-language,
    .mobile-menu-group-cinema {
        overflow: hidden;
        border: 1px solid var(--pillalas-border);
        border-radius: 16px;
        background: #fff;
    }

    .mobile-menu-group-language .mobile-menu-item-language,
    .mobile-menu-group-cinema .mobile-menu-item-cinema-selector {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .mobile-menu-group-language .mobile-menu-item-language:hover,
    .mobile-menu-group-cinema .mobile-menu-item-cinema-selector:hover {
        background: transparent;
    }

    .mobile-menu-group-language .mobile-menu-item-language[aria-expanded="true"],
    .mobile-menu-group-cinema .mobile-menu-item-cinema-selector[aria-expanded="true"] {
        border-radius: 0;
        background: var(--pillalas-soft);
    }

    .mobile-submenu {
        margin-top: -.2rem;
    }

    .mobile-submenu-language,
    .mobile-submenu-cinema {
        margin: 0;
    }

    .mobile-submenu-language .mobile-submenu-panel,
    .mobile-submenu-cinema .mobile-submenu-panel {
        padding: .8rem .65rem .6rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .mobile-submenu-language .mobile-submenu-link,
    .mobile-submenu-cinema .mobile-submenu-link {
        margin-top: 0;
        border-radius: 10px;
    }

    .mobile-menu-group-language:has(.mobile-menu-item-language[aria-expanded="true"]) .mobile-menu-item-language,
    .mobile-menu-group-cinema:has(.mobile-menu-item-cinema-selector[aria-expanded="true"]) .mobile-menu-item-cinema-selector {
        border-bottom: 1px solid var(--pillalas-border);
    }

    .mobile-submenu-panel {
        border-radius: 16px;
        box-shadow: none;
    }

    .mobile-submenu-link {
        border-radius: 10px;
    }

    .mobile-menu-cinema-label {
        gap: .75rem;
        text-align: left;
    }

    .mobile-menu-cinema-label img,
    .mobile-submenu-link-cinema img {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        object-fit: contain;
        border-radius: 8px;
        background: #fff;
    }

    .mobile-submenu-link-cinema {
        justify-content: flex-start;
    }

    .mobile-submenu-link-cinema span {
        flex: 1 1 auto;
    }

    .mobile-submenu.collapsing {
        transition: height .16s cubic-bezier(.22, .8, .22, 1);
    }

    .offcanvas-backdrop {
        will-change: opacity;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .site-header .navbar .container {
        gap: .35rem;
    }

    .site-header .navbar-brand {
        flex: 0 1 auto;
    }

    .header-search-tablet {
        flex: 0 1 300px;
        width: 100%;
        min-width: 0;
        max-width: 300px;
        margin: 0 auto;
    }

    .header-search-tablet .buscador-header-panel {
        width: min(420px, calc(100vw - 3rem));
    }

    .mobile-search-btn {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .site-header .dropdown-item-cinema {
        display: flex;
        align-items: center;
        gap: .65rem;
    }

    .site-header .dropdown-item-cinema img {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        object-fit: contain;
        border-radius: 6px;
    }
}

@media (max-width: 550px) {
    .site-header .navbar {
        padding: 0.4rem 0;
    }

    .btn-mobile-city-full {
        display: none;
    }

    .btn-mobile-city-short {
        display: inline;
    }
}

@media (max-width: 420px) {
    .site-header .navbar-brand img {
        max-width: 150px;
    }

    .btn-mobile-city {
        max-width: 92px;
        padding: 0 .5rem;
    }

    .site-header .navbar .container {
        gap: .2rem;
    }
}
