/* =============================================
   CHECKOUT — Real Bikes Locker
   ============================================= */

html, body { background: #0d0d0d !important; }

.checkout-layout {
    max-width: 1100px;
    margin: 100px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
    min-height: calc(100vh - 180px);
}

/* ── BREADCRUMB ── */
.checkout-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 24px;
}
.checkout-breadcrumb a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.2s;
}
.checkout-breadcrumb a:hover { color: var(--green); }
.checkout-breadcrumb span:last-child { color: rgba(255,255,255,0.6); }

/* ── TÍTULO ── */
.checkout-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

/* ══════════════════════════════════════════
   BLOQUES DE PASOS
══════════════════════════════════════════ */
.checkout-form-col { display: flex; flex-direction: column; gap: 16px; }

.checkout-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, opacity 0.3s;
}

.checkout-block.locked {
    opacity: 0.45;
    pointer-events: none;
}

.checkout-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.checkout-block-header h2 {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    flex: 1;
    margin: 0;
}

.checkout-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,255,65,0.1);
    border: 1px solid rgba(0,255,65,0.25);
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-edit-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.checkout-edit-btn:hover { border-color: var(--green); color: var(--green); }

.checkout-block-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }

.checkout-block-summary {
    padding: 14px 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}
.checkout-block-summary p { margin: 0; }

/* ── CAMPOS ── */
.co-row { display: flex; gap: 14px; }
.co-row .co-field { flex: 1; }

.co-field { display: flex; flex-direction: column; gap: 6px; }

.co-field label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

.co-opt { color: rgba(255,255,255,0.25); font-size: 9px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.req { color: #ff4444; }

.co-field input,
.co-field select,
.co-field textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus { border-color: rgba(0,255,65,0.4); }

.co-field select option { background: #1a1a1a; }
.co-field textarea { resize: none; }

/* ── BOTONES PASO ── */
.co-next-btn {
    align-self: flex-end;
    background: var(--green);
    border: none;
    color: #000;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.co-next-btn:hover { background: #00e63a; transform: translateY(-1px); }
.co-next-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.co-error {
    font-size: 12px;
    color: #ff4444;
    min-height: 16px;
    margin: 0;
}

/* ══════════════════════════════════════════
   MÉTODOS DE PAGO
══════════════════════════════════════════ */
.co-metodos { display: flex; flex-direction: column; gap: 10px; }

.co-metodo {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.co-metodo input[type="radio"] { display: none; }
.co-metodo.selected {
    border-color: rgba(0,255,65,0.35);
    background: rgba(0,255,65,0.04);
}
.co-metodo.selected::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0,255,65,0.5);
}
.co-metodo:not(.selected)::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.co-metodo-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.co-metodo-info { display: flex; flex-direction: column; gap: 3px; }
.co-metodo-nombre { font-size: 13px; font-weight: 700; color: #fff; }
.co-metodo-desc   { font-size: 11px; color: rgba(255,255,255,0.4); }

.co-metodo-logos { display: flex; gap: 6px; flex-wrap: wrap; }

.co-logo-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px;
}
.co-logo-pill.nequi { background: rgba(127,0,255,0.15); border-color: rgba(127,0,255,0.25); color: #b57fff; }

/* ── PANEL WOMPI ── */
.co-pago-panel { margin-top: 6px; }

.co-wompi-aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.co-wompi-aviso svg { flex-shrink: 0; margin-top: 1px; }
.co-wompi-aviso strong { color: var(--green); }

/* ── PANEL EFECTIVO ── */
.co-efectivo-info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.co-efectivo-titulo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin: 0 0 4px;
}
.co-efectivo-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.co-efectivo-row span  { color: rgba(255,255,255,0.4); }
.co-efectivo-row strong { color: #fff; }

/* ── UPLOAD COMPROBANTE ── */
.co-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1.5px dashed rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.co-upload-area:hover { border-color: rgba(0,255,65,0.3); background: rgba(0,255,65,0.02); }
.co-upload-area span  { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 600; }
.co-upload-area small { font-size: 11px; color: rgba(255,255,255,0.25); }

.co-file-attached {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,255,65,0.06);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.co-file-attached span { flex: 1; }
.co-file-attached button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
    transition: color 0.2s;
}
.co-file-attached button:hover { color: #ff4444; }

/* ── TÉRMINOS Y CONFIRMAR ── */
.co-terminos {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.co-terminos input { margin-top: 2px; flex-shrink: 0; accent-color: var(--green); }
.co-terminos a { color: var(--green); text-decoration: none; }
.co-terminos a:hover { text-decoration: underline; }

.co-confirmar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--green);
    border: none;
    color: #000;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(0,255,65,0.2);
}
.co-confirmar-btn:hover {
    background: #00e63a;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(0,255,65,0.3);
}

.co-seguridad {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   COLUMNA DERECHA — RESUMEN
══════════════════════════════════════════ */
.checkout-summary-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.checkout-summary-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: top 0.1s;
}

.checkout-summary-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.3px;
}

/* ── ITEMS ── */
.co-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.co-item:last-of-type { border-bottom: none; }

.co-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.co-item-img img { width: 100%; height: 100%; object-fit: cover; }
.co-item-img svg { width: 22px; height: 22px; }

.co-item-info { flex: 1; min-width: 0; }
.co-item-nombre {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.co-item-qty { font-size: 11px; color: rgba(255,255,255,0.35); margin: 0; }

.co-item-precio {
    font-size: 13px;
    font-weight: 800;
    color: var(--green);
    margin: 0;
    flex-shrink: 0;
}

/* ── CARRITO VACÍO ── */
.co-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}
.co-empty-cart svg { width: 44px; height: 44px; }
.co-empty-cart p { font-size: 14px; font-weight: 600; margin: 0; }
.co-back-btn {
    background: transparent;
    border: 1.5px solid var(--green-border);
    color: var(--green);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.co-back-btn:hover { background: var(--green); color: #000; }

/* ── TOTALES ── */
.co-totales {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.co-totales-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.co-totales-total {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4px;
}
.co-totales-total span:last-child { color: var(--green); }

.co-envio-tag {
    font-size: 11px;
    color: var(--green);
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: 50px;
    padding: 2px 10px;
    font-weight: 700;
}

.co-volver-link {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s;
}
.co-volver-link:hover { color: rgba(255,255,255,0.6); }

/* ── BENEFICIOS ── */
.co-beneficios {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}
.co-beneficio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}
.co-beneficio svg { flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        margin-top: 80px;
    }

    /* El resumen va arriba en móvil */
    .checkout-summary-col {
        order: -1;
        position: static;
    }

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

    .co-row { flex-direction: column; }
    .co-next-btn { align-self: stretch; text-align: center; }
    .co-confirmar-btn { font-size: 13px; }
    .co-metodo-inner { flex-direction: column; align-items: flex-start; }
}