:root {
    --mostrador-mobile-tip-h: 5rem;
    --mostrador-prep-header: #767676;
    --mostrador-prep-surface: #e0e0e0;
    --mostrador-prep-card: #767676;
    --mostrador-ready-header: #8e8ae5;
    --mostrador-ready-surface: #ecebf9;
    --mostrador-ready-card: #8e8ae5;
    --mostrador-footer-bg: #f4f4f5;
    --mostrador-footer-cta: #4a6278;
    --mostrador-header-bar: #ffffff;
    --mostrador-divider: rgba(45, 52, 54, 0.18);
    --mostrador-radius-lg: 2rem;
    --mostrador-radius-md: 1.25rem;
    --mostrador-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.1);
}

body.mostrador-pantalla {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
}

body.mostrador-pantalla .bg_texeture {
    display: none;
}

.mostrador-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: Roboto, system-ui, -apple-system, sans-serif;
}

.mostrador-top {
    flex: 0 0 auto;
    background: var(--mostrador-header-bar);
    padding: 1rem clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    display: none;
}

.mostrador-top__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.mostrador-top__logo {
    max-height: clamp(40px, 6vh, 72px);
    width: auto;
    object-fit: contain;
    display: block;
}

.mostrador-top__fallback {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.mostrador-top__pause {
    flex: 0 0 auto;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: clamp(0.875rem, 1.6vw, 1rem);
    font-weight: 600;
    line-height: 1.2;
    color: #1d2327;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mostrador-top__pause:hover {
    background: #e0e0e0;
    border-color: #b0b0b0;
}

.mostrador-top__pause:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.mostrador-top__pause.is-paused {
    background: #00a32a;
    border-color: #00a32a;
    color: #fff;
}

.mostrador-top__pause.is-paused:hover {
    background: #008a20;
    border-color: #008a20;
}

.mostrador-mobile-tip {
    display: none;
}

.mostrador-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mostrador-columns {
    flex: 1;
    display: flex;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    gap: 0;
}

.mostrador-footer {
    flex: 0 0 auto;
    width: 100%;
    background: transparent;
    border-top: 0px solid rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    padding: 0;
}

.mostrador-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    align-content: center;
    flex-wrap: wrap;
}

.mostrador-footer__cta {
    margin: 0;
    flex: 1;
    min-width: min(100%, 280px);
    padding: 2rem 4rem;
    font-size: 2.7vw;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-align: center;
    color: var(--button-text-color-oscuro);
    background: var(--color-primary);
    border-radius: 2rem 2rem 0 0;
    box-shadow: 0 4px 20px rgba(74, 98, 120, 0.25);
    text-shadow: 2px 3px 5px var(--button-shadow-color-oscuro);
    border: 1px solid rgb(0 0 0 / 13%);
}

body.mostrador-follow-open .mostrador-follow__header{display: flex;justify-content: space-between;padding: 2rem 3rem;flex-direction: column;}

.mostrador-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 0;
    flex: 1;
    max-width: 50%;
}
.mostrador-col--prep {
    background: var(--mostrador-prep-surface);
}

.mostrador-col--ready {
    background: linear-gradient(to bottom, white 0%, rgb(from var(--color-primary) r g b / 35%) 160%) !important;
}

