/* =========================================================
   Parque Mbarete - Compra de entradas y reserva de camarotes
   Archivo: purchase_modal.css
   ========================================================= */

:root {
    --pm-red: #e31520;
    --pm-dark: #28231d;
    --pm-black: #000;
    --pm-white: #fff;
    --pm-blue: #198dcb;
    --pm-gray: #777;
    --pm-error-bg: #ffd6d6;
    --pm-error-text: #620000;
}

/* =========================================================
   Botón principal
   ========================================================= */

.buy-entry-btn {
    margin: 22px auto 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    padding: 15px 26px;
    background: var(--pm-white);
    color: #d71920;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    cursor: pointer;
}

.buy-entry-btn:hover {
    transform: translateY(-1px);
}

/* =========================================================
   Modal compra de entradas
   ========================================================= */

.purchase-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
}

.purchase-modal.open {
    display: flex;
}

.purchase-box{
    width:min(820px,100%);
    background:#e31520;
    color:#fff;
    border-radius:18px;
    padding:26px 28px;
    box-shadow:0 30px 80px rgba(0,0,0,.45);
    position:relative;
}

.purchase-close {
    position: absolute;
    right: 16px;
    top: 12px;
    background: #1f1b18;
    color: var(--pm-white);
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 24px;
    cursor: pointer;
}

.purchase-step {
    display: none;
}

.purchase-step.active {
    display: block;
}

.purchase-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 12px;
}

/* =========================================================
   Filas de entradas
   ========================================================= */

.ticket-row {
    background: var(--pm-dark);
    border-radius: 13px;
    margin: 8px 0;
    padding: 13px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ticket-name {
    font-weight: 900;
}

.ticket-price {
    font-weight: 800;
    font-size: 13px;
}

.qty-control {
    background: var(--pm-black);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 8px 18px;
    min-width: 136px;
    justify-content: space-between;
}

.qty-control button {
    border: 0;
    background: transparent;
    color: var(--pm-white);
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
}

.qty-control span {
    font-weight: 900;
    font-size: 18px;
}

/* =========================================================
   Totales y acciones
   ========================================================= */

.totals {
    font-weight: 900;
    line-height: 1.55;
    margin-top: 24px;
}

.purchase-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.purchase-actions .right {
    margin-left: auto;
}

.purchase-btn {
    border: 0;
    border-radius: 5px;
    background: var(--pm-dark);
    color: var(--pm-white);
    padding: 12px 18px;
    cursor: pointer;
}

/* =========================================================
   Formularios
   ========================================================= */

.purchase-form {
    display: grid;
    gap: 16px;
}

.purchase-form label {
    font-size: 14px;
    font-weight: 900;
}

.purchase-form input,
.purchase-form select {
    width: 100%;
    height: 46px;
    border-radius: 6px;
    border: 2px solid #ff9ca0;
    background: transparent;
    color: var(--pm-white);
    padding: 8px 10px;
    outline: none;
}

.purchase-form input::placeholder {
    color: rgba(255, 255, 255, .75);
}

.purchase-form select option {
    color: #111;
}

.form-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 2px;
}

/* =========================================================
   Métodos de pago
   ========================================================= */

.payment-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pay-option {
    background: var(--pm-dark);
    border: 0;
    color: var(--pm-white);
    border-radius: 5px;
    padding: 12px 26px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.pay-option.active {
    outline: 2px solid var(--pm-white);
}

/* =========================================================
   Errores
   ========================================================= */

.purchase-error,
.cabana-error {
    background: var(--pm-error-bg);
    color: var(--pm-error-text);
    padding: 10px;
    border-radius: 8px;
    font-weight: 800;
    display: none;
    margin-top: 10px;
}

/* =========================================================
   Sección precios de camarotes
   ========================================================= */

.cabana-prices {
    margin: 34px auto 20px;
    width: min(760px, 100%);
    text-align: center;
    color: var(--pm-white);
}

.price-zones-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.zone-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.zone-title {
    font-size: 36px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: -1px;
}

.zone-title strong {
    font-weight: 900;
}

.price-pill {
    display: flex;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.price-pill span {
    font-weight: 900;
    font-size: 24px;
    padding: 12px 14px;
    border-right: 2px solid rgba(255, 255, 255, .85);
}

.price-pill strong {
    font-size: 46px;
    line-height: 1;
    padding: 10px 26px;
    font-weight: 1000;
    letter-spacing: .5px;
}

.zone-price-a .price-pill {
    background: #d71920;
}

.zone-price-b .price-pill {
    background: var(--pm-gray);
}

.zone-price-c {
    margin: 28px auto 0;
}

.zone-price-c .price-pill {
    background: var(--pm-blue);
}

.includes-title {
    margin-top: 34px;
    font-size: 38px;
    font-weight: 1000;
}

.includes-box {
    margin: 12px auto 0;
    background: var(--pm-white);
    color: #d71920;
    border-radius: 16px;
    width: min(315px, 90%);
    padding: 14px 24px;
    text-align: left;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.includes-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 25px;
    line-height: .92;
}

.includes-box strong {
    font-weight: 1000;
}

.no-includes {
    margin-top: 24px;
    font-size: 24px;
    font-weight: 500;
}

.no-includes strong {
    font-size: 28px;
    font-weight: 1000;
}

/* =========================================================
   Modal reserva de camarotes
   ========================================================= */

.seat:not(:disabled) {
    cursor: pointer;
}

.seat:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.seat-reserved,
.seat-sold,
.seat-occupied,
.seat-blocked {
    background: #111 !important;
    color: var(--pm-white) !important;
    cursor: not-allowed !important;
}

.cabana-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 18px;
}

.cabana-modal.open {
    display: flex;
}

.cabana-box{
    width:min(620px,100%);
    background:#e31520;
    color:#fff;
    border-radius:18px;
    padding:26px 28px;
    box-shadow:0 30px 80px rgba(0,0,0,.45);
    position:relative;
}

.cabana-close {
    position: absolute;
    right: 16px;
    top: 12px;
    background: #1f1b18;
    color: var(--pm-white);
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 24px;
    cursor: pointer;
}

.cabana-box h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.cabana-selected,
.cabana-price-line {
    font-weight: 900;
    margin: 6px 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 620px) {
    .purchase-box,
    .cabana-box {
        padding: 22px 18px;
    }

    .ticket-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .qty-control {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .pay-option {
        min-width: 100%;
    }

    .purchase-actions{
        position:sticky;
        bottom:0;
        background:#e31520;
        padding-top:10px
    }

    .price-zones-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .zone-title {
        font-size: 30px;
    }

    .price-pill strong {
        font-size: 36px;
    }

    .includes-title {
        font-size: 32px;
    }

    .includes-box ul {
        font-size: 22px;
    }
}