/* ===== Modal de Resumen del Pedido ===== */
.modal-resumen-pedido {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-resumen-pedido.active { display: flex; }
.modal-overlay-pedido {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.modal-content-pedido {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header-pedido {
    padding: 25px 30px;
    background: linear-gradient(135deg, #1C3A4E 0%, #009E5E 100%);
    border-radius: 20px 20px 0 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header-pedido h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-cerrar-modal {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}
.btn-cerrar-modal:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}
.modal-body-pedido { flex: 1; overflow-y: auto; padding: 30px; }
.producto-resumen-item {
    display: flex; gap: 20px;
    padding: 20px; background: #f8f9fa;
    border-radius: 15px; margin-bottom: 15px;
    border-left: 4px solid #009E5E;
}
.producto-resumen-imagen {
    width: 100px; height: 100px;
    border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.producto-resumen-imagen img {
    width: 100%; height: 100%; object-fit: cover;
}
.producto-resumen-info { flex: 1; }
.producto-resumen-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px; color: #1C3A4E;
}
.producto-resumen-detalle {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 14px; color: #6c757d;
}
.producto-resumen-precio {
    text-align: right;
    font-size: 20px; font-weight: 700; color: #009E5E;
}
.resumen-total-section {
    background: linear-gradient(135deg, #1C3A4E 0%, #009E5E 100%);
    color: white; padding: 25px; border-radius: 15px; margin-top: 20px;
}
.resumen-total-row {
    display: flex; justify-content: space-between;
    padding: 10px 0; font-size: 16px;
}
.resumen-total-row.final {
    font-size: 28px; font-weight: 700;
    border-top: 2px solid rgba(255,255,255,0.3);
    margin-top: 10px; padding-top: 15px;
}
.modal-footer-pedido {
    padding: 20px 30px;
    border-top: 2px solid #f8f9fa;
    display: flex; gap: 15px;
}
.btn-cancelar-pedido, .btn-confirmar-pedido {
    flex: 1; padding: 15px;
    border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 10px;
    transition: all 0.3s ease;
}
.btn-cancelar-pedido { background: #e0e0e0; color: #333; }
.btn-cancelar-pedido:hover { background: #d0d0d0; }
.btn-confirmar-pedido { background: #25D366; color: white; }
.btn-confirmar-pedido:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}