/* ============================================
   CHECKOUT - PROCESO DE COMPRA (UI PREMIUM)
   ============================================ */

.checkout-page {
    padding: 60px 0;
    min-height: 70vh;
}

.checkout-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Stepper premium */
.checkout-stepper {
    display: flex;
    justify-content: space-between;
    margin: 40px 0 50px;
    position: relative;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #F0E8DC, #D4A574, #F0E8DC);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: #FDF9F2;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    background: #F0E8DC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 1rem;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #8B5A2B 0%, #6B3A1A 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 58, 26, 0.3);
    transform: scale(1.05);
}

.step.completed .step-circle {
    background: #27AE60;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6B5B4F;
    font-weight: 500;
}

.step.active .step-label {
    color: #8B5A2B;
    font-weight: 600;
}

/* Checkout grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr 400px;
    }
}

/* Formulario premium */
.checkout-form {
    background: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-step {
    display: none;
    animation: fadeInStep 0.35s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step.active-step {
    display: block;
}

.form-step h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #1A1109;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #1A1109;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #F0E8DC;
    border-radius: 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    background: #FDF9F2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5A2B;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Métodos de entrega */
.entrega-opciones, .pago-opciones {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.entrega-btn, .pago-btn {
    flex: 1;
    padding: 14px;
    background: #F5EDE3;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-weight: 500;
    min-width: 120px;
}

.entrega-btn.active, .pago-btn.active {
    border-color: #8B5A2B;
    background: white;
    color: #8B5A2B;
    box-shadow: 0 2px 8px rgba(139, 90, 43, 0.1);
}

.entrega-btn:hover, .pago-btn:hover {
    transform: translateY(-2px);
}

/* Mapa embebido */
.mapa-retiro {
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mapa-retiro iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Información transferencia premium */
.info-transferencia {
    background: #F5EDE3;
    padding: 20px;
    border-radius: 20px;
    margin-top: 15px;
}

.alias-box {
    background: white;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    border: 1px solid #E8DCCE;
}

.btn-copiar {
    background: #8B5A2B;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copiar:hover {
    background: #6B3A1A;
    transform: scale(1.02);
}

/* Navegación formulario */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

.btn-prev, .btn-next {
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-prev {
    background: #F5EDE3;
    border: none;
    color: #1A1109;
}

.btn-prev:hover:not(:disabled) {
    background: #E8DCCE;
    transform: translateX(-2px);
}

.btn-next {
    background: linear-gradient(135deg, #8B5A2B 0%, #6B3A1A 100%);
    color: white;
    border: none;
}

.btn-next:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(107, 58, 26, 0.25);
}

/* Resumen pedido sidebar */
.checkout-resumen {
    background: white;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(139, 90, 43, 0.1);
}

.checkout-resumen h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0E8DC;
}

.resumen-items {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid #F0E8DC;
}

.resumen-total {
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #F0E8DC;
    color: #8B5A2B;
}

/* Badge descuento */
.descuento-badge {
    background: #27AE60;
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    display: inline-block;
}

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.alert-warning {
    background: #FFF3E0;
    color: #E67E22;
    border-left: 4px solid #E67E22;
}

.alert-success {
    background: #E8F8F0;
    color: #27AE60;
    border-left: 4px solid #27AE60;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-form {
        padding: 24px;
    }
    
    .checkout-stepper {
        margin: 20px 0 30px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
}