.mostrador-qr-frame {
    flex: 0 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 3rem 3rem 0 0;
    box-shadow: var(--mostrador-shadow);
    width: auto;
    box-sizing: border-box;
    box-shadow: 0 0.35rem 5.25rem rgba(0, 0, 0, 0.1);
    max-height: 30vh;
    aspect-ratio: 1;
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-qr-img {
    display: block;
    width: auto;
    height: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: calc(var(--mostrador-radius-md) * 0.85);
}
.mostrador-col:last-child {
    border-right: none;
}
.mostrador-col__title {
    margin: 0;
    padding: clamp(1.75rem, 2.8vh, 3.25rem) clamp(2rem, 4vw, 3rem);
    font-size: 3.6vw;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.2;
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-col--prep .mostrador-col__title {
    background: var(--mostrador-prep-header);
    text-shadow: none;
    color: #ffffff;
}

.mostrador-col--ready .mostrador-col__title {
    background: var(--color-primary);
    color: var(--button-text-color-oscuro);
    text-shadow: 2px 3px 5px var(--button-shadow-color-oscuro);
}

.mostrador-grid {
    flex: 1;
    min-height: 0;
    padding: clamp(4rem, 5vh, 5rem);
    --mgrid-gap: clamp(1.75rem, 2.5vw, 2.25rem);
    display: flex;
    flex-wrap: wrap;
    gap: var(--mgrid-gap);
    align-content: flex-start;
    justify-content: center;
    padding-bottom: var(--mostrador-footer-h, 260px) !important;
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-card {
    border-radius: var(--mostrador-radius-md);
    padding: clamp(2rem, 3vh, 2.5rem);
    text-align: center;
    box-shadow: var(--mostrador-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    box-sizing: border-box;
    min-height: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    container-type: inline-size;
    container-name: mostrador-card;
}

.mostrador-card:focus {
    outline: none;
}

.mostrador-card:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: 4px;
}

.mostrador-col--prep .mostrador-card {
    background: var(--mostrador-prep-card);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mostrador-col--ready .mostrador-card {
    background: var(--color-primary);
    color: var(--button-text-color-oscuro);
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-card__id {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 2px 3px 5px var(--button-shadow-color-oscuro);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.mostrador-card__name {
    font-weight: 600;
    text-shadow: 2px 3px 5px var(--button-shadow-color-oscuro);
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-align: center;
}

@supports (font-size: 1cqw) {
    }

.mostrador-empty {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: #5a5a5a;
    font-weight: 600;
    box-sizing: border-box;
}

.mostrador-col--ready .mostrador-empty {
    color: #6b66b8;
}

body:before{
    display: none !important
}

body.mostrador-follow-open {
    overflow: hidden;
}
.mostrador-follow {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    background: white;
    box-sizing: border-box;
}

.mostrador-follow[hidden] {
    display: none !important;
}

.mostrador-follow.is-open:not([hidden]) {
    display: flex;
}

.mostrador-follow__back {
    flex-shrink: 0;
    margin-top: clamp(2rem, 5vh, 3.5rem);
    padding: clamp(0.85rem, 2vh, 1.15rem) clamp(2.5rem, 8vw, 4.5rem);
    font-family: inherit;
    font-size: clamp(1.35rem, 3.5vw, 2.25rem);
    font-weight: 700;
    border-radius: 2rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    border: 2px solid transparent;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.mostrador-follow__back:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: 2px;
}

.mostrador-follow__back:hover {
    transform: translateY(-1px);
}

.mostrador-follow__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mostrador-follow__header {
    flex: 0 0 auto;
    margin: 0;
    max-width: 100%;
    padding: clamp(0.85rem, 2vh, 1.25rem) clamp(1rem, 3vw, 1.5rem);
    text-align: center;
}

.mostrador-follow__title {
    margin: 0;
    font-size: clamp(4.35rem, 6vw, 6.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
}

.mostrador-follow--prep .mostrador-follow__back {
    color: #ffffff;
    background: #696969;
    border-color: #5a5a5a;
}

.mostrador-follow--prep .mostrador-follow__back:hover {
    background: #5a5a5a;
    border-color: #4a4a4a;
}

.mostrador-follow--listo .mostrador-follow__back {
    color: var(--button-text-color-oscuro, #ffffff);
    background: var(--color-primary, #1e4d3a);
    border-color: rgb(from var(--color-primary, #1e4d3a) r g b / 85%);
    text-shadow: 0 1px 2px var(--button-shadow-color-oscuro, transparent);
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-follow--listo .mostrador-follow__back:hover {
    filter: brightness(1.06);
}

.mostrador-follow.is-open:not(.mostrador-follow--prep):not(.mostrador-follow--listo) .mostrador-follow__back {
    color: #ffffff;
    background: #2d3436;
    border-color: #1e2428;
}

.mostrador-follow.is-open:not(.mostrador-follow--prep):not(.mostrador-follow--listo) .mostrador-follow__back:hover {
    background: #1e2428;
    border-color: #121619;
}

.mostrador-follow--prep .mostrador-follow__header {
    background: #696969;
    color: #ffffff;
}

.mostrador-follow--listo .mostrador-follow__header {
    background: var(--color-primary, #1e4d3a);
    color: var(--button-text-color-oscuro, #ffffff);
    text-shadow: 0 1px 3px var(--button-shadow-color-oscuro, transparent);
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-follow.is-open:not(.mostrador-follow--prep):not(.mostrador-follow--listo) .mostrador-follow__header {
    background: #2d3436;
    color: #ffffff;
}

.mostrador-follow__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2rem) clamp(2.5rem, 8vh, 4rem);
    box-sizing: border-box;
    background: linear-gradient(to bottom, white 0%, rgb(from var(--color-primary) r g b / 35%) 160%) !important;
}

.mostrador-follow__card {
    width: min(92vw, 720px);
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--mostrador-radius-lg);
    text-align: center;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vh, 1rem);
    justify-content: center;
    min-height: clamp(200px, 28vh, 320px);
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-follow--prep .mostrador-follow__card {
    background: #696969;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mostrador-follow--listo .mostrador-follow__card {
    background: var(--color-primary);
    color: var(--button-text-color-oscuro, #ffffff);
    border: 1px solid rgb(0 0 0 / 13%);
}

.mostrador-follow__id {
    display: block;
    font-size: clamp(5.5rem, 14vw, 11rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.06em;
    text-shadow: 2px 3px 5px var(--button-shadow-color-oscuro);
}

.mostrador-follow__name {
    display: block;
    font-size: clamp(5.35rem, 13vw, 9.25rem);
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
    text-shadow: 2px 3px 5px var(--button-shadow-color-oscuro);
}

.mostrador-follow__gone {
    max-width: 36rem;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #4a4a4a;
}
