/* Taquilla online — entradas.php (v2) */
:root {
    --s-bg: #07070a;
    --s-surface: rgba(18, 17, 22, 0.92);
    --s-surface-2: rgba(255, 255, 255, 0.035);
    --s-ink: #f6f5f2;
    --s-muted: rgba(246, 245, 242, 0.62);
    --s-dim: rgba(246, 245, 242, 0.4);
    --s-line: rgba(255, 255, 255, 0.1);
    --s-gold: #f0e4cc;
    --s-gold-mid: #d9c6a0;
    --s-gold-deep: #b9a57a;
    --s-err: #e8a0a0;
    --s-err-bg: rgba(180, 60, 60, 0.14);
    --s-ok: #7dba9a;
    --s-display: "Bebas Neue", sans-serif;
    --s-body: "Syne", system-ui, sans-serif;
    --s-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --s-radius: 1.15rem;
    --s-max: 44rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.shop-page {
    min-height: 100dvh;
    font-family: var(--s-body);
    color: var(--s-ink);
    background: var(--s-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.shop-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shop-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 40% at 50% -8%, rgba(240, 228, 204, 0.16), transparent 55%),
        radial-gradient(ellipse 45% 30% at 100% 70%, rgba(185, 165, 122, 0.08), transparent 50%),
        linear-gradient(180deg, #0c0c10 0%, var(--s-bg) 40%, #050507 100%);
}

.shop-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding:
        max(0.75rem, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        0.75rem
        max(1rem, env(safe-area-inset-left));
    background: rgba(7, 7, 10, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--s-line);
}

.shop-top__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--s-gold);
    font-family: var(--s-display);
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}

.shop-top__logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 0.35rem;
}

.shop-top__back {
    color: var(--s-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shop-top__back:hover {
    color: var(--s-ink);
}

.shop-main {
    position: relative;
    z-index: 1;
    width: min(100%, var(--s-max));
    margin: 0 auto;
    padding:
        1.25rem
        max(1rem, env(safe-area-inset-right))
        max(6.5rem, calc(4rem + env(safe-area-inset-bottom)))
        max(1rem, env(safe-area-inset-left));
}

.shop-hero {
    text-align: center;
    margin-bottom: 1.75rem;
    animation: shop-rise 0.7s var(--s-ease) both;
}

.shop-hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--s-gold-mid);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.shop-hero__title {
    font-family: var(--s-display);
    font-size: clamp(2.8rem, 12vw, 4rem);
    line-height: 0.95;
    letter-spacing: 0.03em;
    margin-bottom: 0.7rem;
}

.shop-hero__title span {
    color: var(--s-gold);
}

.shop-hero__lead {
    color: var(--s-muted);
    font-size: 0.98rem;
    max-width: 34ch;
    margin-inline: auto;
}

.shop-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: var(--s-err-bg);
    border: 1px solid rgba(232, 160, 160, 0.3);
    color: var(--s-err);
    font-size: 0.92rem;
    animation: shop-rise 0.45s var(--s-ease) both;
}

.shop-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border: 1px solid var(--s-line);
    border-radius: var(--s-radius);
    background: var(--s-surface);
}

.shop-state h2 {
    font-family: var(--s-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.shop-state p {
    color: var(--s-muted);
    margin-bottom: 1.25rem;
}

.shop-state--err h2 {
    color: var(--s-err);
}

.shop-nights {
    margin-bottom: 1.35rem;
    animation: shop-rise 0.75s var(--s-ease) 0.05s both;
}

.shop-nights__head,
.shop-block__head {
    margin-bottom: 0.85rem;
}

.shop-nights__head h2,
.shop-block__head h2 {
    font-family: var(--s-display);
    font-size: 1.55rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.shop-block__head p {
    color: var(--s-muted);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.shop-nights__track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.55rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.shop-night {
    flex: 0 0 auto;
    width: min(72vw, 11.5rem);
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--s-line);
    background: var(--s-surface-2);
    transition: border-color 0.25s var(--s-ease), background 0.25s var(--s-ease), transform 0.25s var(--s-ease);
}

.shop-night:hover {
    border-color: rgba(240, 228, 204, 0.35);
    transform: translateY(-2px);
}

.shop-night.is-active {
    border-color: rgba(240, 228, 204, 0.55);
    background: linear-gradient(165deg, rgba(240, 228, 204, 0.14), rgba(255, 255, 255, 0.03));
    box-shadow: 0 0 0 1px rgba(240, 228, 204, 0.12) inset;
}

.shop-night__dow {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--s-gold-deep);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.shop-night__title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.shop-night__date {
    color: var(--s-muted);
    font-size: 0.82rem;
}

.shop-form {
    display: grid;
    gap: 1.25rem;
    animation: shop-rise 0.8s var(--s-ease) 0.1s both;
}

.shop-block {
    padding: 1.15rem 1.1rem 1.25rem;
    border-radius: var(--s-radius);
    border: 1px solid var(--s-line);
    background: var(--s-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.shop-empty {
    color: var(--s-muted);
    font-size: 0.92rem;
}

.shop-offers {
    display: grid;
    gap: 0.75rem;
}

.shop-offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--s-line);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.25s var(--s-ease), background 0.25s var(--s-ease);
}

.shop-offer.is-selected {
    border-color: rgba(240, 228, 204, 0.4);
    background: rgba(240, 228, 204, 0.07);
}

.shop-offer__type {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--s-gold-deep);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.shop-offer__name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.shop-offer__desc {
    color: var(--s-muted);
    font-size: 0.86rem;
    margin-bottom: 0.4rem;
}

.shop-offer__price {
    color: var(--s-gold);
    font-weight: 700;
    font-size: 1.05rem;
}

.shop-offer__price small {
    color: var(--s-dim);
    font-weight: 500;
    font-size: 0.72rem;
    margin-left: 0.25rem;
}

.shop-offer__stock {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--s-dim);
}

.shop-stepper {
    display: inline-grid;
    grid-template-columns: 2.4rem 2.6rem 2.4rem;
    align-items: center;
    border: 1px solid var(--s-line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.shop-stepper__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--s-ink);
    font-size: 1.25rem;
    line-height: 1;
    min-height: 2.6rem;
    cursor: pointer;
    font-family: inherit;
}

.shop-stepper__btn:hover {
    background: rgba(240, 228, 204, 0.1);
    color: var(--s-gold);
}

.shop-stepper__input {
    width: 100%;
    min-height: 2.6rem;
    border: 0;
    border-left: 1px solid var(--s-line);
    border-right: 1px solid var(--s-line);
    background: transparent;
    color: var(--s-ink);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    -moz-appearance: textfield;
}

.shop-stepper__input::-webkit-outer-spin-button,
.shop-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-fields {
    display: grid;
    gap: 0.85rem;
}

.shop-fields--stack {
    grid-template-columns: 1fr;
}

.shop-field textarea {
    width: 100%;
    min-height: 5.5rem;
    padding: 0.75rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid var(--s-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--s-ink);
    font: inherit;
    font-size: 1rem;
    resize: vertical;
}

.shop-field textarea:focus {
    outline: none;
    border-color: rgba(240, 228, 204, 0.45);
    box-shadow: 0 0 0 3px rgba(240, 228, 204, 0.1);
}

.shop-policy {
    margin-bottom: 1.1rem;
    padding: 1rem 1.05rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(240, 228, 204, 0.35);
    background: rgba(240, 228, 204, 0.08);
}

.shop-policy strong {
    display: block;
    color: var(--s-gold);
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.shop-policy p {
    color: var(--s-muted);
    font-size: 0.9rem;
    margin: 0;
}

.shop-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0.2rem 0.2rem;
    font-size: 0.9rem;
    color: var(--s-muted);
    cursor: pointer;
}

.shop-check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--s-gold-mid);
}

