/* ===== Página de compra (usa las variables --emma-* y --prog-* de site.css) ===== */
.compra-hero {
    position: relative;
    overflow: hidden;
    margin: -1.1rem -1.5rem 1.75rem;
    background: #1b1b1b;
    color: #fff;
}

.compra-hero-fondo {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(.45);
    transform: scale(1.1);
}

.compra-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 100%);
}

.compra-hero-contenido {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2.25rem 2rem;
    max-width: 1100px;
}

.compra-hero-cartel {
    flex: 0 0 240px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
}

    .compra-hero-cartel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.compra-hero-info h1 {
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.15;
    margin: .5rem 0 1rem;
}

.compra-chip {
    display: inline-block;
    background: var(--emma-rojo);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 999px;
}

.compra-datos {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    font-size: 1.05rem;
}

    .compra-datos .iconify {
        opacity: .8;
        margin-right: .35rem;
    }

.compra-precio .importe {
    font-size: 1.9rem;
    font-weight: 800;
}

.compra-precio .precio-tachado {
    margin-left: .5rem;
    text-decoration: line-through;
    opacity: .65;
}

.compra-precio .anticipada {
    color: #f3c969;
    font-size: .9rem;
}

.compra-precio .gestion {
    opacity: .75;
    font-size: .85rem;
}

.compra-descripcion {
    max-width: 900px;
    margin: 0 0 1.75rem;
    color: #333;
    line-height: 1.6;
}

    .compra-descripcion .elenco {
        font-style: italic;
        color: var(--prog-suave);
    }

.compra-cuerpo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.75rem;
    align-items: start;
}

.compra-panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    padding: 1.5rem;
}

    .compra-panel h2 {
        font-size: 1.2rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: .6rem;
        margin-bottom: .4rem;
    }

    .compra-panel .paso {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 50%;
        background: var(--emma-rojo);
        color: #fff;
        font-size: .95rem;
    }

.compra-ayuda {
    color: var(--prog-suave);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}

.compra-resumen {
    position: sticky;
    top: 1rem;
}

/* Patio de butacas */
.patio-scroll {
    overflow-x: auto;
    padding-bottom: .5rem;
}

.patio {
    --butaca: 22px;
    display: grid;
    grid-template-columns: 1.4rem repeat(20, var(--butaca)) 1.4rem;
    gap: 5px 4px;
    justify-content: center;
    width: max-content;
    margin: 0 auto;
}

.patio-fila {
    font-size: .7rem;
    color: var(--prog-suave);
    display: flex;
    align-items: center;
    justify-content: center;
}

.butaca, .butaca-hueco {
    width: var(--butaca, 18px);
    height: var(--butaca, 18px);
}

.butaca {
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 5px 5px 3px 3px;
    background: #cfd3d8;
}

    .butaca.libre {
        cursor: pointer;
        transition: transform .1s, background-color .1s;
    }

        .butaca.libre:hover {
            background: #9aa3ad;
            transform: scale(1.12);
        }

        .butaca.libre.seleccionada {
            background: #2e9e4f;
        }

    .butaca.vendida {
        background: var(--emma-rojo);
        opacity: .45;
        cursor: not-allowed;
    }

    .butaca.bloqueada {
        background: #222;
        opacity: .7;
        cursor: not-allowed;
    }

.escenario {
    margin: 1.25rem auto 0;
    max-width: 420px;
    text-align: center;
    padding: .45rem;
    background: linear-gradient(180deg, #e9e9e9, #d4d4d4);
    border-radius: 0 0 60% 60% / 0 0 100% 100%;
    color: #555;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3em;
}

.patio-leyenda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
    margin-top: 1.25rem;
    font-size: .85rem;
    color: var(--prog-suave);
}

    .patio-leyenda span {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
    }

    .patio-leyenda .butaca {
        --butaca: 14px;
        cursor: default;
        transform: none !important;
    }

.compra-aviso-max {
    margin-top: 1rem;
    text-align: center;
    color: var(--emma-rojo);
    font-weight: 600;
    font-size: .9rem;
}

.compra-plazas {
    max-width: 260px;
}

/* Resumen */
.compra-totales {
    border-top: 1px solid var(--prog-borde);
    margin: 1.25rem 0 1rem;
    padding-top: 1rem;
}

    .compra-totales .linea {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: .2rem 0;
        font-size: .95rem;
    }

        .compra-totales .linea.descuento {
            color: #c0392b;
        }

        .compra-totales .linea.total {
            border-top: 1px solid var(--prog-borde);
            margin-top: .5rem;
            padding-top: .6rem;
            font-size: 1.3rem;
            font-weight: 800;
        }

.compra-butacas-elegidas {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .75rem;
}

.compra-butaca-chip {
    background: #e8f5ec;
    color: #1e7a3a;
    border-radius: 999px;
    padding: .15rem .6rem;
    font-size: .8rem;
    font-weight: 600;
}

.compra-nota {
    display: block;
    color: var(--prog-suave);
    font-size: .78rem;
}

.btn.compra-boton {
    display: block;
    width: 100%;
    background: var(--emma-rojo);
    color: #fff;
    border-radius: 999px;
    padding: .7rem 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

    .btn.compra-boton:hover {
        background: var(--emma-rojo-oscuro);
        color: #fff;
    }

    .btn.compra-boton.secundario {
        background: #fff;
        color: var(--emma-rojo);
        border: 2px solid var(--emma-rojo);
    }

.compra-alerta {
    font-size: .9rem;
    border-radius: 10px;
}

.compra-agotado {
    text-align: center;
    font-weight: 700;
    color: var(--emma-rojo);
    padding: .7rem;
    border: 2px dashed var(--emma-rojo);
    border-radius: 999px;
}

.compra-pago {
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .compra-cuerpo {
        grid-template-columns: 1fr;
    }

    .compra-resumen {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .compra-hero {
        margin: -1.1rem -1rem 1.25rem;
    }

    .compra-hero-contenido {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }

    .compra-hero-cartel {
        flex-basis: auto;
        width: 180px;
    }

    .compra-hero-info h1 {
        font-size: 1.6rem;
    }

    .compra-datos {
        align-items: center;
    }

    .patio {
        --butaca: 15px;
        gap: 4px 3px;
    }
}
