/* ================= BANNER PROVISIONAL ================= */
.banner-provisional {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), #f4a261);
    color: white;
    padding: 40px 5%;
    text-align: center;
    margin-bottom: 40px;
}
.banner-contenido h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.banner-contenido p { font-size: 15px; font-weight: 500; opacity: 0.9; }

/* ================= ESTRUCTURA PRINCIPAL ================= */
.checkout-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px 5%;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.checkout-form-section {
    flex: 2;
    background: var(--color-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    overflow: hidden;
}

.checkout-summary-section {
    flex: 1;
    position: sticky;
    top: 20px;
}

/* ================= PESTAÑAS (TABS) ================= */
.checkout-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: #fdfdfd;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    background: #fff;
}

/* ================= CONTENEDOR DE PASOS ================= */
.checkout-steps-container {
    padding: 40px;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 22px;
    font-weight: 800;
    color: #5d4a44; /* Color café oscuro del diseño */
    margin-bottom: 30px;
}

/* ================= FORMULARIOS ================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #5d4a44;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Urbanist', sans-serif;
    color: var(--color-dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
}

/* ================= ALERTA WOMPI ================= */
.wompi-alert-box {
    background-color: #fff5f5;
    border: 1px solid #ffd5d5;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    color: #5d4a44;
    font-size: 14px;
    line-height: 1.6;
}

.mt-30 { margin-top: 30px; }

/* ================= BOTONES ================= */
.step-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.step-actions.right { justify-content: flex-end; }
.step-actions.split { justify-content: space-between; align-items: stretch; }

.btn-cyan {
    background-color: #64C5C5; /* Color del diseño */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cyan:hover { background-color: #52a8a8; }

.btn-gray-icon {
    background-color: #e9e9e9;
    color: #333;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.btn-gray-icon:hover { background-color: #d0d0d0; }

.btn-dark {
    background-color: #333333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-dark:hover { background-color: #000; }
.flex-grow { flex-grow: 1; text-align: center; }

/* ================= RESUMEN DE LA ORDEN ================= */
.summary-card {
    background: var(--color-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.summary-title {
    font-size: 16px;
    font-weight: 800;
    color: #5d4a44;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.item-badge-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-qty-badge {
    background-color: #f0f0f0;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.summary-divider {
    border-top: 2px dashed var(--color-border);
    margin: 25px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 16px;
    font-weight: 800;
    color: #5d4a44;
}

.total-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .checkout-main-container {
        flex-direction: column-reverse;
    }
    .checkout-form-section, .checkout-summary-section {
        width: 100%;
        flex: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .checkout-steps-container {
        padding: 20px;
    }
}