.shop-check strong {
    color: var(--s-gold);
}

.shop-checkout--static {
    position: static;
    display: grid;
    gap: 0.65rem;
    border-radius: var(--s-radius);
    border: 1px solid var(--s-line);
    box-shadow: none;
    margin: 0;
}

.shop-checkout--static .shop-btn--ghost {
    width: 100%;
}

.shop-checkout--static .shop-checkout__note {
    text-align: center;
}

.shop-field {
    display: grid;
    gap: 0.4rem;
}

.shop-field span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--s-dim);
    font-weight: 700;
}

.shop-field span em {
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--s-dim);
}

.shop-field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid var(--s-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--s-ink);
    font: inherit;
    font-size: 1rem;
}

.shop-field input:focus {
    outline: none;
    border-color: rgba(240, 228, 204, 0.45);
    box-shadow: 0 0 0 3px rgba(240, 228, 204, 0.1);
}

.shop-checkout {
    position: sticky;
    bottom: 0;
    z-index: 15;
    margin: 0.25rem -0.15rem 0;
    padding:
        0.95rem 1rem
        max(0.95rem, env(safe-area-inset-bottom));
    border-radius: 1.15rem 1.15rem 0 0;
    border: 1px solid var(--s-line);
    border-bottom: 0;
    background: rgba(10, 10, 14, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.4);
}

.shop-checkout__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}

.shop-checkout__total span {
    color: var(--s-muted);
    font-size: 0.88rem;
}

.shop-checkout__total strong {
    font-family: var(--s-display);
    font-size: 1.85rem;
    letter-spacing: 0.04em;
    color: var(--s-gold);
    font-weight: 400;
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--s-ease), opacity 0.2s var(--s-ease), box-shadow 0.2s var(--s-ease);
}

.shop-btn:active {
    transform: scale(0.985);
}

.shop-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.shop-btn--primary {
    color: #141318;
    background: linear-gradient(180deg, #f4ebda 0%, var(--s-gold-mid) 100%);
    box-shadow: 0 10px 28px rgba(185, 165, 122, 0.28);
}

.shop-btn--primary:hover:not(:disabled) {
    box-shadow: 0 14px 34px rgba(185, 165, 122, 0.38);
}

.shop-btn--ghost {
    width: auto;
    color: var(--s-ink);
    border-color: var(--s-line);
    background: transparent;
    padding-inline: 1.4rem;
}

.shop-checkout__note {
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--s-dim);
}

@keyframes shop-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 640px) {
    .shop-main {
        padding-top: 1.75rem;
        padding-bottom: 3rem;
    }

    .shop-nights__track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
        overflow: visible;
    }

    .shop-night {
        width: auto;
    }

    .shop-fields {
        grid-template-columns: 1fr 1fr;
    }

    .shop-field--full {
        grid-column: 1 / -1;
    }

    .shop-checkout {
        position: static;
        border-radius: var(--s-radius);
        border: 1px solid var(--s-line);
        box-shadow: none;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "total btn"
            "note note";
        align-items: center;
        gap: 0.65rem 1rem;
        padding: 1.1rem 1.2rem;
    }

    .shop-checkout__total {
        grid-area: total;
        margin: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .shop-btn--primary {
        grid-area: btn;
        width: auto;
        min-width: 14rem;
    }

    .shop-checkout__note {
        grid-area: note;
        text-align: left;
        margin: 0;
    }
}

@media (min-width: 900px) {
    :root {
        --s-max: 52rem;
    }

    .shop-offer {
        padding: 1.15rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
