/* =========================================================
   Ticketera - Checkout PRO homologado
   Archivo complementario: no reemplaza ticketera-pro.css
   ========================================================= */

.tk-checkout-page{
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 34%),
        radial-gradient(circle at top right, rgba(14, 165, 233, .14), transparent 30%),
        #f6f8fc;
    min-height: 100vh;
}

.tk-checkout-shell{
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}

.tk-checkout-wrap{
    display: block;
}

.tk-checkout-hero{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    margin-bottom: 18px;
    border: 1px solid rgba(191, 219, 254, .9);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,246,255,.96)),
        #fff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
    position: relative;
    overflow: hidden;
}

.tk-checkout-hero::before{
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
}

.tk-checkout-hero-copy{
    position: relative;
    z-index: 1;
}

.tk-checkout-kicker{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tk-checkout-hero h1{
    margin: 12px 0 6px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
    color: #0f172a;
    letter-spacing: -.04em;
}

.tk-checkout-hero p{
    margin: 0;
    max-width: 680px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.55;
}

.tk-checkout-steps{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    flex-shrink: 0;
}

.tk-step{
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
    white-space: nowrap;
}

.tk-step span{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 13px;
}

.tk-step.active{
    background: #eff6ff;
    color: #1d4ed8;
}

.tk-step.active span{
    background: #2563eb;
    color: #fff;
}

.tk-checkout-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    align-items: start;
}

.tk-checkout-card{
    border: 1px solid rgba(191, 219, 254, .9) !important;
    border-radius: 28px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08) !important;
}

.tk-checkout-main-card{
    padding: 24px !important;
}

.tk-checkout-card-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tk-checkout-card-head h2{
    margin: 12px 0 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.tk-checkout-event-meta{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.tk-checkout-event-meta div{
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    line-height: 1.25;
}

.tk-checkout-event-meta i{
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #dbeafe;
    color: #1d4ed8;
}

.tk-checkout-section-title{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 12px;
    border-top: 1px solid #e2e8f0;
}

.tk-checkout-section-title:first-of-type{
    border-top: 0;
}

.tk-checkout-section-title > i{
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.tk-checkout-section-title h3{
    margin: 0;
    color: #0f172a;
    font-size: 18px;
}

.tk-checkout-section-title p{
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.tk-checkout-section-space{
    margin-top: 20px;
}

.tk-checkout-form-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.tk-checkout-control{
    min-height: 52px !important;
    border-radius: 17px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(15,23,42,.03) !important;
    font-weight: 700 !important;
}

.tk-checkout-control:focus{
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .18) !important;
    outline: none !important;
}

.tk-checkout-stock-card{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    margin-top: 16px;
    border-radius: 22px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.tk-checkout-stock-card strong{
    display: block;
    color: #0f172a;
    font-size: 16px;
}

.tk-checkout-stock-card span{
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.tk-checkout-stock-card b{
    padding: 8px 11px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    white-space: nowrap;
}

.tk-checkout-stock-track{
    grid-column: 1 / -1;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.tk-checkout-stock-track span{
    display: block;
    width: 5%;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    transition: width .22s ease;
}

.tk-checkout-info-row{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.tk-checkout-info-row div{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.tk-checkout-info-row i{
    color: #2563eb;
    font-size: 16px;
}

.tk-checkout-summary{
    position: sticky;
    top: 18px;
    padding: 22px !important;
}

.tk-checkout-summary-head h3{
    margin: 12px 0 6px;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -.03em;
}

.tk-checkout-summary-head p{
    margin: 0 0 16px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 650;
}

.tk-checkout-summary-box{
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.tk-checkout-summary .tk-summary-row{
    padding: 11px 10px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid rgba(226,232,240,.9);
}

.tk-checkout-summary .tk-summary-row span{
    color: #64748b;
    font-weight: 800;
}

.tk-checkout-summary .tk-summary-row strong{
    color: #0f172a;
    text-align: right;
}

.tk-checkout-promo-preview{
    margin: 14px 0;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-weight: 850;
    text-align: center;
}

.tk-checkout-promo-preview.active{
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.tk-checkout-total-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    box-shadow: 0 18px 38px rgba(30, 58, 138, .24);
}

.tk-checkout-total-box span{
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tk-checkout-total-box strong{
    font-size: 28px;
    line-height: 1;
    white-space: nowrap;
}

.tk-checkout-primary{
    width: 100%;
    min-height: 52px;
    border: 0 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    color: #fff !important;
    font-weight: 900 !important;
    box-shadow: 0 18px 36px rgba(37, 99, 235, .25) !important;
}

.tk-checkout-primary.is-loading{
    opacity: .72;
    cursor: progress;
}

.tk-checkout-cancel{
    width: 100%;
    margin-top: 10px;
    text-align: center;
    border-radius: 18px !important;
}

.tk-checkout-small-note{
    margin-top: 14px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    font-weight: 700;
}

.tk-alert{
    border-radius: 18px !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

@media (max-width: 1024px){
    .tk-checkout-hero{
        flex-direction: column;
        align-items: flex-start;
    }

    .tk-checkout-steps{
        width: 100%;
        overflow-x: auto;
    }

    .tk-checkout-grid{
        grid-template-columns: 1fr;
    }

    .tk-checkout-summary{
        position: static;
    }
}

@media (max-width: 760px){
    .tk-checkout-shell{
        padding: 18px 10px 32px;
    }

    .tk-checkout-hero,
    .tk-checkout-main-card,
    .tk-checkout-summary{
        border-radius: 22px !important;
        padding: 18px !important;
    }

    .tk-checkout-event-meta,
    .tk-checkout-form-grid,
    .tk-checkout-info-row{
        grid-template-columns: 1fr;
    }

    .tk-field-full{
        grid-column: auto;
    }

    .tk-checkout-total-box{
        flex-direction: column;
        align-items: flex-start;
    }

    .tk-checkout-total-box strong{
        font-size: 32px;
    }
}


/* =========================================================
   Checkout FIX - promoción calculada y comisión sumada
   ========================================================= */
.tk-checkout-promo-control{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:10px;
    align-items:center;
}

.tk-checkout-apply-promo{
    min-height:48px;
    padding:0 18px;
    white-space:nowrap;
}

.tk-checkout-promo-preview.pending{
    border-style:dashed;
    color:#b45309;
    background:#fffbeb;
    border-color:#fbbf24;
}

#jsDescuentoPromo{
    color:#16a34a;
}

@media (max-width:640px){
    .tk-checkout-promo-control{
        grid-template-columns:1fr;
    }

    .tk-checkout-apply-promo{
        width:100%;
    }
}
